http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51031
Bug #: 51031 Summary: build error in libitm (how to disable trans-mem???) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: vincenzo.innoce...@cern.ch latest update (for trans-mem I suppose) broke the trunk… (ps trans-mem need to be added to categories) /bin/sh ./libtool --tag=CXX --mode=compile /Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/g++ -B/Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/ -nostdinc++ -nostdinc++ -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/libsupc++ -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/include/backward -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/testsuite/util -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/usr/local/x86_64-apple-darwin11.2.0/bin/ -B/usr/local/x86_64-apple-darwin11.2.0/lib/ -isystem /usr/local/x86_64-apple-darwin11.2.0/include -isystem /usr/local/x86_64-apple-darwin11.2.0/sys-include -DHAVE_CONFIG_H -I. -I../.././libitm -I../.././libitm/config/x86 -I../.././libitm/config/bsd -I../.././libitm/config/posix -I../.././libitm/config/generic -I../.././libitm -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -Wall -Werror -Wc,-pthread -fabi-version=4 -g -msse4 -MT aatree.lo -MD -MP -MF .deps/aatree.Tpo -c -o aatree.lo ../.././libitm/aatree.cc libtool: compile: /Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/g++ -B/Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/ -nostdinc++ -nostdinc++ -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/libsupc++ -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/include/backward -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/testsuite/util -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/usr/local/x86_64-apple-darwin11.2.0/bin/ -B/usr/local/x86_64-apple-darwin11.2.0/lib/ -isystem /usr/local/x86_64-apple-darwin11.2.0/include -isystem /usr/local/x86_64-apple-darwin11.2.0/sys-include -DHAVE_CONFIG_H -I. -I../.././libitm -I../.././libitm/config/x86 -I../.././libitm/config/bsd -I../.././libitm/config/posix -I../.././libitm/config/generic -I../.././libitm -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -Wall -pthread -Werror -fabi-version=4 -g -msse4 -MT aatree.lo -MD -MP -MF .deps/aatree.Tpo -c ../.././libitm/aatree.cc -fno-common -DPIC -o .libs/aatree.o In file included from ../.././libitm/libitm_i.h:273:0, from ../.././libitm/aatree.cc:28: ../.././libitm/config/generic/tls.h: In function ‘GTM::gtm_thread* GTM::gtm_thr()’: ../.././libitm/config/generic/tls.h:52:60: error: cannot convert ‘GTM::gtm_thread**’ to ‘GTM::gtm_thread*’ in return make[4]: *** [aatree.lo] Error 1 fixed this as svn diff libitm/config/generic/tls.h Index: libitm/config/generic/tls.h =================================================================== --- libitm/config/generic/tls.h (revision 181161) +++ libitm/config/generic/tls.h (working copy) @@ -49,7 +49,7 @@ #ifndef HAVE_ARCH_GTM_THREAD // If the target does not provide optimized access to the thread-local // data, simply access the TLS variable defined above. -static inline gtm_thread *gtm_thr() { return &_gtm_thr_tls.thr; } +static inline gtm_thread *gtm_thr() { return _gtm_thr_tls.thr; } static inline void set_gtm_thr(gtm_thread *x) { _gtm_thr_tls.thr = x; } #endif I get /bin/sh ./libtool --tag=CXX --mode=compile /Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/g++ -B/Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/ -nostdinc++ -nostdinc++ -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/libsupc++ -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/include/backward -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/testsuite/util -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/usr/local/x86_64-apple-darwin11.2.0/bin/ -B/usr/local/x86_64-apple-darwin11.2.0/lib/ -isystem /usr/local/x86_64-apple-darwin11.2.0/include -isystem /usr/local/x86_64-apple-darwin11.2.0/sys-include -DHAVE_CONFIG_H -I. -I../.././libitm -I../.././libitm/config/x86 -I../.././libitm/config/bsd -I../.././libitm/config/posix -I../.././libitm/config/generic -I../.././libitm -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -Wall -Werror -Wc,-pthread -fabi-version=4 -g -msse4 -MT local.lo -MD -MP -MF .deps/local.Tpo -c -o local.lo ../.././libitm/local.cc libtool: compile: /Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/g++ -B/Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/ -nostdinc++ -nostdinc++ -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/libsupc++ -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/include/backward -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/testsuite/util -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/usr/local/x86_64-apple-darwin11.2.0/bin/ -B/usr/local/x86_64-apple-darwin11.2.0/lib/ -isystem /usr/local/x86_64-apple-darwin11.2.0/include -isystem /usr/local/x86_64-apple-darwin11.2.0/sys-include -DHAVE_CONFIG_H -I. -I../.././libitm -I../.././libitm/config/x86 -I../.././libitm/config/bsd -I../.././libitm/config/posix -I../.././libitm/config/generic -I../.././libitm -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -Wall -pthread -Werror -fabi-version=4 -g -msse4 -MT local.lo -MD -MP -MF .deps/local.Tpo -c ../.././libitm/local.cc -fno-common -DPIC -o .libs/local.o ../.././libitm/local.cc:113:6: error: only weak aliases are supported in this configuration coming from this 113 void _ITM_LB (const void *ptr, size_t len) ITM_REGPARM 114 __attribute__((alias("GTM_LB"))); 115 and later on (doing make -k) I even get /libtool --tag=CXX --mode=compile /Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/g++ -B/Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/ -nostdinc++ -nostdinc++ -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/libsupc++ -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/include/backward -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/testsuite/util -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/usr/local/x86_64-apple-darwin11.2.0/bin/ -B/usr/local/x86_64-apple-darwin11.2.0/lib/ -isystem /usr/local/x86_64-apple-darwin11.2.0/include -isystem /usr/local/x86_64-apple-darwin11.2.0/sys-include -DHAVE_CONFIG_H -I. -I../.././libitm -I../.././libitm/config/x86 -I../.././libitm/config/bsd -I../.././libitm/config/posix -I../.././libitm/config/generic -I../.././libitm -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -Wall -Werror -Wc,-pthread -mavx -fabi-version=4 -g -msse4 -MT x86_avx.lo -MD -MP -MF .deps/x86_avx.Tpo -c -o x86_avx.lo ../.././libitm/config/x86/x86_avx.cc libtool: compile: /Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/g++ -B/Users/innocent/RealStuff/gcc-trunk/host-x86_64-apple-darwin11.2.0/gcc/ -nostdinc++ -nostdinc++ -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/libsupc++ -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/include/backward -I/Users/innocent/RealStuff/gcc-trunk/libstdc++-v3/testsuite/util -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/Users/innocent/RealStuff/gcc-trunk/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/usr/local/x86_64-apple-darwin11.2.0/bin/ -B/usr/local/x86_64-apple-darwin11.2.0/lib/ -isystem /usr/local/x86_64-apple-darwin11.2.0/include -isystem /usr/local/x86_64-apple-darwin11.2.0/sys-include -DHAVE_CONFIG_H -I. -I../.././libitm -I../.././libitm/config/x86 -I../.././libitm/config/bsd -I../.././libitm/config/posix -I../.././libitm/config/generic -I../.././libitm -std=gnu++0x -funwind-tables -fno-exceptions -fno-rtti -Wall -pthread -Werror -mavx -fabi-version=4 -g -msse4 -MT x86_avx.lo -MD -MP -MF .deps/x86_avx.Tpo -c ../.././libitm/config/x86/x86_avx.cc -fno-common -DPIC -o .libs/x86_avx.o /var/folders/hd/vml6pgj48xjfkp006s6djxf80000gq/T//ccYpUzui.s:47:no such instruction: `vmovaps 48(%rsp), %ymm0' because it is well known that darwin11 as does not support AVX yet (please fix config)