[lldb-dev] link error in fedora 18

wujun0425 at sohu.com wujun0425 at sohu.com
Tue Jan 22 01:20:40 PST 2013


Hi all,
> I tried to compile lldb following the instructions provided on the build instruction section, but i get this issue when i launch make command.
> It doesn't create the shared libraryllvm[1]: Linking Release+Asserts Shared Library liblldb.so/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbCommands.a(CommandObjectMemory.o): In function `CommandObjectMemoryWrite::DoExecute(lldb_private::Args&, lldb_private::CommandReturnObject&)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Commands/CommandObjectMemory.cpp:(.text._ZN24CommandObjectMemoryWrite9DoExecuteERN12lldb_private4ArgsERNS0_19CommandReturnObjectE[_ZN24CommandObjectMemoryWrite9DoExecuteERN12lldb_private4ArgsERNS0_19CommandReturnObjectE]+0x202): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, unsigned int, lldb_private::Error*) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbCore.a(SourceManager.o): In function `lldb_private::SourceManager::File::DisplaySourceLines(unsigned int, unsigned int, unsigned int, lldb_private::Stream*)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Core/SourceManager.cpp:(.text+0xa84): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, unsigned int, lldb_private::Error*) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbCore.a(SourceManager.o): In function `lldb_private::SourceManager::File::FindLinesMatchingRegex(lldb_private::RegularExpression&, unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int> >&)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Core/SourceManager.cpp:(.text+0x167c): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, unsigned int, lldb_private::Error*) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbCore.a(SourceManager.o): In function `lldb_private::SourceManager::File::File(lldb_private::FileSpec const&, lldb_private::Target*)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Core/SourceManager.cpp:(.text+0x1cc4): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, unsigned int, lldb_private::Error*) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbHostCommon.a(Host.o): In function `lldb_private::Host::RunShellCommand(char const*, char const*, int*, int*, std::string*, unsigned int, char const*)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Host/common/Host.cpp:(.text+0x2a16): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, void*, unsigned int, lldb_private::Error*) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbInterpreter.a(OptionValueFileSpec.o): In function `lldb_private::OptionValueFileSpec::GetFileContents(bool)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Interpreter/OptionValueFileSpec.cpp:(.text+0x62e): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, unsigned int, lldb_private::Error*) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbPluginSymbolFileDWARF.a(SymbolFileDWARFDebugMap.o): In function `SymbolFileDWARFDebugMap::GetModuleByCompUnitInfo(SymbolFileDWARFDebugMap::CompileUnitInfo*)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp:(.text+0xd09): undefined reference to `lldb_private::Module::Module(lldb_private::FileSpec const&, lldb_private::ArchSpec const&, lldb_private::ConstString const*, long)'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbTarget.a(Target.o): In function `lldb_private::Target::ReadMemoryFromFileCache(lldb_private::Address const&, void*, unsigned int, lldb_private::Error&)':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Target/Target.cpp:(.text+0x8fd1): undefined reference to `lldb_private::ObjectFile::ReadSectionData(lldb_private::Section const*, long long, void*, unsigned int) const'/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbPluginPlatformMacOSX.a(PlatformDarwin.o): In function `PlatformDarwin::GetDeveloperDirectory()':/home/tiantianup/new-llvm/llvm/tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp:(.text+0x2526): undefined reference to `lldb_private::FileSpec::ReadFileContents(long long, void*, unsigned int, lldb_private::Error*) const'clang: error: linker command failed with exit code 1 (use -v to see invocation)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130122/4fec4d22/attachment.html>


More information about the lldb-dev mailing list