Bug#978113: clang++ fail to compile programs
Sylvestre Ledru
sylvestre at debian.org
Sat Dec 26 11:10:31 GMT 2020
control: severity -1 normal
Hello,
Lowering the severity as clang++ is used on s390x for a bunch of programs.
Including clang which is built using itself:
https://buildd.debian.org/status/package.php?p=llvm-toolchain-11
Le 26/12/2020 à 08:07, Nicholas Guriev a écrit :
> Package: clang-11
> Version: 1:11.0.1~+rc2-1
> Severity: important
>
> Dear Maintainer,
>
> Clang++ can not operate on s380x and does not compile any C++ program.
>
> (chrooted)builder at barberry:/$ cat /proc/7194/root/tmp/tmp.HyrpKIxl0I/main.cpp
> int main()
> {
> return 0;
> }
> (chrooted)builder at barberry:/$ clang++-11 -v /proc/7194/root/tmp/tmp.HyrpKIxl0I/main.cpp -o /dev/null
> Debian clang version 11.0.1-+rc2-1
> 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 /dev/null /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 /proc/7194/root/tmp/tmp.HyrpKIxl0I/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:/proc/7194/root/tmp/tmp.HyrpKIxl0I/main.cpp: file format not recognized; treating as linker script
> /usr/bin/ld:/proc/7194/root/tmp/tmp.HyrpKIxl0I/main.cpp:1: syntax error
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>
Could you please try to generate it into a regular file?
Thanks
Sylvestre
More information about the Pkg-llvm-team
mailing list