Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 490206

Summary: dev-libs/libmemcached-1.0.17 fails to build with GCC 4.8
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: bug, candrews, casta, gentoo, kuba.iluvatar, prometheanfire, reuben-gentoo-bugzilla, staff, steffen.weber, wangbin.zibo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 461954    

Description Arfrever Frehtes Taifersar Arahesis 2013-11-02 22:43:17 UTC
Build system adds conflicting flags to CXXFLAGS.

...
checking whether C++ compiler accepts -fsanitize=address... yes
checking whether C++ compiler accepts -fsanitize=integer... no
checking whether C++ compiler accepts -fsanitize=thread... yes
checking whether C++ compiler accepts -fsanitize=memory... no
checking whether C++ compiler accepts -fsanitize=alignment... no
checking whether C++ compiler accepts -fsanitize=bool... no
checking whether C++ compiler accepts -fsanitize=bounds... no
checking whether C++ compiler accepts -fsanitize=enum... no
checking whether C++ compiler accepts -fsanitize=float-cast-overflow... no
checking whether C++ compiler accepts -fsanitize=float-divide-by-zero... no
checking whether C++ compiler accepts -fsanitize=integer-divide-by-zero... no
checking whether C++ compiler accepts -fsanitize=null... no
checking whether C++ compiler accepts -fsanitize=object-size... no
checking whether C++ compiler accepts -fsanitize=return... no
checking whether C++ compiler accepts -fsanitize=shift... no
checking whether C++ compiler accepts -fsanitize=signed-integer-overflow... no
checking whether C++ compiler accepts -fsanitize=unreachable... no
checking whether C++ compiler accepts -fsanitize=unsigned-integer-overflow... no
checking whether C++ compiler accepts -fsanitize=vla-bound... no
checking whether C++ compiler accepts -fsanitize=vptr... no
...
  CXXLD    libtest/abort
...
x86_64-pc-linux-gnu-g++: error: -fsanitize=address is incompatible with -fsanitize=thread
make[1]: *** [libtest/abort] Error 1
Comment 1 Wang Bin 2013-12-25 02:29:10 UTC
There is a pacth file from Arch Linux, I have tested on my amd64 machine, and it fixed the bug, please check:

https://projects.archlinux.org/svntogit/community.git/tree/trunk/gcc-4.8.patch?h=packages/libmemcached
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-01-27 08:31:03 UTC
patched 1.0.17-r1