This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

crosscompiler x86->solaris2.8 problems



I have read the pages of Per Fransson and those in this mailing list 
regarding crosscompiler, but unfortunately, none fix my problem.

I have built binutils without a problem, and installed it in /sun

I then run this script
#!/bin/sh
export PATH=$PATH:/sun/bin
cd /export/dalmany/gdsm/build-gcc
host=i386-redhat-linux
target=sparc-sun-solaris2.8
prefix=/sun
i=$prefix/bin
make distclean
../gcc-3.0.1-20010905/configure --target=$target --prefix=$prefix --verbose 
--with-headers=$prefix/$target/originals/sys-include 
--with-libs=$prefix/$target/originals/lib --with-gnu-as --with-gnu-ld 2>&1 | 
tee configure.log
make all install 2>&1 | tee make.log

and get the errors shown below

/export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits/ctype_noninline.h: 
In
   constructor `std::ctype<char>::ctype(const char*, bool, unsigned int)':
/export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits/ctype_noninline.h:39: 
`_ctype_'
   undeclared (first use this function)
/export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8/bits/ctype_noninline.h:39: 
(Each
   undeclared identifier is reported only once for each function it appears
   in.)
make[3]: *** [locale.lo] Error 1
make[3]: Leaving directory 
`/export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory 
`/export/dalmany/gdsm/build-gcc/sparc-sun-solaris2.8/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

If I do not have the "--with-gnu-as --with-gnu-ld" then I get the following 
error...
/export/dalmany/gdsm/build-gcc/gcc/xgcc 
-B/export/dalmany/gdsm/build-gcc/gcc/ -B/sun/sparc-sun-solaris2.8/bin/ 
-B/sun/sparc-sun-solaris2.8/lib/ -isystem /sun/sparc-sun-solaris2.8/include 
-O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1 
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared 
-nodefaultlibs -Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs 
-Wl,-M,libgcc.map -o libgcc_s.so   libgcc/./_muldi3.o libgcc/./_divdi3.o 
libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o 
libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o 
libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o 
libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.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 libgcc/./_subvsi3.o 
libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o 
libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o 
libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o libgcc/./unwind-sjlj.o -lc 
&& rm -f libgcc_s.so.1 && ln -s libgcc_s.so libgcc_s.so.1
/sun/sparc-sun-solaris2.8/bin/ld:libgcc.map: file format not recognized; 
treating as linker script
/sun/sparc-sun-solaris2.8/bin/ld:libgcc.map:1: parse error
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/export/dalmany/gdsm/build-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/export/dalmany/gdsm/build-gcc/gcc'
make: *** [all-gcc] Error 2

How do I solve this please?

Any help would be much appreciated, thank you in advance


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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