<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#c6">Comment # 6</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:vedran@miletic.net" title="Vedran Miletić <vedran@miletic.net>"> <span class="fn">Vedran Miletić</span></a>
</span></b>
<pre>(In reply to Emil Velikov from <a href="show_bug.cgi?id=100120#c4">comment #4</a>)
<span class="quote">> 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.</span >
It's not required, it's added automatically. I started with the wrong
assumption here.
<span class="quote">> -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"
> </span >
This fails the same way as the ./autogen.sh CFLAGS="-fsanitize=address"
CXXFLAGS="-fsanitize=address"</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>