#26886 closed defect (fixed)
ld64 @97.14_0 fails to build on x86_64 SL
Reported by: | skymoo (Adam Mercer) | Owned by: | mfeiri |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | ld64 |
Description
Getting the following build error when trying to update to @97.14_0 (from @85.2.1_0)
:info:build === BUILD AGGREGATE TARGET all OF PROJECT ld64 WITH THE DEFAULT CONFIGURATION (Release) === :info:build Check dependencies :info:build ** BUILD FAILED ** :info:build :info:build :info:build The following build commands failed: :info:build ld: :info:build Ld /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/work/ld64-97.14/build/Release/ld normal x86_64 :info:build (1 failure)
full debug log attached.
Attachments (1)
Change History (8)
Changed 14 years ago by skymoo (Adam Mercer)
comment:1 Changed 14 years ago by mfeiri
Status: | new → assigned |
---|
comment:2 Changed 14 years ago by skymoo (Adam Mercer)
Is this what you're after?
$ which ld /opt/local/bin/ld $ ld -v @(#)PROGRAM:ld PROJECT:ld64-97.2 llvm version 2.8 $ which ld /opt/local/bin/ld $ ld -v @(#)PROGRAM:ld PROJECT:ld64-97.2 llvm version 2.8 $ port provides /opt/local/bin/ld /opt/local/bin/ld is provided by: ld64 $ port installed ld64 The following ports are currently installed: ld64 @85.2.1_0 (active) $
The other ld
I have is the system version:
$ /usr/bin/ld -v @(#)PROGRAM:ld PROJECT:ld64-97.2 llvm version 2.6svn, Apple Build #2207-05 $
neither like the -no_pie option:
$ /usr/bin/ld -no_pie ld: unknown option: -no_pie $ /opt/local/bin/ld -no_pie ld: unknown option: -no_pie $
comment:3 Changed 14 years ago by mfeiri
Ah, that's it. A version of ld64 >= 97.6 is required to build ld64 >=97.11. Please update your Xcode from 3.2.2 to 3.2.3. I'll include a "minimum_xcodeversions" check in the Portfile if this solves your problem.
comment:4 follow-up: 5 Changed 14 years ago by skymoo (Adam Mercer)
Thanks, updated to Xcode 3.2.4 and it builds now. I really wish Xcode updates where available through Software Update...
comment:5 follow-up: 7 Changed 14 years ago by jmroot (Joshua Root)
Replying to ram@…:
I really wish Xcode updates where available through Software Update...
They are, that's how I installed at least 3.2.3 and 3.2.4.
comment:6 Changed 14 years ago by mfeiri
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r73005
comment:7 Changed 14 years ago by skymoo (Adam Mercer)
Replying to jmr@…:
They are, that's how I installed at least 3.2.3 and 3.2.4.
I was never prompted with 3.2.3 and 3.2.4.
According to your log the linker used by xcodebuild does not understand the -no_pie flag. This is strange because xcodebuild uses the compiler toolchain in /Developer/usr/ and the linker at /Developer/usr/bin/ld in 10.6 should understand this flag. Could you please try to find out which exact version of ld is being used by xcodebuild on your machine?