Bug#978113: clang++ fail to compile programs
Nicholas Guriev
nicholas at guriev.su
Sat Dec 26 07:07:22 GMT 2020
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)
It is expected the later command succeeds and returns 0 status just like
on amd64 architecture.
-- Dependencies information:
Versions of packages clang-11 depends on:
ii binutils 2.35.1-6
ii libc6:s390x 2.31-6
ii libc6-dev:s390x 2.31-6
ii libclang-common-11-dev 1:11.0.1~+rc2-1
ii libclang-cpp11 1:11.0.1~+rc2-1
ii libclang1-11 1:11.0.1~+rc2-1
ii libgcc-10-dev:s390x 10.2.1-3
ii libgcc-s1:s390x 10.2.1-3
ii libllvm11:s390x 1:11.0.1~+rc2-1
ii libobjc-10-dev:s390x 10.2.1-3
ii libstdc++-10-dev:s390x 10.2.1-3
ii libstdc++6:s390x 10.2.1-3
Versions of packages clang-11 recommends:
un libomp-11-dev <none>
un llvm-11-dev <none>
un python3 <none>
Versions of packages clang-11 suggests:
un clang-11-doc <none>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20201226/0d29927b/attachment.sig>
More information about the Pkg-llvm-team
mailing list