[MacPorts] #43737: ld64 @236.3_1 build failure with g++-4.2 on OS X 10.6.8
MacPorts
noreply at macports.org
Mon Jun 2 18:59:50 PDT 2014
#43737: ld64 @236.3_1 build failure with g++-4.2 on OS X 10.6.8
-------------------------+-------------------------
Reporter: mopihopi@… | Owner: jeremyhu@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords: snowleopard
Port: ld64 |
-------------------------+-------------------------
Comment (by mopihopi@…):
Replying to [comment:47 alex.hanselmann@…]:
> I question the scope of the bug? I just updated to MacPorts 2.3.0 on a
OSX 10.7.5 computer. The compiling of ld64(ld64-236.3) fails too. The
using of Clang-3-4 as a solution fails too.
This bug affects users of later OS X versions if their default C++
compiler is not clang. I think that includes Lion users using a version
of XCode earlier than about 4.3 or 4.2. If you don't want to update your
XCode I would expect that compiling with macports-clang-3.4 would work.
> make -j2 -w all CC="/usr/bin/llvm-gcc-4.2" CXX="/usr/bin/llvm-g++-4.2"
OTHER_CPPFLAGS="-I/opt/local/include" OTHER_CFLAGS="-Os -arch x86_64"
OTHER_CXXFLAGS="-Os -arch x86_64" OTHER_LDFLAGS="-L/opt/local/lib
-Wl,-headerpad_max_install_names -arch x86_64" RC_SUPPORTED_ARCHS="armv6
armv7 i386 x86_64" LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.3.
That says that it is using `llvm-gcc-4.2` (the default compiler in XCode
4.1). Unfortunately ld64 @236.3_1 does not compile with that compiler.
If you haven't done so already, you might try this:
{{{
sudo port clean ld64
sudo port upgrade ld64 -llvm33 +llvm34 configure.compiler=macports-
clang-3.4
}}}
I've also attached a simple patch for the conflicting blacklist in the
Portfile, which should prevent it from trying that compiler by default.
--
Ticket URL: <https://trac.macports.org/ticket/43737#comment:49>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list