[MacPorts] #64950: libgcc-devel @12-20220327_0+enable_stdlib_flag+universal: configure: error: C preprocessor "/lib/cpp" fails sanity check
MacPorts
noreply at macports.org
Sat Apr 9 05:20:27 UTC 2022
#64950: libgcc-devel @12-20220327_0+enable_stdlib_flag+universal: configure: error:
C preprocessor "/lib/cpp" fails sanity check
---------------------------+--------------------
Reporter: aliktab | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: libgcc-devel |
---------------------------+--------------------
Comment (by ryandesign):
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.
--
Ticket URL: <https://trac.macports.org/ticket/64950#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list