This is the mail archive of the gcc@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]

Problem compiling gcc 3.1 on Solaris 9 - skipping incompatible /lib/libc.sowhen searching for -lc ....


Hi,

I'm trying to compile gcc 3.1 on Solaris 9 (32-bit). I'm using gcc 3.0.4 
(with gnu ld and gnu as).

/home/nick > uname -a
SunOS songoku 5.9 Generic sun4u sparc SUNW,Ultra-1
/home/nick > gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.0.4/specs
Configured with: ./configure  : (reconfigured) ./configure --with-gnu-as 
--with-gnu-ld
Thread model: posix
gcc version 3.0.4

I get following errors:

/home/nick/compile/gcc-3.1/gcc/xgcc -B/home/nick/compile/gcc-3.1/gcc/ 
-B/usr/local/sparc-sun-solaris2.9/bin/ 
-B/usr/local/sparc-sun-solaris2.9/lib/ -isystem 
/usr/local/sparc-sun-solaris2.9/include -O2  -DIN_GCC   -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs  
-Wl,--soname=libgcc_s.so.1  
-Wl,--version-script=libgcc/sparcv9/libgcc.map  -o 
sparcv9/libgcc_s.so.1  -m64  libgcc/sparcv9/_muldi3.o 
libgcc/sparcv9/_negdi2.o libgcc/sparcv9/_lshrdi3.o 
libgcc/sparcv9/_ashldi3.o libgcc/sparcv9/_ashrdi3.o 
libgcc/sparcv9/_ffsdi2.o libgcc/sparcv9/_clz.o libgcc/sparcv9/_cmpdi2.o 
libgcc/sparcv9/_ucmpdi2.o libgcc/sparcv9/_floatdidf.o 
libgcc/sparcv9/_floatdisf.o libgcc/sparcv9/_fixunsdfsi.o 
libgcc/sparcv9/_fixunssfsi.o libgcc/sparcv9/_fixunsdfdi.o 
libgcc/sparcv9/_fixdfdi.o libgcc/sparcv9/_fixunssfdi.o 
libgcc/sparcv9/_fixsfdi.o libgcc/sparcv9/_fixxfdi.o 
libgcc/sparcv9/_fixunsxfdi.o libgcc/sparcv9/_floatdixf.o 
libgcc/sparcv9/_fixunsxfsi.o libgcc/sparcv9/_fixtfdi.o 
libgcc/sparcv9/_fixunstfdi.o libgcc/sparcv9/_floatditf.o 
libgcc/sparcv9/_clear_cache.o libgcc/sparcv9/_trampoline.o 
libgcc/sparcv9/__main.o libgcc/sparcv9/_exit.o libgcc/sparcv9/_absvsi2.o 
libgcc/sparcv9/_absvdi2.o libgcc/sparcv9/_addvsi3.o 
libgcc/sparcv9/_addvdi3.o libgcc/sparcv9/_subvsi3.o 
libgcc/sparcv9/_subvdi3.o libgcc/sparcv9/_mulvsi3.o 
libgcc/sparcv9/_mulvdi3.o libgcc/sparcv9/_negvsi2.o 
libgcc/sparcv9/_negvdi2.o libgcc/sparcv9/_ctors.o 
libgcc/sparcv9/_divdi3.o libgcc/sparcv9/_moddi3.o 
libgcc/sparcv9/_udivdi3.o libgcc/sparcv9/_umoddi3.o 
libgcc/sparcv9/_udiv_w_sdiv.o libgcc/sparcv9/_udivmoddi4.o  
libgcc/sparcv9/unwind-dw2.o libgcc/sparcv9/unwind-dw2-fde.o 
libgcc/sparcv9/unwind-sjlj.o -lc &&  rm -f libgcc_s_sparcv9.so &&  ln -s 
sparcv9/libgcc_s.so.1 libgcc_s_sparcv9.so
/usr/local/sparc-sun-solaris2.9/bin/ld: skipping incompatible 
/lib/libc.so when searching for -lc
/usr/local/sparc-sun-solaris2.9/bin/ld: skipping incompatible 
/lib/libc.a when searching for -lc
/usr/local/sparc-sun-solaris2.9/bin/ld: skipping incompatible 
/usr/lib/libc.so when searching for -lc
/usr/local/sparc-sun-solaris2.9/bin/ld: skipping incompatible 
/usr/lib/libc.a when searching for -lc
/usr/local/sparc-sun-solaris2.9/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [sparcv9/libgcc_s_sparcv9.so] Error 1
make[2]: Leaving directory `/home/nick/compile/gcc-3.1/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/nick/compile/gcc-3.1/gcc'
make: *** [all-gcc] Error 2

Has anybody been able to compile 3.1 on Solaris 8 or 9?

Kind regards,

N.

-- 
"Anyone who slaps a 'this page is best viewed with Browser X' label on a 
Web page appears to be yearning for the bad old days, before the Web, 
when you had very little chance of reading a document written on another 
computer, another word processor, or another network."
-- Tim Berners-Lee in Technology Review, July 1996


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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