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]

Re: Problem compiling gcc 3.1 on Solaris 9 - skipping incompatible/lib/libc.so when searching for -lc ....


Robert Schiele wrote:

>On Fri, May 17, 2002 at 11:42:15PM +0200, Nick Rosier wrote:
>  
>
>>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 
>>    
>>
>  ^^^^^^^                ^^^^	      ^^^^^^^
>How did you configure your new compiler? This cannot work if your
>system is 32 bit.
>  
>

Just ./configure --with-gnu-ld --with-gnu-as
I also ran into a problem with values-Xa.o which it looked for in 
/usr/lib/sparcv9 but is in /usr/lib. Could it be that configure is 
mistaken my 32-bit system for a 64-bit. If so, any idea on how to 
correct this?
I've had no problems compiling gcc 3.0.4 and it seems to work fine 
(haven't encountered anything weird yet).

>  
>
>>Has anybody been able to compile 3.1 on Solaris 8 or 9?
>>    
>>
>
>Both, a 32 bit and a 64 bit version on Solaris 8.
>
>Robert
>
>  
>

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]