Opened 3 years ago

Last modified 2 years ago

#64950 new defect

libgcc-devel @12-20220327_0+enable_stdlib_flag+universal: configure: error: C preprocessor "/lib/cpp" fails sanity check

Reported by: aliktab (Alik) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: nerdling (Jeremy Lavergne), mascguy (Christopher Nielsen), michaelld (Michael Dickens), cjones051073 (Chris Jones)
Port: libgcc-devel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc-devel/libgcc-devel/work/build" && /usr/bin/make -j10 -w bootstrap-lean 
:info:build Exit code: 2
:error:build Failed to build libgcc-devel: command execution failed
:debug:build Error code: CHILDSTATUS 92445 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"

Attachments (2)

main.log (101.9 KB) - added by aliktab (Alik) 3 years ago.
config.log (19.4 KB) - added by aliktab (Alik) 3 years ago.

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by aliktab (Alik)

Attachment: main.log added

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: libgcc-devel @12-20220327_0+enable_stdlib_flag+universal - Error code: CHILDSTATUS 92445 2libgcc-devel @12-20220327_0+enable_stdlib_flag+universal: configure: error: C preprocessor "/lib/cpp" fails sanity check

The log says:

configure: error: C preprocessor "/lib/cpp" fails sanity check 

Please attach the config.log file(s) so that we can see why this happened.

Changed 3 years ago by aliktab (Alik)

Attachment: config.log added

comment:2 Changed 3 years ago by aliktab (Alik)

Attached

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, so the reason why it fell back on /lib/cpp (which doesn't exist on macOS) is that all of the other things it tried failed because of the universal variant:

configure:4115: checking how to run the C preprocessor
configure:4146: /usr/bin/clang -arch arm64 -arch x86_64 -E -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk conftest.c
clang: error: cannot use 'cpp-output' output with multiple -arch options

Obviously, if you don't need the +universal variant, don't use it; you'll avoid this problem.

If you do need it, then we'll need to figure out how to fix it. Modifying the port to use the muniversal portgroup is a possible solution. Investigating whether the other gcc ports have the same problem, and if not whether they are already using some fix for it, would be a good idea, so that we can use the same fix here.

comment:4 Changed 3 years ago by aliktab (Alik)

Universal version isn't necessary for me so it's up to you to decide if you want support it or not. Thanks for answer.

comment:5 Changed 3 years ago by leebaylis

Hi, I'm having the same problem with libgcc-devel when trying to install the x2goclient port. x2goclient is requesting the +universal flag, and tries to reinstall libgcc-devel if I have installed it without +universal. Any ideas for a workaround? Thanks!

comment:6 Changed 2 years ago by nerdling (Jeremy Lavergne)

Cc: nerdling added

comment:7 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy michaelld cjones051073 added

Adding Michael and Chris to the mix.

Note: See TracTickets for help on using tickets.