[llvm-dev] Error building llvm
Frédéric Riss via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 24 18:37:24 PDT 2015
> On Aug 24, 2015, at 5:09 PM, marwayusuf at feng.bu.edu.eg via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Linking CXX executable ../../bin/llvm-dsymutil
> cd /home/marwayusuf/llvm-env/build/tools/dsymutil && /usr/bin/cmake -E cmake_link_script CMakeFiles/llvm-dsymutil.dir/link.txt --verbose=1
> /usr/bin/c++ -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -g -Wl,-allow-shlib-undefined CMakeFiles/llvm-dsymutil.dir/dsymutil.cpp.o CMakeFiles/llvm-dsymutil.dir/BinaryHolder.cpp.o CMakeFiles/llvm-dsymutil.dir/DebugMap.cpp.o CMakeFiles/llvm-dsymutil.dir/DwarfLinker.cpp.o CMakeFiles/llvm-dsymutil.dir/MachODebugMapParser.cpp.o CMakeFiles/llvm-dsymutil.dir/MachOUtils.cpp.o -o ../../bin/llvm-dsymutil ../../lib/libLLVMAArch64CodeGen.a ../../lib/libLLVMAArch64AsmPrinter.a ../../lib/libLLVMAArch64AsmParser.a ../../lib/libLLVMAArch64Desc.a ../../lib/libLLVMAArch64Info.a ../../lib/libLLVMAArch64Disassembler.a ../../lib/libLLVMAMDGPUCodeGen.a ../../lib/libLLVMAMDGPUAsmPrinter.a ../../lib/libLLVMAMDGPUAsmParser.a ../../lib/libLLVMAMDGPUDesc.a ../../lib/libLLVMAMDGPUInfo.a ../../lib/libLLVMARMCodeGen.a ../../lib/libLLVMARMAsmPrinter.a ../../lib/libLLVMARMAsmParser.a ../../lib/libLLVMARMDesc.a ../../lib/libLLVMARMInfo.a ../../lib/libLLVMARMDisassembler.a ../../lib/libLLVMBPFCodeGen.a ../../lib/libLLVMBPFAsmPrinter.a ../../lib/libLLVMBPFDesc.a ../../lib/libLLVMBPFInfo.a ../../lib/libLLVMCppBackendCodeGen.a ../../lib/libLLVMCppBackendInfo.a ../../lib/libLLVMHexagonCodeGen.a ../../lib/libLLVMHexagonDesc.a ../../lib/libLLVMHexagonInfo.a ../../lib/libLLVMHexagonDisassembler.a ../../lib/libLLVMMipsCodeGen.a ../../lib/libLLVMMipsAsmPrinter.a ../../lib/libLLVMMipsAsmParser.a ../../lib/libLLVMMipsDesc.a ../../lib/libLLVMMipsInfo.a ../../lib/libLLVMMipsDisassembler.a ../../lib/libLLVMMSP430CodeGen.a ../../lib/libLLVMMSP430AsmPrinter.a ../../lib/libLLVMMSP430Desc.a ../../lib/libLLVMMSP430Info.a ../../lib/libLLVMNVPTXCodeGen.a ../../lib/libLLVMNVPTXAsmPrinter.a ../../lib/libLLVMNVPTXDesc.a ../../lib/libLLVMNVPTXInfo.a ../../lib/libLLVMPowerPCCodeGen.a ../../lib/libLLVMPowerPCAsmPrinter.a ../../lib/libLLVMPowerPCAsmParser.a ../../lib/libLLVMPowerPCDesc.a ../../lib/libLLVMPowerPCInfo.a ../../lib/libLLVMPowerPCDisassembler.a ../../lib/libLLVMSparcCodeGen.a ../../lib/libLLVMSparcAsmPrinter.a ../../lib/libLLVMSparcAsmParser.a ../../lib/libLLVMSparcDesc.a ../../lib/libLLVMSparcInfo.a ../../lib/libLLVMSparcDisassembler.a ../../lib/libLLVMSystemZCodeGen.a ../../lib/libLLVMSystemZAsmPrinter.a ../../lib/libLLVMSystemZAsmParser.a ../../lib/libLLVMSystemZDesc.a ../../lib/libLLVMSystemZInfo.a ../../lib/libLLVMSystemZDisassembler.a ../../lib/libLLVMX86CodeGen.a ../../lib/libLLVMX86AsmPrinter.a ../../lib/libLLVMX86AsmParser.a ../../lib/libLLVMX86Desc.a ../../lib/libLLVMX86Info.a ../../lib/libLLVMX86Disassembler.a ../../lib/libLLVMXCoreCodeGen.a ../../lib/libLLVMXCoreAsmPrinter.a ../../lib/libLLVMXCoreDesc.a ../../lib/libLLVMXCoreInfo.a ../../lib/libLLVMXCoreDisassembler.a ../../lib/libLLVMAsmPrinter.a ../../lib/libLLVMDebugInfoDWARF.a ../../lib/libLLVMMC.a ../../lib/libLLVMObject.a ../../lib/libLLVMSupport.a ../../lib/libLLVMTarget.a ../../lib/libLLVMAArch64Desc.a ../../lib/libLLVMAArch64AsmPrinter.a ../../lib/libLLVMAArch64Info.a ../../lib/libLLVMAArch64Utils.a ../../lib/libLLVMAMDGPUAsmPrinter.a ../../lib/libLLVMAMDGPUUtils.a ../../lib/libLLVMipo.a ../../lib/libLLVMVectorize.a ../../lib/libLLVMARMDesc.a ../../lib/libLLVMARMAsmPrinter.a ../../lib/libLLVMARMInfo.a ../../lib/libLLVMBPFAsmPrinter.a ../../lib/libLLVMHexagonDesc.a ../../lib/libLLVMHexagonInfo.a ../../lib/libLLVMMipsAsmPrinter.a ../../lib/libLLVMMipsInfo.a ../../lib/libLLVMMSP430AsmPrinter.a ../../lib/libLLVMNVPTXAsmPrinter.a ../../lib/libLLVMPowerPCAsmPrinter.a ../../lib/libLLVMPowerPCInfo.a ../../lib/libLLVMSparcAsmPrinter.a ../../lib/libLLVMSparcInfo.a ../../lib/libLLVMSystemZDesc.a ../../lib/libLLVMSystemZAsmPrinter.a ../../lib/libLLVMSystemZInfo.a ../../lib/libLLVMX86CodeGen.a ../../lib/libLLVMX86Desc.a ../../lib/libLLVMX86AsmPrinter.a ../../lib/libLLVMX86Utils.a ../../lib/libLLVMX86Info.a ../../lib/libLLVMXCoreAsmPrinter.a ../../lib/libLLVMAsmPrinter.a ../../lib/libLLVMSelectionDAG.a ../../lib/libLLVMCodeGen.a ../../lib/libLLVMTarget.a ../../lib/libLLVMScalarOpts.a ../../lib/libLLVMInstCombine.a ../../lib/libLLVMProfileData.a ../../lib/libLLVMInstrumentation.a ../../lib/libLLVMTransformUtils.a ../../lib/libLLVMipa.a ../../lib/libLLVMAnalysis.a ../../lib/libLLVMXCoreInfo.a ../../lib/libLLVMMCDisassembler.a ../../lib/libLLVMObject.a ../../lib/libLLVMMCParser.a ../../lib/libLLVMMC.a ../../lib/libLLVMBitReader.a ../../lib/libLLVMCore.a ../../lib/libLLVMSupport.a -lrt -ldl -ltinfo -lpthread -lz -lm -Wl,-rpath,"\$ORIGIN/../lib"
> collect2: error: ld returned 1 exit status
> make[2]: *** [bin/llvm-dsymutil] Error 1
> make[2]: Leaving directory `/home/marwayusuf/llvm-env/build'
> make[1]: *** [tools/dsymutil/CMakeFiles/llvm-dsymutil.dir/all] Error 2
> make[1]: Leaving directory `/home/marwayusuf/llvm-env/build'
> make: *** [all] Error 2
Note that this isn’t the same error that you reported in the initial mail (which was a link error in libLTO). If you run the command by hand (the one starting with /usr/bin/c++), do you get any more output? (you could try adding -Wl,-v to it to make the linker a tad more verbose).
Fred
> Note:This is the last part.
>
> Regards,
> Marwa Yusuf
> Teaching Assistant - Computer Engineering Department
> Faculty of Engineering - Benha University
> E-JUST PhD Student
> Computer Science & Engineering Dept.
>
>
> From: Eric Christopher <echristo at gmail.com <mailto:echristo at gmail.com>>
> Sent: Tuesday, August 25, 2015 12:51 AM
> To: marwayusuf at feng.bu.edu.eg <mailto:marwayusuf at feng.bu.edu.eg>; llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> Subject: Re: [llvm-dev] Error building llvm
>
>
>
> On Mon, Aug 24, 2015 at 3:27 PM marwayusuf at feng.bu.edu.eg <mailto:marwayusuf at feng.bu.edu.eg> via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> Trying to run make to build llvm, I faced the following error:
> Linking CXX shared library ../../lib/libLTO.so
> collect2: error: ld returned 1 exit status
> make[2]: *** [lib/libLTO.so.3.8.0svn] Error 1
> make[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
> make: *** [all] Error 2
> So, what's the problem here?
>
> Not enough information.
>
> make VERBOSE=1
>
> -eric
>
> Regards,
> Marwa Yusuf
> Teaching Assistant - Computer Engineering Department
> Faculty of Engineering - Benha University
> E-JUST PhD Student
> Computer Science & Engineering Dept.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=BQMFAw&c=eEvniauFctOgLOKGJOplqw&r=_sX2G1Du1KZyzi5BD4_ddw&m=E2D1Q2tLkJUg1M540I9Pkzqj_ncRyOXBarj1Ans42ew&s=-iaPTK60p3M521oesELyUE0ls0aHxgY---6N1NP-uhc&e=>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=BQIGaQ&c=eEvniauFctOgLOKGJOplqw&r=_sX2G1Du1KZyzi5BD4_ddw&m=E2D1Q2tLkJUg1M540I9Pkzqj_ncRyOXBarj1Ans42ew&s=-iaPTK60p3M521oesELyUE0ls0aHxgY---6N1NP-uhc&e= <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=BQIGaQ&c=eEvniauFctOgLOKGJOplqw&r=_sX2G1Du1KZyzi5BD4_ddw&m=E2D1Q2tLkJUg1M540I9Pkzqj_ncRyOXBarj1Ans42ew&s=-iaPTK60p3M521oesELyUE0ls0aHxgY---6N1NP-uhc&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150824/bce3ed77/attachment.html>
More information about the llvm-dev
mailing list