<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 - -fuse-ld errors"
href="https://bugs.llvm.org/show_bug.cgi?id=41778">41778</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-fuse-ld errors
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>MachO
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bogardon@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Apologies in advance if this was already addressed elsewhere or I'm just plain
using it wrong.
If I run:
clang -fuse-ld=/path/to/ld.lld helloworld.c
I get:
ld.lld: error: unknown argument: -no_deduplicate
ld.lld: error: unknown argument: -dynamic
ld.lld: error: unknown argument: -arch
ld.lld: error: unknown argument: -syslibroot
ld.lld: error: unknown emulation: acosx_version_min
ld.lld: error: unable to find library -lto_library
ld.lld: error:
/Applications/Xcode_10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib:
unknown file type
ld.lld: error: cannot open x86_64: No such file or directory
ld.lld: error: cannot open 10.14.0: No such file or directory
ld.lld: error: cannot open
/Applications/Xcode_10.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk:
Is a directory
ld.lld: error: /var/folders/st/z3nryntj70bdt7m4w87nkvwc007g6z/T/test-7dc1fa.o:
unknown file type
ld.lld: error: unable to find library -lSystem
ld.lld: error:
/Applications/Xcode_10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/lib/darwin/libclang_rt.osx.a:
unknown file type
clang: error: linker command failed with exit code 1 (use -v to see invocation)</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>