Bug#928254: gcc-8: -static-libasan does not work with GNU MPFR
Package: gcc-8
Version: 8.3.0-7
Severity: minor
When I build and check GNU MPFR with:
./configure CFLAGS="-fsanitize=address -static-libasan"
make
make check
I get lots of failure with the error:
Your application is linked against incompatible ASan runtimes.
Though -static-libasan has been used, there is still a dynamic libasan,
as shown by ldd on a test program:
libasan.so.5 => /usr/lib/x86_64-linux-gnu/libasan.so.5 (0x00007fdcf052d000)
This may be the cause of the issue.
If there is a limitation (due to the use of other shared libraries?),
this should be mentioned in the gcc man page and manual.
-- System Information:
Debian Release: 10.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gcc-8 depends on:
ii binutils 2.31.1-16
ii cpp-8 8.3.0-7
ii gcc-8-base 8.3.0-7
ii libc6 2.28-9
ii libcc1-0 8.3.0-7
ii libgcc-8-dev 8.3.0-7
ii libgcc1 1:8.3.0-7
ii libgmp10 2:6.1.2+dfsg-4
ii libisl19 0.20-2
ii libmpc3 1.1.0-1
ii libmpfr6 4.0.2-1
ii libstdc++6 8.3.0-7
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages gcc-8 recommends:
ii libc6-dev 2.28-9
Versions of packages gcc-8 suggests:
pn gcc-8-doc <none>
ii gcc-8-locales 8.3.0-7
ii gcc-8-multilib 8.3.0-7
pn libasan5-dbg <none>
pn libatomic1-dbg <none>
pn libgcc1-dbg <none>
pn libgomp1-dbg <none>
pn libitm1-dbg <none>
pn liblsan0-dbg <none>
pn libmpx2-dbg <none>
pn libquadmath0-dbg <none>
pn libtsan0-dbg <none>
pn libubsan1-dbg <none>
-- no debconf information
Reply to: