Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#34006 closed defect (duplicate)

llvm-3.0: build fails with ld64 errors

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: tiger Cc: fang@…
Port: llvm-3.0

Description

llvm-3.0 build fails on Tiger PowerPC. I installed ld64 as advised in #33987 but now get:

   -lLLVMARMAsmParser -lLLVMARMAsmPrinter -lLLVMARMCodeGen -lLLVMARMDesc -lLLVMARMDisassembler -lLLVMARMInfo -lLLVMAlphaCodeGen -lLLVMAlphaDesc -lLLVMAlphaInfo -lLLVMAnalysis -lLLVMArchive -lLLVMAsmParser -lLLVMAsmPrinter -lLLVMBitReader -lLLVMBitWriter -lLLVMBlackfinCodeGen -lLLVMBlackfinDesc -lLLVMBlackfinInfo -lLLVMCBackend -lLLVMCBackendInfo -lLLVMCellSPUCodeGen -lLLVMCellSPUDesc -lLLVMCellSPUInfo -lLLVMCodeGen -lLLVMCore -lLLVMCppBackend -lLLVMCppBackendInfo -lLLVMDebugInfo -lLLVMExecutionEngine -lLLVMInstCombine -lLLVMInstrumentation -lLLVMInterpreter -lLLVMJIT -lLLVMLinker -lLLVMMBlazeAsmParser -lLLVMMBlazeAsmPrinter -lLLVMMBlazeCodeGen -lLLVMMBlazeDesc -lLLVMMBlazeDisassembler -lLLVMMBlazeInfo -lLLVMMC -lLLVMMCDisassembler -lLLVMMCJIT -lLLVMMCParser -lLLVMMSP430AsmPrinter -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMObject -lLLVMPTXAsmPrinter -lLLVMPTXCodeGen -lLLVMPTXDesc -lLLVMPTXInfo -lLLVMPowerPCAsmPrinter -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMRuntimeDyld -lLLVMScalarOpts -lLLVMSelectionDAG -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMSupport -lLLVMSystemZCodeGen -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMTarget -lLLVMTransformUtils -lLLVMX86AsmParser -lLLVMX86AsmPrinter -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Disassembler -lLLVMX86Info -lLLVMX86Utils -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMipa -lLLVMipo -all_load -Wl,-dead_strip -Wl,-seg1addr -Wl,0xE0000000  -Wl,-install_name -Wl,"@executable_path/../lib/libLLVM-3.0.dylib" -lpthread -lffi -lm 
ld64: can't add line info to anonymous symbol cstring=LowerGlobalAddress: Relocation model other than staticnot supported. from /mp/var/macports/build/_Volumes_data_macports_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVMCellSPUCodeGen.a(SPUISelLowering.o)
ld64: can't add line info to anonymous symbol cstring=Recycler element size:  from /mp/var/macports/build/_Volumes_data_macports_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVMSupport.a(Allocator.o)
ld64-62.1 failed: bl out of range (-17780084 max is +/-16M) from __static_initialization_and_destruction_0(int, int)in /mp/var/macports/build/_Volumes_data_macports_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVMARMCodeGen.a(ARMBaseInstrInfo.o) to ___cxa_atexit in /mp/lib/apple-gcc42/gcc/powerpc-apple-darwin8/4.2.1/crt3.o in __static_initialization_and_destruction_0(int, int)from /mp/var/macports/build/_Volumes_data_macports_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVMARMCodeGen.a(ARMBaseInstrInfo.o)
collect2: ld returned 1 exit status

Attachments (1)

main.log.bz2 (39.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

sigh...

comment:2 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

Let's consolidate this into #33987

comment:3 Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

I have a similar failure, but without ld64, although available (main.log also available):

   -lLLVMARMAsmParser -lLLVMARMAsmPrinter -lLLVMARMCodeGen -lLLVMARMDesc -lLLVMARMDisassembler -lLLVMARMInfo -lLLVMAlphaCodeGen -lLLVMAlphaDesc -lLLVMAlphaInfo -lLLVMAnalysis -lLLVMArchive -lLLVMAsmParser -lLLVMAsmPrinter -lLLVMBitReader -lLLVMBitWriter -lLLVMBlackfinCodeGen -lLLVMBlackfinDesc -lLLVMBlackfinInfo -lLLVMCBackend -lLLVMCBackendInfo -lLLVMCellSPUCodeGen -lLLVMCellSPUDesc -lLLVMCellSPUInfo -lLLVMCodeGen -lLLVMCore -lLLVMCppBackend -lLLVMCppBackendInfo -lLLVMDebugInfo -lLLVMExecutionEngine -lLLVMInstCombine -lLLVMInstrumentation -lLLVMInterpreter -lLLVMJIT -lLLVMLinker -lLLVMMBlazeAsmParser -lLLVMMBlazeAsmPrinter -lLLVMMBlazeCodeGen -lLLVMMBlazeDesc -lLLVMMBlazeDisassembler -lLLVMMBlazeInfo -lLLVMMC -lLLVMMCDisassembler -lLLVMMCJIT -lLLVMMCParser -lLLVMMSP430AsmPrinter -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo -lLLVMObject -lLLVMPTXAsmPrinter -lLLVMPTXCodeGen -lLLVMPTXDesc -lLLVMPTXInfo -lLLVMPowerPCAsmPrinter -lLLVMPowerPCCodeGen -lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMRuntimeDyld -lLLVMScalarOpts -lLLVMSelectionDAG -lLLVMSparcCodeGen -lLLVMSparcDesc -lLLVMSparcInfo -lLLVMSupport -lLLVMSystemZCodeGen -lLLVMSystemZDesc -lLLVMSystemZInfo -lLLVMTarget -lLLVMTransformUtils -lLLVMX86AsmParser -lLLVMX86AsmPrinter -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Disassembler -lLLVMX86Info -lLLVMX86Utils -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo -lLLVMipa -lLLVMipo -all_load -Wl,-dead_strip -Wl,-seg1addr -Wl,0xE0000000  -Wl,-dylib_install_name -Wl,"@executable_path/../lib/libLLVM-3.0.dylib" -lpthread -lffi -lm 
ld: bl out of range (-16777260 max is +/-16M) from __static_initialization_and_destruction_0(int, int)at 0xE10017D0 in __StaticInit of /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVMX86CodeGen.a(X86InstrInfo.o) to ___cxa_atexit at 0xE00018F0 in __text of  /opt/local/lib/apple-gcc42/gcc/powerpc-apple-darwin8/4.2.1/crt3.o in __static_initialization_and_destruction_0(int, int)from /opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVMX86CodeGen.a(X86InstrInfo.o)
collect2: ld returned 1 exit status
make[1]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_lang_llvm-3.0/llvm-3.0/work/llvm-3.0.src/Release+Debug/lib/libLLVM-3.0.dylib] Error 1

comment:4 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Yes, please try what I suggested in #33987

comment:5 Changed 12 years ago by fang@…

Cc: fang@… added

Cc Me!

Note: See TracTickets for help on using tickets.