New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLVM: broken sanitizer objects in installed archives #13413
Comments
Checked with @nazavode. The issue is that without loading the corresponding $ spack load binutils the [...]
/usr/bin/ld: /marconi/home/userinternal/fficarel/src/spack/opt/spack/linux-centos7-broadwell/gcc-9.2.0/llvm-9.0.0-ca65r7inizmvsl26kitwwnaseqi54tpw/lib/clang/9.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_rtl.cc.o): unrecognized relocation (0x2a) in section `.text._ZN6__asanL15AsanCheckFailedEPKciS1_yy'
/usr/bin/ld: final link failed: Bad value
$ /usr/bin/ld --version
GNU ld version 2.23.52.0.1-55.el7 20130226 We need to check if there's a way to configure |
For later reference, here's docs on how to customize |
I just hit this myself -- do we need a |
Trying to use any kind of sanitizer (e.g.:
-fsanitize=address
) with thellvm@9.0.0
produced byspack@af65146ef69fcde10d53b2ee12f82a9c28361e23
, I get the following error messages by the linker complaining about broken ELF sections:Steps to reproduce the issue
The issue has been observed on all the systems I'm currently using
spack
on (several flavours ofrhel
andubuntu
), but I'm able to consistently reproduce it using this Dockerfile and the following steps:Trying to strip the offending debug info section from objects leads to a similar issue with another ELF section (just a warning this time) but finally the linker fails with a quite suspicious
__asan_version_mismatch_check_v8
missing symbol:The text was updated successfully, but these errors were encountered: