Golevka / emacs-clang-complete-async

An emacs plugin to complete C and C++ code using libclang
360 stars 71 forks source link

Failed to make in gentoo amd64 linux-3.7.9 #23

Open MosakujiHokuto opened 11 years ago

MosakujiHokuto commented 11 years ago

ld failed when doing make in gentoo amd64

└┌(%:~/.emacs.d/emacs-clang-complete-async)┌- make

"clang" -I/usr/include -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -fPIC -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/completion_serv.o ./src/completion_serv.c "clang" -I/usr/include -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -fPIC -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/parse_results.o ./src/parse_results.c "clang" -I/usr/include -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -fPIC -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/msg_dispatcher.o ./src/msg_dispatcher.c "clang" -I/usr/include -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -fPIC -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/main.o ./src/main.c "clang" -I/usr/include -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -fPIC -Wall -Wextra -pedantic -O3 -I./src -c -o src/obj/msg_handlers.o ./src/msg_handlers.c "clang" -I/usr/include -DNDEBUG -D_GNU_SOURCE -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -DSTDC_LIMIT_MACROS -fPIC -Wall -Wextra -pedantic -O3 -I./src src/obj/completion_serv.o src/obj/parse_results.o src/obj/msg_dispatcher.o src/obj/main.o src/obj/msg_handlers.o -L/usr/lib64/llvm -lpthread -lffi -ldl -lm -lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lLLVMAsmParser -lLLVMTableGen -lLLVMDebugInfo -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Disassembler -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInstrumentation -lLLVMInterpreter -lLLVMCodeGen -lLLVMipo -lLLVMVectorize -lLLVMScalarOpts -lLLVMInstCombine -lLLVMLinker -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMArchive -lLLVMBitReader -lLLVMBitWriter -lLLVMMCJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport -lstdc++ -lclang -o clang-complete /usr/bin/x86_64-pc-linux-gnu-ld: warning: libLLVM-3.2svn.so, needed by /usr/lib64/llvm/libclang.so, not found (try using -rpath or -rpath-link) /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::make_absolute(llvm::SmallVectorImpl<char>&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::EnableStatistics()' /usr/lib64/llvm/libclang.so: undefined reference to vtable for llvm::format_object_base' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::operator<<(llvm::format_object_base const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::SmallPtrSetImpl::FindBucketFor(void const*) const' /usr/lib64/llvm/libclang.so: undefined reference tovtable for llvm::PrettyStackTraceString' /usr/lib64/llvm/libclang.so: undefined reference to llvm::raw_ostream::operator<<(unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::is_directory(llvm::sys::fs::file_status)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::FoldingSetNodeID::AddPointer(void const*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::SmallPtrSetImpl::shrink_and_clear()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::APInt(unsigned int, unsigned int, unsigned long const*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::root_path(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::rename(llvm::Twine const&, llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::Profile(llvm::FoldingSetNodeID&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::MutexImpl::acquire()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::EqualSlowCase(unsigned long) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::StringRef::getAsInteger(unsigned int, llvm::APInt&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::DOT::EscapeString(std::string const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::StringRef::find_first_not_of(llvm::StringRef, unsigned long) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::add(llvm::APFloat const&, llvm::APFloat::roundingMode)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::yaml::Stream::begin()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::rotr(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::toString(unsigned int, bool) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::urem(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::yaml::Stream::end()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getOpenFile(int, char const_, llvm::OwningPtrllvm::MemoryBuffer&, unsigned long, unsigned long, long, bool)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::path::remove_filename(llvm::SmallVectorImpl<char>&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::Bogus' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Triple::isArch32Bit() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::report_fatal_error(std::string const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::remove(llvm::Twine const&, bool&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator|=(llvm::APInt const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Twine::toVector(llvm::SmallVectorImpl<char>&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::TimeRecord::getCurrentTime(bool)' /usr/lib64/llvm/libclang.so: undefined reference to typeinfo for llvm::PrettyStackTraceEntry' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringRef::find(llvm::StringRef, unsigned long) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::report_fatal_error(char const_)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::sdiv_ov(llvm::APInt const&, bool&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetNodeID::AddInteger(int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::system_temp_directory(bool, llvm::SmallVectorImpl<char>&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::ashr(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::rotl(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::AtomicIncrement(unsigned int volatile)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetNodeID::AddInteger(unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::getVendorName() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_fd_ostream::raw_fd_ostream(int, bool, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::LockFileManager::LockFileManager(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::slt(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::trunc(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::SmallPtrSetImpl::~SmallPtrSetImpl()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Process::StandardErrColumns()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringRef::upper() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::toString(llvm::SmallVectorImpl&, unsigned int, unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Regex::isValid(std::string&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Twine::toStringRef(llvm::SmallVectorImpl&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator+=(llvm::APInt const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_fd_ostream::~raw_fd_ostream()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::getAsSignedInteger(llvm::StringRef, unsigned int, long long&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::EqualSlowCase(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Program::ChangeStdoutToBinary()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::divide(llvm::APFloat const&, llvm::APFloat::roundingMode)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::convertFromString(llvm::StringRef, llvm::APFloat::roundingMode)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::system_category()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_svector_ostream::raw_svector_ostream(llvm::SmallVectorImpl<char>&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::convertToDouble() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::native(llvm::Twine const&, llvm::SmallVectorImpl<char>&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MCSectionMachO::ParseSectionSpecifier(llvm::StringRef, llvm::StringRef&, llvm::StringRef&, unsigned int&, bool&, unsigned int&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Twine::str() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::extension(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::SmallPtrSetImpl::erase_imp(void const_)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::getOSVersion(unsigned int&, unsigned int&, unsigned int&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetImpl::GetOrInsertNode(llvm::FoldingSetImpl::Node_)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::write(char const, unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::getOSName() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::AtomicDecrement(unsigned int volatile)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getNewMemBuffer(unsigned long, llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::MutexImpl::release()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::PPCDoubleDouble' /usr/lib64/llvm/libclang.so: undefined reference tollvm::yaml::ScalarNode::getValue(llvm::SmallVectorImpl&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringMapImpl::LookupBucketFor(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::ssub_ov(llvm::APInt const&, bool&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::shlSlowCase(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference totypeinfo for llvm::CrashRecoveryContextCleanup' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::getOSTypeName(llvm::Triple::OSType)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::IEEEsingle' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringRef::compare_lower(llvm::StringRef) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::get64BitArchVariant() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::has_parent_path(llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContext::Enable()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::operator<<(long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator-(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator=(unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::getDefaultTargetTriple()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::parent_path(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::filename(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator-=(llvm::APInt const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::outs()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContext::RunSafelyOnThread(void (_)(void_), void_, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::PrettyStackTraceEntry::PrettyStackTraceEntry()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::smul_ov(llvm::APInt const&, bool&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Timer::stopTimer()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::operator<<(double)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::setArch(llvm::Triple::ArchType)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::IEEEquad' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MCContext::MCContext(llvm::MCAsmInfo const&, llvm::MCRegisterInfo const&, llvm::MCObjectFileInfo const, llvm::SourceMgr const)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::yaml::Stream::~Stream()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetNodeID::ComputeHash() const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::TimeValue::normalize()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator+(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::CrashRecoveryContext::HandleCrash()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::operator=(llvm::APFloat const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::OrSlowCase(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator_=(llvm::APInt const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::unique_file(llvm::Twine const&, int&, llvm::SmallVectorImpl<char>&, bool, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::getiOSVersion(unsigned int&, unsigned int&, unsigned int&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::sext(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::locale::isPrint(int)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::Path::Path(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetImpl::clear()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::APFloat(llvm::APInt const&, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::subtract(llvm::APFloat const&, llvm::APFloat::roundingMode)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::Path::makeUnique(bool, std::string*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::PathSeparator' /usr/lib64/llvm/libclang.so: undefined reference to llvm::FoldingSetNodeID::AddInteger(unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getMemBufferCopy(llvm::StringRef, llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::is_directory(llvm::Twine const&, bool&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::APFloat(llvm::fltSemantics const&, llvm::APFloat::fltCategory, bool)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::SmallPtrSetImpl::CopyFrom(llvm::SmallPtrSetImpl const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::x87DoubleExtended' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Triple::get32BitArchVariant() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator--()' /usr/lib64/llvm/libclang.so: undefined reference to typeinfo for llvm::format_object_base' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::const_iterator::operator!=(llvm::sys::path::constiterator const&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Triple::setArchName(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getSTDIN(llvm::OwningPtrllvm::MemoryBuffer&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::clearBit(unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::getTotalMemory() const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::countLeadingZerosSlowCase() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::makeNaN(llvm::fltSemantics const&, bool, bool, llvm::APInt const)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Triple::setTriple(llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContextCleanup::~CrashRecoveryContextCleanup()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::detail::directory_iterator_increment(llvm::sys::fs::detail::DirIterState&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::GetMainExecutable(char const, void)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::countLeadingOnes() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::TargetRegistry::lookupTarget(std::string const&, std::string&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::APFloat(double)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::PrintStats() const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::StringRef::lower() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::countPopulationSlowCase() const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::path::is_separator(char)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetNodeID::AddNodeID(llvm::FoldingSetNodeID const&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::getNonStreamedMemoryObject(unsigned char const_, unsigned char const_)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::APFloat(llvm::APFloat const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::hashing::detail::fixed_seed_override' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::create_directory(llvm::Twine const&, bool&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::canWrite() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::zextOrTrunc(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MCAsmParserSemaCallback::~MCAsmParserSemaCallback()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::eraseComponent()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::detail::directory_iterator_destruct(llvm::sys::fs::detail::DirIterState&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringRef::rfind(llvm::StringRef) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::Profile(llvm::FoldingSetNodeID&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::shl(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::DisablePrettyStackTrace' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::convertToInteger(llvm::APSInt&, llvm::APFloat::roundingMode, bool_) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::raw_string_ostream::~raw_string_ostream()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetImpl::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&, void_&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::path::stem(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getNewUninitMemBuffer(unsigned long, llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::raw_fd_ostream::close()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::rawostream::operator<<(void const)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::changeSign()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::SmallPtrSetImpl::swap(llvm::SmallPtrSetImpl&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::StringMapImpl::StringMapImpl(unsigned int, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Timer::init(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::IEEEhalf' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Timer::~Timer()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::BumpPtrAllocator::~BumpPtrAllocator()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::BumpPtrAllocator(unsigned long, unsigned long, llvm::SlabAllocator&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::Path::Path(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::flush_nonempty()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::BumpPtrAllocator::DefaultSlabAllocator' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::bitwiseIsEqual(llvm::APFloat const&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Triple::getArchName() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Regex::~Regex()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::fs::detail::directory_iterator_construct(llvm::sys::fs::detail::DirIterState&, llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::eraseSuffix()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::FoldingSetIteratorImpl::advance()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::end(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Regex::match(llvm::StringRef, llvm::SmallVectorImpl<llvm::StringRef>*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::Reset()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::udiv(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::LockFileManager::waitForUnlock()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::llvm_start_multithreaded()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::append(llvm::SmallVectorImpl&, llvm::sys::path::const_iterator, llvm::sys::path::const_iterator)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::byteSwap() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_fd_ostream::raw_fdostream(char const, std::string&, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::Program::FindProgramByName(std::string const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::SourceMgr::~SourceMgr()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::llvm_execute_on_thread(void (_)(void_), void_, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_fd_ostream::seek(unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::const_iterator::operator++()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::locale::columnWidth(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::errs()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::bitcastToAPInt() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Process::StandardErrHasColors()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::sextOrTrunc(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetNodeID::operator==(llvm::FoldingSetNodeID const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::IEEEdouble' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::Triple(llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetImpl::FoldingSetImpl(unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::appendSuffix(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Regex::Regex(llvm::StringRef, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::generic_category()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::initSlowCase(llvm::APInt const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::SetBufferAndMode(char_, unsigned long, llvm::raw_ostream::BufferKind)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::equivalent(llvm::Twine const&, llvm::Twine const&, bool&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::current_path(llvm::SmallVectorImpl<char>&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::yaml::KeyValueNode::getValue()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::LockFileManager::~LockFileManager()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getFile(llvm::StringRef, llvm::OwningPtr&, long, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::append(llvm::SmallVectorImpl<char>&, llvm::Twine const&, llvm::Twine const&, llvm::Twine const&, llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_svector_ostream::~raw_svectorostream()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::getAsUnsignedInteger(llvm::StringRef, unsigned int, unsigned long long&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::BumpPtrAllocator(unsigned long, unsigned long, llvm::SlabAllocator&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::APInt(unsigned int, llvm::ArrayRef<unsigned long>)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::LockFileManager::getState() const' /usr/lib64/llvm/libclang.so: undefined reference to`llvm::CrashRecoveryContext::RunSafely(void ()(void), void)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::raw_ostream::write_escaped(llvm::StringRef, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::yaml::KeyValueNode::getKey()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::XorSlowCase(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::setOSName(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::BumpPtrAllocator::AlignPtr(char*, unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::TimeRecord::print(llvm::TimeRecord const&, llvm::raw_ostream&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::print(llvm::raw_ostream&, bool) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContext::registerCleanup(llvm::CrashRecoveryContextCleanup_)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::createNullStreamer(llvm::MCContext&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APSInt::Profile(llvm::FoldingSetNodeID&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::zext(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::sadd_ov(llvm::APInt const&, bool&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Twine::print(llvm::raw_ostream&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContext::~CrashRecoveryContext()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::initSlowCase(unsigned int, unsigned long, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::~BumpPtrAllocator()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::compare(llvm::APFloat const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetImpl::~FoldingSetImpl()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::~APFloat()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetNodeID::AddString(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::yaml::MappingNode::increment()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::FoldingSetIteratorImpl::FoldingSetIteratorImpl(void_)' /usr/lib64/llvm/libclang.so: undefined reference to `llvm::sys::Path::eraseFromDisk(bool, std::string) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::yaml::Stream::Stream(llvm::StringRef, llvm::SourceMgr&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContext::unregisterCleanup(llvm::CrashRecoveryContextCleanup_)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::getSmallest(llvm::fltSemantics const&, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::rawostream::write(unsigned char)' /usr/lib64/llvm/libclang.so: undefined reference to `llvm::MemoryBuffer::getFile(char const, llvm::OwningPtrllvm::MemoryBuffer&, long, bool)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::install_fatal_error_handler(void (*)(void*, std::string const&), void*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::appendComponent(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::SmallPtrSetImpl::SmallPtrSetImpl(void const**, llvm::SmallPtrSetImpl const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MCAsmParser::setTargetParser(llvm::MCTargetAsmParser&)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APInt::ult(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::createDirectoryOnDisk(bool, std::string_)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::CrashRecoveryContext::Disable()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::format_object_base::home()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::SmallVectorBase::grow_pod(void_, unsigned long, unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringMapImpl::RehashTable()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::APFloat(llvm::fltSemantics const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::BumpPtrAllocator::Allocate(unsigned long, unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::exists(llvm::Twine const&, bool&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Timer::startTimer()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::CrashRecoveryContext::GetCurrent()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::report_fatal_error(llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Twine::toNullTerminatedStringRef(llvm::SmallVectorImpl<char>&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::lshr(unsigned int) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::replace_extension(llvm::SmallVectorImpl<char>&, llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::createMCAsmParser(llvm::SourceMgr&, llvm::MCContext&, llvm::MCStreamer&, llvm::MCAsmInfo const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::is_absolute(llvm::Twine const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::copy_file(llvm::Twine const&, llvm::Twine const&, llvm::sys::fs::copyoption)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringRef::split(llvm::SmallVectorImplllvm::StringRef&, llvm::StringRef, int, bool) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::AssignSlowCase(llvm::APInt const&)' /usr/lib64/llvm/libclang.so: undefined reference to`llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string_)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::begin(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::MutexImpl::MutexImpl(bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_ostream::write_hex(unsigned long long)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MCContext::~MCContext()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::getLargest(llvm::fltSemantics const&, bool)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::raw_svector_ostream::str()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::StringRef::edit_distance(llvm::StringRef, bool, unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::canExecute() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::operator++()' /usr/lib64/llvm/libclang.so: undefined reference totypeinfo for llvm::FoldingSetImpl' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::getHostCPUName()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::error_code::message() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Path::isRegularFile() const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::PathWithStatus::getFileStatus(bool, std::string_) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::AndSlowCase(llvm::APInt const&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::sshl_ov(unsigned int, bool&) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::convert(llvm::fltSemantics const&, llvm::APFloat::roundingMode, bool)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::SourceMgr::FindBufferContainingLoc(llvm::SMLoc) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::PrettyStackTraceEntry::~PrettyStackTraceEntry()' /usr/lib64/llvm/libclang.so: undefined reference to typeinfo for llvm::MCAsmParserSemaCallback' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::Program::ExecuteAndWait(llvm::sys::Path const&, char const, char const, llvm::sys::Path const*, unsigned int, unsigned int, std::string_)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::sys::PrintStackTraceOnErrorSignal()' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APInt::toString(llvm::SmallVectorImpl&, unsigned int, bool, bool) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::multiply(llvm::APFloat const&, llvm::APFloat::roundingMode)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::MemoryBuffer::getMemBuffer(llvm::StringRef, llvm::StringRef, bool)' /usr/lib64/llvm/libclang.so: undefined reference to vtable for llvm::raw_string_ostream' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::MutexImpl::~MutexImpl()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::APFloat::copySign(llvm::APFloat const&)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::convertFromAPInt(llvm::APInt const&, bool, llvm::APFloat::roundingMode)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::StringMapImpl::FindKey(llvm::StringRef) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::yaml::Document::parseBlockNode()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::StringRef::find_first_of(llvm::StringRef, unsigned long) const' /usr/lib64/llvm/libclang.so: undefined reference tollvm::yaml::SequenceNode::increment()' /usr/lib64/llvm/libclang.so: undefined reference to llvm::Triple::normalize(llvm::StringRef)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::APFloat::APFloat(llvm::fltSemantics const&, unsigned long)' /usr/lib64/llvm/libclang.so: undefined reference to llvm::SmallPtrSetImpl::insert_imp(void const*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::fs::directory_entry::status(llvm::sys::fs::file_status&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::FoldingSetImpl::InsertNode(llvm::FoldingSetImpl::Node*, void*)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::Triple::getMacOSXVersion(unsigned int&, unsigned int&, unsigned int&) const' /usr/lib64/llvm/libclang.so: undefined reference to llvm::raw_ostream::indent(unsigned int)' /usr/lib64/llvm/libclang.so: undefined reference tollvm::sys::path::is_relative(llvm::Twine const&)' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *\ [clang-complete] 错误 1

I've noticed the message: /usr/bin/x86_64-pc-linux-gnu-ld: warning: libLLVM-3.2svn.so, needed by /usr/lib64/llvm/libclang.so, not found (try using -rpath or -rpath-link)

After adding this to LDFLAGS,problem fixed. LDLIBS := $(shell llvm-config --ldflags) $(shell llvm-config --libs all) -lstdc++ -lclang -rpath $(shell llvm-config --libdir)

romildo commented 11 years ago

Failed for me too on gentoo ~amd64.