<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Mesa fails to build with gcc address sanitizer (-fsanitize=address -lasan)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100120#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Mesa fails to build with gcc address sanitizer (-fsanitize=address -lasan)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100120">bug 100120</a>
from <span class="vcard"><a class="email" href="mailto:emil.l.velikov@gmail.com" title="Emil Velikov <emil.l.velikov@gmail.com>"> <span class="fn">Emil Velikov</span></a>
</span></b>
<pre>-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"
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>