<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - lldb 3.7.0rc2 self-build LTO fails to link on FreeBSD; references undefined JSONArray/String/Object and StreamString"
href="https://llvm.org/bugs/show_bug.cgi?id=24480">24480</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lldb 3.7.0rc2 self-build LTO fails to link on FreeBSD; references undefined JSONArray/String/Object and StreamString
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>greenreaper@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14734" name="attach_14734" title="Full build log for argdumper failure">attachment 14734</a> <a href="attachment.cgi?id=14734&action=edit" title="Full build log for argdumper failure">[details]</a></span>
Full build log for argdumper failure
My system is FreeBSD 10.1-RELEASE-p16 on an Ivy Bridge E3-1225v2. I'm using the
llvm37 FreeBSD port which downloaded the 3.7.0rc2 build from Git. The port
applies a few patches but they're just backported fixes for OpenMP on Blender.
<a href="https://svnweb.freebsd.org/ports/head/devel/llvm37/">https://svnweb.freebsd.org/ports/head/devel/llvm37/</a>
FreeBSD's Makefile offers to build individual components of llvm. I with all
options enabled using the following options in /etc/make.conf:
CPUTYPE?=ivybridge
CFLAGS+=-O3
CXXFLAGS+=-Wno-deprecated -O3
LDFLAGS+=-fuse-ld=gold -v
However, when I add -flto to CFLAGS, CXXFLAGS and LDFLAGS, the linking of
argdumper fails with the following error messages:
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::JSONArray::JSONArray()'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::JSONString::JSONString(char const*)'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::JSONArray::AppendObject(std::__1::shared_ptr<lldb_private::JSONValue>)'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::JSONObject::JSONObject()'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::JSONObject::SetObject(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&,
std::__1::shared_ptr<lldb_private::JSONValue>)'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::StreamString::StreamString()'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::StreamString::GetData() const'
/tmp/lto-llvm-70e76e.o:ld-temp.o:function main: error: undefined reference to
'lldb_private::StreamString::~StreamString()'
I see this about r241522 - Make the "lldb/Utility/JSON.h" able to parse JSON
into tokens with the new JSONParser class.
<a href="http://lists.llvm.org/pipermail/lldb-commits/Week-of-Mon-20150706/020208.html">http://lists.llvm.org/pipermail/lldb-commits/Week-of-Mon-20150706/020208.html</a>
Perhaps there is a file that isn't known or available to the linker plugin on
FreeBSD but is on other platforms?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>