This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/28247] [4.1/4.2 regression] libstdc++ cannot be build with Solaris threads



------- Comment #8 from jr at e-integration dot net  2006-08-09 13:52 -------
Created an attachment (id=12046)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12046&action=view)
gcc-4.1.1/gcc/gthr-solaris.h  weak declaration

Fails with latest gcc-4.1.1/gcc/gthr-solaris.h file during bootstrap.

CONFIGURE:

/gcc-4.1.1/configure sparc64-sun-solaris2.9 \                                   
--prefix=/opt/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.                                             

MAKE BOOTSTRAP:

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=28247


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]