[MacPorts] #35629: clang-mp-* does not link crt1.o on 10.8 by default
#35629: clang-mp-* does not link crt1.o on 10.8 by default -------------------------------+-------------------------------------------- Reporter: arsenm2@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: clang-3.1 -------------------------------+-------------------------------------------- $ clang-mp-3.1 arst.c Undefined symbols for architecture x86_64: "start", referenced from: -u command line option ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) $ clang-mp-3.2 arst.c Undefined symbols for architecture x86_64: "start", referenced from: -u command line option ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Works: clang-mp-3.1 arst.c /usr/lib/crt1.o clang-mp-3.1 arst.c -mmacosx-version-min=10.5 clang-mp-3.1 arst.c -mmacosx-version-min=10.6 clang-mp-3.1 arst.c -mmacosx-version-min=10.7 $ clang-mp-3.1 arst.c -mmacosx-version-min=10.8 Undefined symbols for architecture x86_64: "start", referenced from: -u command line option ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Apple's clang does not have this problem: $ /usr/bin/clang arst.c Works -- Ticket URL: <https://trac.macports.org/ticket/35629> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35629: clang-mp-* does not link crt1.o on 10.8 by default -------------------------------+-------------------------------------------- Reporter: arsenm2@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: clang-3.1 -------------------------------+-------------------------------------------- Comment(by arsenm2@…): Formatting got kind of screwed up Any of these work: clang-mp-3.1 arst.c /usr/lib/crt1.o clang-mp-3.1 arst.c -mmacosx-version-min=10.5 clang-mp-3.1 arst.c -mmacosx-version-min=10.6 clang-mp-3.1 arst.c -mmacosx-version-min=10.7 -- Ticket URL: <https://trac.macports.org/ticket/35629#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35629: clang-mp-* does not link crt1.o on 10.8 by default --------------------------------+------------------------------------------- Reporter: arsenm2@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: invalid | Keywords: Port: clang-3.1 | --------------------------------+------------------------------------------- Changes (by vince@…): * status: new => closed * resolution: => invalid Comment: Normal. crt1.o has been obsoleted on 10.8 and replaced by a new linker directive to find the starting address: there is no need for a bootstrap anymore. ld64 provided with Macports is outdated and won’t link with this new convention. You need a newer ld (i.e. the version that goes with Xcode 4.4) -- Ticket URL: <https://trac.macports.org/ticket/35629#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts