Yeah, this is broken again. On oneiric amd64 I get
"/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 crtbegin.o -L -L/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/../../.. /tmp/cc-cdfXQY.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed 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 crtbegin.o: No such file or directory /usr/bin/ld: error: cannot open crtend.o: No such file or directory /usr/bin/ld: error: cannot open crtn.o: No such file or directory /usr/bin/ld: error: cannot find -lgcc /usr/bin/ld: error: cannot find -lgcc_s /usr/bin/ld: error: cannot find -lc /usr/bin/ld: error: cannot find -lgcc /usr/bin/ld: error: cannot find -lgcc_s clang: error: linker command failed with exit code 1 (use -v to see invocation)
The situation is a little better after rebuilding clang 2.9-11 from Debian, but still not fixed:
"/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-r7kJDE.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 /usr/bin/ld: error: cannot find -lc clang: error: linker command failed with exit code 1 (use -v to see invocation)
Yeah, this is broken again. On oneiric amd64 I get
"/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 crtbegin.o -L -L/../. ./../.. /lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/../../.. /tmp/cc-cdfXQY.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed 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 crtbegin.o: No such file or directory
/usr/bin/ld: error: cannot open crtend.o: No such file or directory
/usr/bin/ld: error: cannot open crtn.o: No such file or directory
/usr/bin/ld: error: cannot find -lgcc
/usr/bin/ld: error: cannot find -lgcc_s
/usr/bin/ld: error: cannot find -lc
/usr/bin/ld: error: cannot find -lgcc
/usr/bin/ld: error: cannot find -lgcc_s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The situation is a little better after rebuilding clang 2.9-11 from Debian, but still not fixed:
"/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-r7kJDE.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
/usr/bin/ld: error: cannot find -lc
clang: error: linker command failed with exit code 1 (use -v to see invocation)