Building a MIPS-sgi-irix6.5 cross Compiler on Solaris2.8
pritam kokate
mrpritam@yahoo.com
Tue Apr 16 03:23:00 GMT 2002
Hi,
I am trying to build a mips-sgi-irix6.5 cross compiler
on a sun solaris2.8 machine.
The configure statement i used is
./configure --target=mips-sgi-irix6.5
--prefix=/data/bdd/src/ls1/gcc-cross
--with-headers=/data/bdd/src/ls1/gcc/lib-include -v
--with-libs=/data/bdd/src/ls1/gcc/lib-library
--disable-single-float --disable-biendian
--disable-softfloat --with-gnu-as
--with-as=/data/bdd/src/ls1/gcc-cross/bin/mips-sgi-irix6.5-as
--with-gnu-ld
--with-ld=/data/bdd/src/ls1/gcc-cross/bin/mips-sgi-irix6.5-ld
Also I have installed binutils (latest version,
successfully with the same target mips-sgi-irix6.5) in
/data/bdd/src/ls1/gcc-cross/bin and have also exported
on my path. But while installing and building the gcc
cross compiler I got following errors and I have no
clue how to fix these. Also in the lib-include
directory which I have specified the headers, I have
included the headers those from a MIPS machine
directly i.e. I have included all the files from
/usr/include/*.* from a MIPS (Silicon Graphics
(SGI-IRIX 6.5) machine) to the directory specified in
the --with-headers option and all the files from
/usr/lib/*.* from the same machine to the directory
secified in the --with-libs option in my configure
statement.
I am getting the mips-sgi-irix-as and everything
related to that executed before i get this error.
Have I done that correctly or is it that I need to
include anything else in my onfigure statement? And
how do I fix these errors? please reply me asap. Also
any suggestions regarding this are most welcome.
******************************************************************************************************************************************************************
THE ERROR
******************************************************************************************************************************************************************
--------------more junk before this------------------
echo tinfo.o tinfo2.o new.o opnew.o opnewnt.o
opvnew.o opvnewnt.o opdel.o opdelnt.o opvdel.o
opvdelnt.o exception.o > cplib2.new;; \
*) \
echo "" > cplib2.new;; \
esac
mv -f cplib2.new cplib2.txt
for i in `/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/xgcc
-B/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/
-B/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/bin/
-I/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/include
--print-multi-lib`; do \
dir=`echo $i | sed -e 's/;.*$//'`; \
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/
-/g'`; \
gmake
GCC_FOR_TARGET="/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/xgcc
-B/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/
-B/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/bin/
-I/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/include"
\
AR_FOR_TARGET="mips-sgi-irix6.5-ar" \
AR_FLAGS_FOR_TARGET="rc" \
CC="gcc" CFLAGS="-g -O2" \
RANLIB_FOR_TARGET="mips-sgi-irix6.5-ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f
mips-sgi-irix6.5-ranlib ] || ( [
"sparc-sun-solaris2.8" = "mips-sgi-irix6.5" ] && [ -f
/usr/bin/ranlib -o -f /bin/ranlib ] )" \
LANGUAGES="c proto gcov CHILL c++ f77 java objc" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC
-DSVR4 -g -O2 -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED ${flags}" \
MULTILIB_CFLAGS="${flags}" \
LIBGCC1="" LIBGCC2="libgcc2.a" \
dir="${dir}" stmp-multilib-sub; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
done
gmake[2]: Entering directory
`/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc'
rm -f libgcc2.a
if [ -d . ]; then \
cd .; \
rm -f libgcc.a crtbegin.o crtend.o; \
else true; \
fi
gmake
GCC_FOR_TARGET="/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/xgcc
-B/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/
-B/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/bin/
-I/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/include"
\
AR_FOR_TARGET="mips-sgi-irix6.5-ar" \
AR_FLAGS_FOR_TARGET="rc" \
CC="gcc" CFLAGS="-g -O2" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
LANGUAGES="c proto gcov CHILL c++ f77 java objc" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC
-DSVR4 -g -O2 -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED " libgcc2.a
gmake[3]: Entering directory
`/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc'
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3
_negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2
_udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf
_floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi
_fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi
_floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf
__gcc_bcmp _varargs __dummy _eprintf _bb _shtab
_clear_cache _trampoline __main _exit _ctors _pure; \
do \
echo ${name}; \
/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/xgcc
-B/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc/
-B/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/bin/
-I/data/bdd/src/ls1/gcc-cross/mips-sgi-irix6.5/include
-O2 -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2
-I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config
-I./../include -c -DL${name} \
./libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mips-sgi-irix6.5-ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
/var/tmp/ccaj4vtr.s: Assembler messages:
/var/tmp/ccaj4vtr.s:4: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:4: Warning: rest of line ignored;
first ignored character is `0'
/var/tmp/ccaj4vtr.s:8: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:8: Warning: rest of line ignored;
first ignored character is `0'
/var/tmp/ccaj4vtr.s:10: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:10: Warning: rest of line ignored;
first ignored character is `0'
/var/tmp/ccaj4vtr.s:89: Error: opcode not supported on
this processor: R3000 (MIPS1) `daddu $gp,$1,$25'
/var/tmp/ccaj4vtr.s:91: Error: opcode not supported on
this processor: R3000 (MIPS1) `dsll $2,$4,32'
/var/tmp/ccaj4vtr.s:92: Error: opcode not supported on
this processor: R3000 (MIPS1) `dsra $2,$2,32'
/var/tmp/ccaj4vtr.s:93: Error: opcode not supported on
this processor: R3000 (MIPS1) `dsra $6,$5,32'
/var/tmp/ccaj4vtr.s:97: Error: opcode not supported on
this processor: R3000 (MIPS1) `dli
$3,0xffffffff00000000'
/var/tmp/ccaj4vtr.s:98: Error: opcode not supported on
this processor: R3000 (MIPS1) `dsll $5,$5,32'
/var/tmp/ccaj4vtr.s:99: Error: opcode not supported on
this processor: R3000 (MIPS1) `dsra $5,$5,32'
/var/tmp/ccaj4vtr.s:106: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsll $2,$2,32'
/var/tmp/ccaj4vtr.s:109: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsrl $2,$2,32'
/var/tmp/ccaj4vtr.s:110: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsra $4,$4,32'
/var/tmp/ccaj4vtr.s:115: Error: opcode not supported
on this processor: R3000 (MIPS1) `dli $5,0xffffffff'
/var/tmp/ccaj4vtr.s:117: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsll $3,$3,32'
/var/tmp/ccaj4vtr.s:118: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsrl $3,$3,32'
/var/tmp/ccaj4vtr.s:119: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsll $3,$3,32'
/var/tmp/ccaj4vtr.s:122: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsra $2,$7,32'
/var/tmp/ccaj4vtr.s:125: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsll $2,$2,32'
/var/tmp/ccaj4vtr.s:126: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsrl $2,$2,32'
/var/tmp/ccaj4vtr.s:127: Error: opcode not supported
on this processor: R3000 (MIPS1) `dsll $2,$2,32'
/var/tmp/ccaj4vtr.s:142: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:142: Warning: rest of line
ignored; first ignored character is `0'
/var/tmp/ccaj4vtr.s:179: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:179: Warning: rest of line
ignored; first ignored character is `0'
/var/tmp/ccaj4vtr.s:214: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:214: Warning: rest of line
ignored; first ignored character is `0'
/var/tmp/ccaj4vtr.s:253: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:253: Warning: rest of line
ignored; first ignored character is `0'
/var/tmp/ccaj4vtr.s:265: Warning: character following
name is not '#'
/var/tmp/ccaj4vtr.s:265: Warning: rest of line
ignored; first ignored character is `0'
gmake[3]: *** [libgcc2.a] Error 1
gmake[3]: Leaving directory
`/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc'
gmake[2]: *** [stmp-multilib-sub] Error 2
gmake[2]: Leaving directory
`/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc'
gmake[1]: *** [stmp-multilib] Error 1
gmake[1]: Leaving directory
`/data/bdd/src/ls1/gcc/gcc-2.95.2/gcc'
gmake: *** [all-gcc] Error 2
******************************************************************************************************************************************************************
THE ERROR ENDS
******************************************************************************************************************************************************************
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
More information about the Gcc-help
mailing list