On 30.04.19 19:05, Vincent Lefevre wrote: > 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.
the linker never sees your CFLAGS. At least -static-libasan needs to be added to LDFLAGS.