Still fails with clang 2.9-11ubuntu1.
$ clang -v foo.c
…
"/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o a.out crt1.o crti.o
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbegin.o
-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1
-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../..
/tmp/cc-Ro8pXj.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtend.o crtn.o
/usr/bin/ld: error: cannot open crt1.o: No such file or directory
/usr/bin/ld: error: cannot open crti.o: No such file or directory
/usr/bin/ld: error: cannot open crtn.o: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** Changed in: clang (Ubuntu)
Status: Fix Released => New
** Summary changed:
- clang can’t link any programs: cannot find crtbegin.o, -lgcc, -lgcc_s
+ clang can’t link any programs: cannot find crt1.o, crti.o, crtn.o
** Branch unlinked: lp:ubuntu/oneiric/clang
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/792146
Title:
clang can’t link any programs: cannot find crt1.o, crti.o, crtn.o
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/792146/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs