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: unassignedclangb...@nondot.org
          Reporter: eblot...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to