Comment 6 for bug 1169311

Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 1169311] Re: r1104 breaks build @ "error: -fsanitize=address is incompatible with -fsanitize=thread"

Look at lp:libmencached/1.0

> On Nov 6, 2013, at 12:25, Seyfer <email address hidden> wrote:
>
> I have this problem with libmemcached 1.0.17 just now
>
> CXX libtest/libtest_libtest_la-gearmand.lo
> CXXLD libtest/abort
> g++: error: -fsanitize=address is incompatible with -fsanitize=thread
> make[1]: *** [libtest/abort] Ошибка 1
> make[1]: *** Ожидание завершения заданий...
> make[1]: Выход из каталога `/home/seyfer/libmemcached-1.0.17'
> make: *** [all] Ошибка 2
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1169311
>
> Title:
> r1104 breaks build @ "error: -fsanitize=address is incompatible with
> -fsanitize=thread"
>
> Status in libmemcached - A C and C++ client library for memcached:
> Fix Committed
>
> Bug description:
> on linux/64, with gcc version 4.8.0, r1100 builds OK.
>
> r1101 (tip) breaks @ make ...
>
> cd ~/TEST
> rm -rf *
> bzr branch lp:libmemcached -r 1100 libmemcached-BZR-r1100
> bzr branch lp:libmemcached libmemcached-BZR-tip
>
> echo $CFLAGS
> -O2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -march=amdfam10 -mtune=amdfam10
> echo $CXXFLAGS
> -O2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -march=amdfam10 -mtune=amdfam10 -Wno-error
>
> cd libmemcached-BZR-r1100
> ./bootstrap.sh autoreconf
> ./configure
> make -j8
> ldd ./libmemcached/.libs/libmemcached.so
> linux-vdso.so.1 (0x00007fffe7bff000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007f436635d000)
> libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f4366140000)
> libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f4365e37000)
> libm.so.6 => /lib64/libm.so.6 (0x00007f4365b39000)
> libc.so.6 => /lib64/libc.so.6 (0x00007f436578c000)
> libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4365574000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f43667d8000)
>
> cd ../libmemcached-BZR-tip
> ./bootstrap.sh autoreconf
> ./configure
> make -j8
> ...
> CXX clients/utilities.lo
> CXXLD libhashkit/libhashkitinc.la
> CXXLD libmemcachedinternal/libmemcachedinternal.la
> CXXLD libtest/core-count
> CXXLD libtest/backtrace
> g++-4.8: error: -fsanitize=thread linking must be done with -pie or -shared
> make[1]: *** [libtest/core-count] Error 1
> make[1]: *** Waiting for unfinished jobs....
> g++-4.8: error: -fsanitize=thread linking must be done with -pie or -shared
> make[1]: *** [libtest/backtrace] Error 1
> copying selected object files to avoid basename conflicts...
> make[1]: Leaving directory `/root/TEST/libmemcached-BZR-tip'
> make: *** [all] Error 2
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/libmemcached/+bug/1169311/+subscriptions