[Mesa-dev] [Bug 100120] Mesa fails to build with gcc address sanitizer (-fsanitize=address -lasan)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 9 15:09:21 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100120

--- Comment #6 from Vedran Miletić <vedran at miletic.net> ---
(In reply to Emil Velikov from comment #4)
> Note: I'm wondering if the explicit -lasan isn't agcc/clang bug. Can we get
> a reference reading why we need it, considering the explicit -f.... toggle
> we pass to gcc/clang.

It's not required, it's added automatically. I started with the wrong
assumption here.

> -dl is (module bugs of course) already passed then libGL/libGLX_mesa is
> build.
> 
> As pointed out we don't have a libtool which honours fsanitize, so I'd
> suggest adding it to the CC/CXX variables like below.
> 
> ./autogen.sh CC="gcc -fsanitize=address" CXX="g++ -fsanitize=address"
> 

This fails the same way as the ./autogen.sh CFLAGS="-fsanitize=address"
CXXFLAGS="-fsanitize=address"

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170309/25e4747e/attachment.html>


More information about the mesa-dev mailing list