Bug#978113: clang++ fail to compile programs
Nicholas Guriev
nicholas at guriev.su
Mon Dec 28 19:13:03 GMT 2020
On Sat, 2020-12-26 at 12:10 +0100, Sylvestre Ledru wrote:
> Could you please try to generate it into a regular file?
Well, if I change argument of `-o` parameter, the error is the same.
(chrooted)builder at barberry:/$ rm -f /tmp/a.out; touch /tmp/a.out
(chrooted)builder at barberry:/$ clang++-11 -v /tmp/main.cpp -o /tmp/a.out
Debian clang version 11.0.0-5+b1
Target: s390x-ibm-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/s390x-linux-gnu/10
Found candidate GCC installation: /usr/bin/../lib/gcc/s390x-linux-gnu/8
Found candidate GCC installation: /usr/bin/../lib/gcc/s390x-linux-gnu/9
Found candidate GCC installation: /usr/lib/gcc/s390x-linux-gnu/10
Found candidate GCC installation: /usr/lib/gcc/s390x-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/s390x-linux-gnu/9
Selected GCC installation: /usr/bin/../lib/gcc/s390x-linux-gnu/10
Candidate multilib: .;@m64
Selected multilib: .;@m64
"/usr/bin/ld" --hash-style=both --build-id --eh-frame-hdr -m elf64_s390 -dynamic-linker /lib/ld64.so.1 -o /tmp/a.out /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../s390x-linux-gnu/crt1.o /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../s390x-linux-gnu/crti.o /usr/bin/../lib/gcc/s390x-linux-gnu/10/crtbegin.o -L/usr/bin/../lib/gcc/s390x-linux-gnu/10 -L/usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../s390x-linux-gnu -L/lib/s390x-linux-gnu -L/usr/lib/s390x-linux-gnu -L/usr/bin/../lib/gcc/s390x-linux-gnu/10/../../.. -L/usr/lib/llvm-11/bin/../lib -L/lib -L/usr/lib /tmp/main.cpp -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/bin/../lib/gcc/s390x-linux-gnu/10/crtend.o /usr/bin/../lib/gcc/s390x-linux-gnu/10/../../../s390x-linux-gnu/crtn.o
/usr/bin/ld:/tmp/main.cpp: file format not recognized; treating as linker script
/usr/bin/ld:/tmp/main.cpp:1: syntax error
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20201228/99f2e7cd/attachment.sig>
More information about the Pkg-llvm-team
mailing list