GCC 3.0 CANNOT BE BUILT on solaris

Eliezer Tseytkin vladt@net2phone.com
Mon Jul 9 06:57:00 GMT 2001


Hello,
 
i am having problems building gcc 3.0 (just recently i was able to build
gcc2.95.3).
 
this is what i have at the moment installed:
 
    SunOS 5.6 / sparc-sun-solaris2.6/2.95.3 / gcc version 2.95.3
20010315(release)

following command line was used to configure gcc:
 
    /home/vladt/gcc/gcc-3.0/configure --prefix=/home/compilers/gcc/local
--enable-shared --enable-libgcj --enable-threads

following command line was used to build gcc:
 
    make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap

here is the last command invoked by make and errors:
 
./libtool --mode=link  /home/vladt/usr/objdir2/gcc/xgcc
-B/home/vladt/usr/objdir2/gcc/
-B/home/vladt/usr/local2/sparc-sun-solaris2.6/bin/
-B/home/vladt/usr/local2/sparc-sun-solaris2.6/lib/ -isystem
/home/vladt/usr/local2/sparc-sun-solaris2.6/include -o libobjc.la archive.lo
class.lo encoding.lo gc.lo hash.lo init.lo linking.lo misc.lo nil_method.lo
NXConstStr.lo Object.lo objects.lo Protocol.lo sarray.lo selector.lo
sendmsg.lo thr.lo thr-objc.lo -rpath
/home/vladt/usr/local2/lib/gcc-lib/sparc-sun-solaris2.6/3.0 \
   -version-info 1:0:0
/home/vladt/usr/objdir2/gcc/xgcc -B/home/vladt/usr/objdir2/gcc/
-B/home/vladt/usr/local2/sparc-sun-solaris2.6/bin/
-B/home/vladt/usr/local2/sparc-sun-solaris2.6/lib/ -isystem
/home/vladt/usr/local2/sparc-sun-solaris2.6/include -shared -Wl,-h
-Wl,libobjc.so.1 -o .libs/libobjc.so.1.0.0  .libs/archive.o .libs/class.o
.libs/encoding.o .libs/gc.o .libs/hash.o .libs/init.o .libs/linking.o
.libs/misc.o .libs/nil_method.o .libs/NXConstStr.o .libs/Object.o
.libs/objects.o .libs/Protocol.o .libs/sarray.o .libs/selector.o
.libs/sendmsg.o .libs/thr.o .libs/thr-objc.o  -lc
Text relocation remains                   referenced
    against symbol          offset  in file
__objc_class_name_Object            0x1c        .libs/linking.o
__objc_class_name_Object            0x0         .libs/Protocol.o
__objc_class_name_Object            0x0         .libs/NXConstStr.o
__objc_class_name_NXConstantString  0x20        .libs/linking.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[2]: *** [libobjc.la] Error 1
make[2]: Leaving directory
`/home/vladt/usr/objdir2/sparc-sun-solaris2.6/libobjc
'
make[1]: *** [all-target-libobjc] Error 2
make[1]: Leaving directory `/home/vladt/usr/objdir2'
make: *** [bootstrap] Error 2



More information about the Gcc-bugs mailing list