------- Comment #2 from jr at e-integration dot net 2006-08-09 16:52 ------- Created an attachment (id=12048) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12048&action=view) /gcc-4.1.1/gcc/gthr-solaris.h Solaris threads header file
bootstrap fails: Here's my configure: /gcc-4.1.1/configure sparc64-sun-solaris2.9 \ --prefix=${PKG_BASE}/compiler/GNU/gcc41/gcc-4.1.1 \ --with-gmp --with-mpfr \ --enable-threads=solaris \ --enable-static --enable-shared \ --enable-haifa --with-dwarf2 \ --enable-nls --with-cpu=v9 \ --with-included-gettext \ --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld \ --enable-languages=c,c++,objc,fortran Note: Using CPPFLAGS, CFLAGS, and CXXFLAGS for GMP and MPFR libraries/includes. GMP is a 64-bit 4.2.1 build MPFR is a 64-bit 2.2.0 build make bootstrap output: make[4]: Leaving directory `/misc/reloc/root-unified/j/jtaisto/gcc-build/gcc' ./xgcc -B./ -B/opt/OIT/pkg/compiler/GNU/gcc41/gcc-4.1.1/sparc64-sun-solaris2.9/bin/ -isystem /opt/OIT/pkg/compiler/GNU/gcc41/gcc-4.1.1/sparc64-sun-solaris2.9/include -isystem /opt/OIT/pkg/compiler/GNU/gcc41/gcc-4.1.1/sparc64-sun-solaris2.9/sys-include -L/unified/j/jtaisto/gcc-build/gcc/../ld -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I -I/gcc-4.1.1/gcc -I/gcc-4.1.1/gcc/ -I/gcc-4.1.1/gcc/../include -I./../intl -I/gcc-4.1.1/gcc/../libcpp/include -Iyes/include -Iyes/include -fexceptions -c /gcc-4.1.1/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o In file included from ./gthr-default.h:1, from /gcc-4.1.1/gcc/gthr.h:114, from /gcc-4.1.1/gcc/unwind-dw2.c:42: /gcc-4.1.1/gcc/gthr-solaris.h:74: error: weak declaration of '__gthrw_thr_keycreate' must be public /gcc-4.1.1/gcc/gthr-solaris.h:75: error: weak declaration of '__gthrw_thr_getspecific' must be public /gcc-4.1.1/gcc/gthr-solaris.h:76: error: weak declaration of '__gthrw_thr_setspecific' must be public /gcc-4.1.1/gcc/gthr-solaris.h:77: error: weak declaration of '__gthrw_thr_create' must be public /gcc-4.1.1/gcc/gthr-solaris.h:78: error: weak declaration of '__gthrw_thr_self' must be public /gcc-4.1.1/gcc/gthr-solaris.h:80: error: weak declaration of '__gthrw_mutex_init' must be public /gcc-4.1.1/gcc/gthr-solaris.h:81: error: weak declaration of '__gthrw_mutex_destroy' must be public /gcc-4.1.1/gcc/gthr-solaris.h:82: error: weak declaration of '__gthrw_mutex_lock' must be public /gcc-4.1.1/gcc/gthr-solaris.h:83: error: weak declaration of '__gthrw_mutex_trylock' must be public /gcc-4.1.1/gcc/gthr-solaris.h:84: error: weak declaration of '__gthrw_mutex_unlock' must be public make[3]: *** [libgcc/./unwind-dw2.o] Error 1 make[3]: Leaving directory `/misc/reloc/root-unified/j/jtaisto/gcc-build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/misc/reloc/root-unified/j/jtaisto/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/misc/reloc/root-unified/j/jtaisto/gcc-build/gcc' make: *** [bootstrap] Error 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28665