Description of problem:
clang -fsanitize=address some.c
/usr/bin/ld: error: cannot open /usr/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. clang -fsanitize=address
I can confirm this. The static library with ASAN disappeared in 3.7.
Unfortunately, this is expected according to the upstream:
We will have to switch the build system from autotools to cmake. This will be a lot of work. It was pretty broken the last time I tried (in 3.3 or something).
The ASAN support is pretty important for me. But I'm not sure if I'll have time to fix this any time soon.
before opening this bug report, I downloaded
(and .sig) and copied the missing files to
and ASAN worked OK.
...in case someone needs ASAN ASAP.
Thanks Sami, apparently copying libclang_rt.asan-x86_64.a from that archive was enough.
*** Bug 1278914 has been marked as a duplicate of this bug. ***
I confirm on comment #3, unpack the archive and
cp ./lib/clang/3.7.0/lib/linux/libclang_rt.asan-x86_64.a /usr/lib/clang/3.7.0/lib/linux/
is sufficient to fix the issue until getting a package update,
*** Bug 1309329 has been marked as a duplicate of this bug. ***
(In F24, the relevant archives are apparently in a compiler-rt rpm now.)
I hit this on F24. Shouldn't compiler-rt be a dependency of clang?
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 23 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
(In reply to Stephan Bergmann from comment #7)
> (In F24, the relevant archives are apparently in a compiler-rt rpm now.)
While true, is it documented somewhere? Or should compiler-rt be a dependency of clang, as per comment #8?
This is working now with clang-3.8.1-1.fc24.