<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><pre><i>Hi all,
</i>><i> I tried to compile lldb following the instructions provided on the build instruction section, but i get this issue when i launch make command.
</i>><i> It doesn't create the shared library<br><br>llvm[1]: Linking Release+Asserts Shared Library liblldb.so<br>/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbCommands.a(CommandObjectMemory.o): In function `CommandObjectMemoryWrite::DoExecute(lldb_private::Args&, lldb_private::CommandReturnObject&)':<br>/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'<br>/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*)':<br>/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'<br>/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> >&)':<br>/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'<br>/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*)':<br>/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'<br>/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*)':<br>/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'<br>/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbInterpreter.a(OptionValueFileSpec.o): In function `lldb_private::OptionValueFileSpec::GetFileContents(bool)':<br>/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'<br>/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbPluginSymbolFileDWARF.a(SymbolFileDWARFDebugMap.o): In function `SymbolFileDWARFDebugMap::GetModuleByCompUnitInfo(SymbolFileDWARFDebugMap::CompileUnitInfo*)':<br>/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)'<br>/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&)':<br>/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'<br>/home/tiantianup/new-llvm/build/Release+Asserts/lib/liblldbPluginPlatformMacOSX.a(PlatformDarwin.o): In function `PlatformDarwin::GetDeveloperDirectory()':<br>/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'<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br></i></pre>