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]

gcc 3.3.2/3.4.0 mipsel cross compiler build failure: xgcc usingwrong 'as'


Hi,

I'm trying to build a cross compiler for mipsel on a i386 Fedora Core 2
machine. However the compile fails with the following message when xgcc
tries invokes the native assembler with mipsel options:

echo '#define QUIET_NAN_NEGATED' >> dp-bit.c
cat ../../gcc-3.4.0/gcc/config/fp-bit.c >> dp-bit.c
/home/bastiaan/crosstool/mipsel-gcc-3.4/gcc/xgcc
-B/home/bastiaan/crosstool/mipsel-gcc-3.4/gcc/
-B/opt/crosstools-static/mipsel-linux/bin/
-B/opt/crosstools-static/mipsel-linux/lib/ -isystem
/opt/crosstools-static/mipsel-linux/include -isystem
/opt/crosstools-static/mipsel-linux/sys-include -O2 -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I.
-I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/.
-I../../gcc-3.4.0/gcc/../include   -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time  \  -Dinhibit_libc -c ../../gcc-3.4.0/gcc/crtstuff.c
-DCRT_BEGIN \
  -o crtbegin.o
as: unrecognized option `-EL'
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/home/bastiaan/crosstool/mipsel-gcc-3.4/gcc'
make: *** [all-gcc] Error 2

To see what happens I replaced /usr/bin/as with mipsel-linux-as. In that
case it happily continues the build only to run into trouble later. 

I configured gcc with: 
../gcc-3.4.0/configure --prefix=/opt/crosstools-static
--target=mipsel-linux --without-headers    --disable-checking   
--disable-shared    --disable-threads    --enable-languages=c   
--enable-target-optspace --disable-nls --with-gnu-ld

After having successfully built binutils 2.15.91.01 with:
../binutils-2.15.91.0.1/configure --target=mipsel-linux
--prefix=/opt/crosstools 

Does anyone have a clue what I or gcc are doing wrong?

Thanks in advance,

Bastiaan Bakker





------
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]