Bug#1004914: libclang-common-13-dev: /usr/bin/s390x-linux-gnu-ld: cannot find /usr/lib/llvm-13/lib/clang/13.0.1/lib/linux/libclang_rt.builtins-s390x.a: No such file or directory

Nicholas Guriev nicholas at guriev.su
Thu Feb 3 14:48:13 GMT 2022


Package: libclang-common-13-dev

Dear maintainer,

The package seems to be missing libclang_rt.builtins-s390x.a, compiler
runtime library, and so Clang is unable to produce useful binaries on
s390x platform. Can you please look at this error? This is especially
critical for C++ code with exceptions which require internal __cxa
routines.

(llvm_archive20220130_s390x)builder at barberry:/$ LANG=C clang -v -rtlib=compiler-rt -x c <(echo 'int main(){return 0;}') -o /dev/null
Debian clang version 13.0.1-+rc3-1~exp1+b1
Target: s390x-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/s390x-linux-gnu/11
Selected GCC installation: /usr/bin/../lib/gcc/s390x-linux-gnu/11
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/lib/llvm-13/bin/clang" -cc1 -triple s390x-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name 63 -mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -target-cpu z196 -debugger-tuning=gdb -v -fcoverage-compilation-dir=/ -resource-dir /usr/lib/llvm-13/lib/clang/13.0.1 -internal-isystem /usr/lib/llvm-13/lib/clang/13.0.1/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/gcc/s390x-linux-gnu/11/../../../../s390x-linux-gnu/include -internal-externc-isystem /usr/include/s390x-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir=/ -ferror-limit 19 -fno-signed-char -fgnuc-version=4.2.1 -fcolor-diagnostics -faddrsig -o /tmp/63-d7855c.o -x c /dev/fd/63
clang -cc1 version 13.0.1 based upon LLVM 13.0.1 default target s390x-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/gcc/s390x-linux-gnu/11/../../../../s390x-linux-gnu/include"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/llvm-13/lib/clang/13.0.1/include
 /usr/local/include
 /usr/include/s390x-linux-gnu
 /usr/include
End of search list.
 "/usr/bin/s390x-linux-gnu-ld" --build-id --eh-frame-hdr -m elf64_s390 -dynamic-linker /lib/ld64.so.1 -o /dev/null /lib/s390x-linux-gnu/crt1.o /lib/s390x-linux-gnu/crti.o /usr/bin/../lib/gcc/s390x-linux-gnu/11/crtbegin.o -L/usr/bin/../lib/gcc/s390x-linux-gnu/11 -L/lib/s390x-linux-gnu -L/usr/lib/s390x-linux-gnu -L/usr/lib/llvm-13/bin/../lib -L/lib -L/usr/lib /tmp/63-d7855c.o /usr/lib/llvm-13/lib/clang/13.0.1/lib/linux/libclang_rt.builtins-s390x.a --as-needed -lgcc_s --no-as-needed -lc /usr/lib/llvm-13/lib/clang/13.0.1/lib/linux/libclang_rt.builtins-s390x.a --as-needed -lgcc_s --no-as-needed /usr/bin/../lib/gcc/s390x-linux-gnu/11/crtend.o /lib/s390x-linux-gnu/crtn.o
/usr/bin/s390x-linux-gnu-ld: cannot find /usr/lib/llvm-13/lib/clang/13.0.1/lib/linux/libclang_rt.builtins-s390x.a: No such file or directory
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: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20220203/18c2a41d/attachment-0001.sig>


More information about the Pkg-llvm-team mailing list