Marc J. Driftmeyer
2012-Jun-08 19:52 UTC
[LLVMdev] Build error fails at MachineInstr const* for the past two days
I keep getting this error upon building:> Linking CXX executable ../../bin/opt > ../../lib/libLLVMTarget.so: error: undefined reference to > 'llvm::TargetInstrInfo::getNumMicroOps(llvm::InstrItineraryData > const*, llvm::MachineInstr const*) const' > ../../lib/libLLVMTarget.so: error: undefined reference to > 'llvm::TargetInstrInfo::getInstrLatency(llvm::InstrItineraryData > const*, llvm::MachineInstr const*, unsigned int*) const' > ../../lib/libLLVMTarget.so: error: undefined reference to > 'llvm::TargetInstrInfo::hasLowDefLatency(llvm::InstrItineraryData > const*, llvm::MachineInstr const*, unsigned int) const' > ../../lib/libLLVMTarget.so: error: undefined reference to > 'llvm::TargetInstrInfo::getOperandLatency(llvm::InstrItineraryData > const*, llvm::MachineInstr const*, unsigned int, llvm::MachineInstr > const*, unsigned int) const' > clang-3: error: linker command failed with exit code 1 (use -v to see > invocation) > make[2]: *** [bin/opt] Error 1 > make[1]: *** [tools/opt/CMakeFiles/opt.dir/all] Error 2 > make: *** [all] Error 2Is anyone else getting this outcome? - Marc -- Marc J. Driftmeyer Email :: mjd at reanimality.com <mailto:mjd at reanimality.com> Web :: http://www.reanimality.com Cell :: (509) 435-5212 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120608/c61a1613/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: mjd.vcf Type: text/x-vcard Size: 317 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120608/c61a1613/attachment.vcf>
Andrew Trick
2012-Jun-09 00:07 UTC
[LLVMdev] Build error fails at MachineInstr const* for the past two days
On Jun 8, 2012, at 12:52 PM, Marc J. Driftmeyer <mjd at reanimality.com> wrote:> I keep getting this error upon building: > >> Linking CXX executable ../../bin/opt >> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::getNumMicroOps(llvm::InstrItineraryData const*, llvm::MachineInstr const*) const' >> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::getInstrLatency(llvm::InstrItineraryData const*, llvm::MachineInstr const*, unsigned int*) const' >> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::hasLowDefLatency(llvm::InstrItineraryData const*, llvm::MachineInstr const*, unsigned int) const' >> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::getOperandLatency(llvm::InstrItineraryData const*, llvm::MachineInstr const*, unsigned int, llvm::MachineInstr const*, unsigned int) const' >> clang-3: error: linker command failed with exit code 1 (use -v to see invocation) >> make[2]: *** [bin/opt] Error 1 >> make[1]: *** [tools/opt/CMakeFiles/opt.dir/all] Error 2 >> make: *** [all] Error 2 > > Is anyone else getting this outcome? > > - MarcMarc, Revision numbers are more useful than "last two days". Tobias reported a problem last night. I've committed a few changes hoping to make the situation better. But I haven't been able to verify the problem because my shared-lib build fails immediately as follows: cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_C_COMPILER=/usr/bin/clang -DLLVM_ENABLE_ASSERTIONS=1 ... Linking CXX shared library ../libLLVMTableGen.dylib Undefined symbols for architecture x86_64: "llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::setInitialValue(std::string const&)", referenced from: void llvm::cl::initializer<char [2]>::apply<llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> > >(llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >&) const in Main.cpp.o If anyone can reproduce the errors that Marc reported above, contact me directly so we can figure out a fix. Until then, I'll continue trying to reproduce it. -Andy
Marc J. Driftmeyer
2012-Jun-09 04:34 UTC
[LLVMdev] Build error fails at MachineInstr const* for the past two days
Andrew, What every bit of code committed to trunk this afternoon did the trick. Compiles cleanly against gcc and clang-trunk from a few days prior. I'll be precise on trunk revisions in the future as well as a more in-depth analysis of what trips, and when it trips. If I knew the inner workings of LLVM/Clang I'd be of much greater use. Thank you for the fixes. - Marc On 06/08/2012 05:07 PM, Andrew Trick wrote:> On Jun 8, 2012, at 12:52 PM, Marc J. Driftmeyer<mjd at reanimality.com> wrote: > >> I keep getting this error upon building: >> >>> Linking CXX executable ../../bin/opt >>> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::getNumMicroOps(llvm::InstrItineraryData const*, llvm::MachineInstr const*) const' >>> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::getInstrLatency(llvm::InstrItineraryData const*, llvm::MachineInstr const*, unsigned int*) const' >>> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::hasLowDefLatency(llvm::InstrItineraryData const*, llvm::MachineInstr const*, unsigned int) const' >>> ../../lib/libLLVMTarget.so: error: undefined reference to 'llvm::TargetInstrInfo::getOperandLatency(llvm::InstrItineraryData const*, llvm::MachineInstr const*, unsigned int, llvm::MachineInstr const*, unsigned int) const' >>> clang-3: error: linker command failed with exit code 1 (use -v to see invocation) >>> make[2]: *** [bin/opt] Error 1 >>> make[1]: *** [tools/opt/CMakeFiles/opt.dir/all] Error 2 >>> make: *** [all] Error 2 >> Is anyone else getting this outcome? >> >> - Marc > > Marc, > > Revision numbers are more useful than "last two days". Tobias reported a problem last night. I've committed a few changes hoping to make the situation better. But I haven't been able to verify the problem because my shared-lib build fails immediately as follows: > > cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_C_COMPILER=/usr/bin/clang -DLLVM_ENABLE_ASSERTIONS=1 ... > > Linking CXX shared library ../libLLVMTableGen.dylib > Undefined symbols for architecture x86_64: > "llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >::setInitialValue(std::string const&)", referenced from: > void llvm::cl::initializer<char [2]>::apply<llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> > >(llvm::cl::opt<std::string, false, llvm::cl::parser<std::string> >&) const in Main.cpp.o > > If anyone can reproduce the errors that Marc reported above, contact me directly so we can figure out a fix. Until then, I'll continue trying to reproduce it. > > -Andy-- Marc J. Driftmeyer Email :: mjd at reanimality.com <mailto:mjd at reanimality.com> Web :: http://www.reanimality.com Cell :: (509) 435-5212 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120608/96608abf/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: mjd.vcf Type: text/x-vcard Size: 317 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120608/96608abf/attachment.vcf>
Apparently Analagous Threads
- [LLVMdev] Build error fails at MachineInstr const* for the past two days
- [LLVMdev] Machine LICM and cheap instructions?
- [LLVMdev] Instruction Scheduling - migration from v3.1 to v3.2
- [LLVMdev] Changes to Debian's linker object files breaks building LLVM [crti.o, crt1.o, crtn.o]
- [LLVMdev] Changes to Debian's linker object files breaks building LLVM [crti.o, crt1.o, crtn.o]