CROSS GCC : Host : sparc solaris2.7, Target : i386 solaris2.7
suresh kumar
suresh_kumar_k@hotmail.com
Fri Jun 27 16:15:00 GMT 2003
Hi,
The host sparc machine has native gnu tool chain,
gcc 2.95.1
binutils 2.11.2
and other utils
I downloaded binutils-2.13, and installed after configuring with
configure --target=i386-sun-solaris2.7 --prefix=/users/gcc
This went on smoothly.
Then I downloaded gcc-3.2, and configured with
configure --target=i386-sun-solaris2.7
--prefix=/users/gcc/ --enable-languages=C
--with-as=/users/gcc/bin/i386-sun-soalris2.7-as
--with-ld=/users/gcc/bin/i386-sun-solaris2.7-ld
The compilation on make hit a bump over here,
/************************8
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/users/suresh/gcc-3.2/gcc/xgcc -B/users/suresh/gcc-3.2/gcc/
-B/users/suresh/gnu-bins//i386-sun-solaris2.7/bin/
-B/users/suresh/gnu-bins//i386-sun-solaris2.7/lib/ -isystem
/users/suresh/gnu-bins//i386-sun-solaris2.7/include -O2 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -shared -nodefaultlibs
-Wl,--soname=libgcc_s.so.1 -Wl,-
-version-script=libgcc/./libgcc.map -o libgcc_s.so.1 libgcc/./_muldi3.o
libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o
libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o
libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o
libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o
libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o
libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o
libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o
libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o
libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o
libgcc/./_addvsi3.o libgcc/./_addvdi3.o l
ibgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o
libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o
libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o
libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o
libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o -lc
&& rm -f libgcc_s.so&& ln -s libgcc_s.so.1 libgcc_s.so
/users/suresh/gnu-bins//i386-sun-solaris2.7/bin/ld: cannot open values-Xa.o:
No such file or directory
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `libgcc_s.so'
Current working directory /users/suresh/gcc-3.2/gcc
*** Error code 1
make: Fatal error: Command failed for target `libgcc.a'
Current working directory /users/suresh/gcc-3.2/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'
/*****************************/
When i tried looking for a solution in net, i saw suggestions to look for
SUNW packages. I did grep on pkginfo for all those packages and they are
all there.
I also compiled a simple hello world program with native gcc, which works
fine.
But while building this cross compiler i keep getting this error. Can
anybody help me in this regard?
Note:
* values-Xa.o like files are in /usr/lib and other places where they are
symbolically linked.
* I did not have i386-sun-solaris related lib, include etc, does that
matter? If so kindly lemme know where i can get?
Thanks in Advance
Suresh
_________________________________________________________________
Food fit for Kings! Now available online.
http://server1.msn.co.in/features/general/itc/index.asp
More information about the Gcc
mailing list