<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas","serif";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I’m afraid I haven’t seen that error before. Can you add the flag VERBOSE=1 to your make command and post the full linker invocation? It might give a hint as
to what’s going on…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> lldb-dev-bounces@cs.uiuc.edu [mailto:lldb-dev-bounces@cs.uiuc.edu]
<b>On Behalf Of </b>wujun0425@sohu.com<br>
<b>Sent:</b> Tuesday, January 22, 2013 4:21 AM<br>
<b>To:</b> lldb-dev<br>
<b>Subject:</b> [lldb-dev] link error in fedora 18<br>
<b>Importance:</b> High<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><i>Hi all,<o:p></o:p></i></pre>
<pre>><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.<o:p></o:p></i></pre>
<pre>><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)</i><o:p></o:p></pre>
</div>
</body>
</html>