marwayusuf@feng.bu.edu.eg via llvm-dev
2015-Aug-24 22:27 UTC
[llvm-dev] Error building llvm
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? Regards, Marwa Yusuf Teaching Assistant - Computer Engineering Department Faculty of Engineering - Benha University E-JUST PhD Student Computer Science & Engineering Dept. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150824/3081d62b/attachment.html>
On Mon, Aug 24, 2015 at 3:27 PM marwayusuf at feng.bu.edu.eg via llvm-dev < 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 > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150824/e3479306/attachment.html>
marwayusuf@feng.bu.edu.eg via llvm-dev
2015-Aug-25 00:09 UTC
[llvm-dev] Error building llvm
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: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> Sent: Tuesday, August 25, 2015 12:51 AM To: marwayusuf at feng.bu.edu.eg; 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150825/d5522648/attachment.html>
On Mon, Aug 24, 2015 at 6:35 PM marwayusuf at feng.bu.edu.eg < marwayusuf at feng.bu.edu.eg> wrote:> Ok, I copied the mentioned command and added -Wl,-v in the terminal, and > this was the output: >> c++: error: CMakeFiles/llvm-dsymutil.dir/dsymutil.cpp.o: No such file or > directory > ><snip> You did something wrong here. Probably ran it from the wrong directory.> > I tried another thing. I've searched for this command and found it in > > > /home/marwayusuf/llvm-env/build/tools/dsymutil/CMakeFiles/llvm-dsymutil.dir/link.txt > > So I added -Wl,-v to its end and run make normally, and this was the last > part of the output: > > Linking CXX executable ../../bin/llvm-dsymutil > > collect2 version 4.8.4 > > /usr/bin/ld --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 > --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z > relro -o ../../bin/llvm-dsymutil > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o > -L/usr/lib/gcc/x86_64-linux-gnu/4.8 > -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu > -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu > -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib > -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -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 > ../../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 -rpath > $ORIGIN/../lib -v -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc > /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o > > collect2: error: ld returned 1 exit status > > make[2]: *** [bin/llvm-dsymutil] Error 1 > > make[1]: *** [tools/dsymutil/CMakeFiles/llvm-dsymutil.dir/all] Error 2 > > make: *** [all] Error 2 > > >Sadly this isn't particularly enlightening and I'm not seeing whatever problem you're having locally. You can try running the link command on the above line explicitly and seeing if the linker is going to provide any more information, but if not there's not much anyone can do to help. -eric> > 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> > *Sent:* Tuesday, August 25, 2015 2:48 AM > > *To:* marwayusuf at feng.bu.edu.eg > *Subject:* Re: [llvm-dev] Error building llvm > No, I mean cut and paste the command above and add the command line option > to the end of it. I.e. /usr/bin/c++ ... -Wl,-v > > -eric > > On Mon, Aug 24, 2015 at 5:43 PM marwayusuf at feng.bu.edu.eg < > marwayusuf at feng.bu.edu.eg> wrote: > >> You mean "make -WI"? This is the last part of the result. I can't see a >> difference! >> >> >> 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 >> >> >> And this is make -v >> >> GNU Make 3.81 >> >> Copyright (C) 2006 Free Software Foundation, Inc. >> >> This is free software; see the source for copying conditions. >> >> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A >> >> PARTICULAR PURPOSE. >> >> >> This program built for x86_64-pc-linux-gnu >> >> >> 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> >> *Sent:* Tuesday, August 25, 2015 2:20 AM >> *To:* marwayusuf at feng.bu.edu.eg >> >> *Subject:* Re: [llvm-dev] Error building llvm >> >> Huh. Can you add -Wl,-v to that last command line? >> >> On Mon, Aug 24, 2015, 5:17 PM marwayusuf at feng.bu.edu.eg < >> marwayusuf at feng.bu.edu.eg> wrote: >> >>> Actually, the error has changed between the 2 runs! >>> >>> >>> Regards, >>> Marwa Yusuf >>> Teaching Assistant - Computer Engineering Department >>> Faculty of Engineering - Benha University >>> E-JUST PhD Student >>> Computer Science & Engineering Dept. >>> >>> >>> ------------------------------ >>> *From:* llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of >>> marwayusuf at feng.bu.edu.eg via llvm-dev <llvm-dev at lists.llvm.org> >>> *Sent:* Tuesday, August 25, 2015 2:09 AM >>> *To:* Eric Christopher; llvm-dev at lists.llvm.org >>> >>> *Subject:* Re: [llvm-dev] Error building llvm >>> >>> 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: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> >>> *Sent:* Tuesday, August 25, 2015 12:51 AM >>> *To:* marwayusuf at feng.bu.edu.eg; 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 via llvm-dev < >>> 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 >>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >>>> >>>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150825/50ae861e/attachment-0001.html>
marwayusuf@feng.bu.edu.eg via llvm-dev
2015-Aug-25 10:28 UTC
[llvm-dev] Error building llvm
Thanks a million for your help. I found no solution. But I re-built the whole system from scratch and it worked. 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> Sent: Tuesday, August 25, 2015 3:43 AM To: marwayusuf at feng.bu.edu.eg; llvm-dev Subject: Re: [llvm-dev] Error building llvm On Mon, Aug 24, 2015 at 6:35 PM marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg> <marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg>> wrote: Ok, I copied the mentioned command and added -Wl,-v in the terminal, and this was the output: c++: error: CMakeFiles/llvm-dsymutil.dir/dsymutil.cpp.o: No such file or directory <snip> You did something wrong here. Probably ran it from the wrong directory. I tried another thing. I've searched for this command and found it in /home/marwayusuf/llvm-env/build/tools/dsymutil/CMakeFiles/llvm-dsymutil.dir/link.txt So I added -Wl,-v to its end and run make normally, and this was the last part of the output: Linking CXX executable ../../bin/llvm-dsymutil collect2 version 4.8.4 /usr/bin/ld --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o ../../bin/llvm-dsymutil /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -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 ../../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 -rpath $ORIGIN/../lib -v -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/4.8/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o collect2: error: ld returned 1 exit status make[2]: *** [bin/llvm-dsymutil] Error 1 make[1]: *** [tools/dsymutil/CMakeFiles/llvm-dsymutil.dir/all] Error 2 make: *** [all] Error 2 Sadly this isn't particularly enlightening and I'm not seeing whatever problem you're having locally. You can try running the link command on the above line explicitly and seeing if the linker is going to provide any more information, but if not there's not much anyone can do to help. -eric 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 2:48 AM To: marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg> Subject: Re: [llvm-dev] Error building llvm No, I mean cut and paste the command above and add the command line option to the end of it. I.e. /usr/bin/c++ ... -Wl,-v -eric On Mon, Aug 24, 2015 at 5:43 PM marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg> <marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg>> wrote: You mean "make -WI"? This is the last part of the result. I can't see a difference! 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 And this is make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for x86_64-pc-linux-gnu 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 2:20 AM To: marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg> Subject: Re: [llvm-dev] Error building llvm Huh. Can you add -Wl,-v to that last command line? On Mon, Aug 24, 2015, 5:17 PM marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg> <marwayusuf at feng.bu.edu.eg<mailto:marwayusuf at feng.bu.edu.eg>> wrote: Actually, the error has changed between the 2 runs! Regards, Marwa Yusuf Teaching Assistant - Computer Engineering Department Faculty of Engineering - Benha University E-JUST PhD Student Computer Science & Engineering Dept. ________________________________ From: llvm-dev <llvm-dev-bounces at lists.llvm.org<mailto:llvm-dev-bounces at lists.llvm.org>> on behalf of 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>> Sent: Tuesday, August 25, 2015 2:09 AM To: Eric Christopher; llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org> Subject: Re: [llvm-dev] Error building llvm 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: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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150825/6965ae9e/attachment-0001.html>
Apparently Analagous Threads
- Build error
- building release_50 with gcc7.2.0 on MacOS: duplicate symbol llvm::DominatorTreeBase
- difference with autotools, cmake and ninja building methods
- [LLVMdev] undefined reference when using llvm-config
- [LLVMdev] undefined reference when using llvm-config