google / sanitizers

AddressSanitizer, ThreadSanitizer, MemorySanitizer
Other
11.41k stars 1.03k forks source link

/usr/bin/ld: cannot find /usr/lib64/libtsan.so.0.0.0 despite libtsan.so.2.0.0 #1768

Open ghost opened 3 months ago

ghost commented 3 months ago

Hi, I attempted to install libtsan from devtoolset-12-libtsan-devel on RHEL9. When I compile using -fsanitize=thread I get the error: /usr/bin/ld: cannot find /usr/lib64/libtsan.so.0.0.0. I was able to fix it using yum install /usr/lib64/libtsan.so.0.0.0, however, I was wondering if there was a fix/error I made during setup preventing it from using the already installed libtsan.so.2.0.0. Any help is appreciated!