[llvm-bugs] [Bug 34578] New: Extra archive suffix is generated for ARM baremetal builtins.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 12 08:22:38 PDT 2017


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

            Bug ID: 34578
           Summary: Extra archive suffix is generated for ARM baremetal
                    builtins.
           Product: clang
           Version: 5.0
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eblot.ml at gmail.com
                CC: llvm-bugs at lists.llvm.org

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?

-- 
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/20170912/d585debc/attachment.html>


More information about the llvm-bugs mailing list