Comment 3 for bug 1169311

Thanks, I need to update ddm4.

On Jul 12, 2013, at 10:04 PM, pgnet <email address hidden> wrote:

> still an issue with r1105
>
> g++-4.8: error: -fsanitize=address is incompatible with -fsanitize=thread
> make[1]: *** [clients/memcapable] Error 1
> make[1]: Leaving directory `/usr/local/src/libmemcached-BZR'
> make: *** [all] Error 2
>
> back to r1100, again.
>
> --
> You received this bug notification because you are subscribed to
> libmemcached.
> 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:
> New
>
> 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