<html>
<head>
<base href="https://bugs.llvm.org/">
</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 link GNU indirect functions"
href="https://bugs.llvm.org/show_bug.cgi?id=44842">44842</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld fails to link GNU indirect functions
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeanmichael.celerier@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
</td>
</tr></table>
<p>
<div>
<pre>Hello,
I have an issue linking fftw3 (I'm on up-to-date ArchLinux) with lld.
Repro :
$ echo 'int main() { }' > foo.cpp
$ clang++ foo.cpp -lfftw3 -fuse-ld=lld
ld.lld: error:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.1/../../../../lib64/libfftw3.so:
undefined reference to __log_finite
(same with g++ ; it works fine with BFD and gold).
The symbol exists in libm :
$ nm -D /usr/lib/libm.so.6 | grep __log_finite
000000000002dfa0 i __log_finite
And the fftw lib of course links against libm.</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>