<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 --- - lld fails to build with shared libraries enabled due to missing arg to -rpath-link"
href="https://llvm.org/bugs/show_bug.cgi?id=31745">31745</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld fails to build with shared libraries enabled due to missing arg to -rpath-link
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mgorny@gentoo.org
</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>Patch in <a href="https://reviews.llvm.org/D29099">https://reviews.llvm.org/D29099</a>
[ 98%] Linking CXX executable ../../bin/lld
cd /usr/src/llvm/tools/lld/_build/tools/lld && /usr/bin/cmake -E
cmake_link_script CMakeFiles/lld.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/c++ -fPIC -fvisibility-inlines-hidden
-Werror=date-time -std=c++11 -ffunction-sections -fdata-sections
-Wl,-rpath-link, -Wl,-O3 -Wl,--gc-sections CMakeFiles/lld.dir/lld.cpp.o -o
../../bin/lld -Wl,-rpath,"\$ORIGIN/../lib64:/usr/lib64"
/usr/lib64/libLLVMSupport.so.5.0.0svn -lpthread
../../lib/Driver/liblldDriver.so.5.0.0 ../../COFF/liblldCOFF.so.5.0.0
../../ELF/liblldELF.so.5.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldConfig.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0,
not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldMachO.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0,
not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldCore.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0, not
found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldReaderWriter.so.5, needed by
../../lib/Driver/liblldDriver.so.5.0.0, not found (try using -rpath or
-rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldYAML.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0, not
found (try using -rpath or -rpath-link)
../../lib/Driver/liblldDriver.so.5.0.0: undefined reference to
`lld::MachOLinkingContext::addRpath(llvm::StringRef)'
[...]</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>