<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 - Extra archive suffix is generated for ARM baremetal builtins."
href="https://bugs.llvm.org/show_bug.cgi?id=34578">34578</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Extra archive suffix is generated for ARM baremetal builtins.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</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>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eblot.ml@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>main.c:
int main(void) {return 0;}
$ clang-5.0 -target arm-non-eabi main.c
/usr/local/clang50/bin/ld.lld: error: unable to find library -lc
/usr/local/clang50/bin/ld.lld: error: unable to find library -lm
/usr/local/clang50/bin/ld.lld: error: unable to find library
-lclang_rt.builtins-arm.a
clang-5.0: error: ld.lld command failed with exit code 1 (use -v to see
invocation)
Clang generates "-lclang_rt.builtins-arm.a" rather than
"-lclang_rt.builtins-arm", which makes ld.lld to search for
"libclang_rt.builtins-arm.a.a" rather than "libclang_rt.builtins-arm.a"
BTW, is there an option switch to disable standard libraries but keep linking
with builtins?</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>