[llvm-bugs] [Bug 41778] New: -fuse-ld errors

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 6 16:40:36 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41778

            Bug ID: 41778
           Summary: -fuse-ld errors
           Product: lld
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: bogardon at gmail.com
                CC: llvm-bugs at lists.llvm.org

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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190506/1f6067cb/attachment.html>


More information about the llvm-bugs mailing list