Description of problem: Leak sanatizer build do not work because of missing liblsan_preinit.o Version-Release number of selected component (if applicable): gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC) How reproducible: create a C++ binary, build for leak sanatizer, watch the build (linking) fail Steps to Reproduce: 1. create a C++ program 2. compile with -fsanitize=leak -fno-omit-frame-pointer 3. linking will fail, /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: cannot find liblsan_preinit.o: No such file or directory Actual results: no binary generated Expected results: a generated binary which I can execute and get leak sanitizer result Additional info: all packages of devtoolset 8 are installed, this is a Red Hat Enterprise Linux Developer Suite, 7.6 installation I guess the file liblsan_preinit.o should be part of devtoolset-8-gcc, like others, for example /opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/32/libasan_preinit.o, but it is not there > gcc -v > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper > Target: x86_64-redhat-linux > Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-8/root/usr --mandir=/opt/rh/devtoolset-8/root/usr/share/man --infodir=/opt/rh/devtoolset-8/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-8.2.1-20180905/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux > Thread model: posix > gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)
Will fix.
Fixed in git.
*** Bug 1687263 has been marked as a duplicate of this bug. ***
Reproduced with devtoolset-8.0's gcc, works with devtoolset-8-gcc-8.3.1-3. On powerpc, I have found another issue with liblsan, filed as bz1696615. VERIFIED.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:1446