[MacPorts] #48345: Building for 10.4u SDK on 10.6 uses gcc-4.0 even though building directly on 10.4 uses the newer apple-gcc-4.2
MacPorts
noreply at macports.org
Thu May 10 11:47:31 UTC 2018
#48345: Building for 10.4u SDK on 10.6 uses gcc-4.0 even though building directly
on 10.4 uses the newer apple-gcc-4.2
-------------------------+----------------------
Reporter: ryandesign | Owner: kencu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: base | Version: 2.3.99
Resolution: | Keywords:
Port: |
-------------------------+----------------------
Comment (by ryandesign):
Thanks Josh for the reminder about previous tickets. So the 10.4u SDK
really does still require gcc-4.0, and is not compatible with gcc-4.2. I
verified that just now using the FFView port, which was mentioned in one
of those tickets.
It ''doesn't make sense'' that MacPorts base only sets the compiler to
gcc-4.0 when using the 10.4u SDK ''on Snow Leopard''. It needs to do that
''on Tiger and Leopard as well''.
For Leopard, the problem is visible; the build clearly fails with gcc-4.2.
For Tiger, the problem is not visible for FFView and other ports building
using Xcode projects (most of the tickets Josh mentioned) because
[ticket:40762 the xcode portgroup can't use any MacPorts compiler]. So
although on Tiger we are setting the compiler to the MacPorts apple-
gcc-4.2 compiler, the Xcode portgroup ignores that and continues to use
the Xcode gcc-4.0 compiler, thus the build doesn't fail.
On Snow Leopard with Xcode 4, we're using llvm-gcc-4.2. This does seem to
work with the 10.4u SDK, so there's no problem there.
On Leopard, llvm-gcc-4.2 does not work with the 10.4u SDK, so we should
not try to use that as a fallback.
--
Ticket URL: <https://trac.macports.org/ticket/48345#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list