[Mesa-dev] [Bug 75315] libglapi build failure with gcc -fsanitize=address

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 24 07:04:28 PDT 2014


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

Emil Velikov <emil.l.velikov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #11 from Emil Velikov <emil.l.velikov at gmail.com> ---
Indeed it does - it seems that it should be fed to gcc in link mode rather than
the actual linker :\

I see a few of routes
 1. append " -fsanitize=address" to your CC/CXX variable prior to executing
configure, or
 2. add a configure option and handle this internally in mesa (oh god not
another configure switch) by adding "-Wc,-fsanitize=address" in all Makefiles,
or
 3. raise a bug with the libtool people so that they do not strip the it - i.e.
extend the following switch statement. 

-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
-O*|-flto*|-fwhopr*|-fuse-linker-plugin

I would recommend #3, and use #1 as a workaround until it's resolved :)
Marking this as NOTOURBUG for now as it seems to be a libtool issue.

[1] http://www.gnu.org/software/libtool/manual/libtool.html#Stripped-link-flags

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140824/5860be7f/attachment.html>


More information about the mesa-dev mailing list