This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
host:linux, target:mips-elf
- From: Ershov Sergey <ershov at kursknet dot ru>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 22 Jan 2005 20:01:06 +0300
- Subject: host:linux, target:mips-elf
- Reply-to: Ershov Sergey <ershov at kursknet dot ru>
Hello
I want to make mips-elf cross complier at LINUX Slackware v9.0
The processes to build up mips-elf tools:
1. binutils-2.11.2
$ export host=i686-pc-linux-gnu
$ export prefix=/tools/mips
$ export target=mips-elf
$ /usr/src/binutils-2.11.2/configure \
--host=$host --prefix=$prefix --target=$target \
--with-gnu-as --with-gnu-ld -v 2>&1 | tee configure.log
$ make CFLAGS=-O2 LANGUAGES="c c++" 2>&1 | tee make.log
$ make install LANGUAGES="c c++"
2. gcc-3.4.1
$ export PATH=$prefix/bin:$PATH
$ /usr/src/gcc-3.4.1/ln -s ../newlib-1.13.0/newlib
$ /usr/src/gcc-3.4.1/ln -s ../newlib-1.13.0/libgloss
$ /usr/src/gcc-3.4.1/configure \
--enable-languages=c --enable-multilib=no \
--host=$host --prefix=$prefix --target=$target \
--with-newlib --with-gnu-as --with-gnu-ld -v 2>&1 | tee configure.log
$ make 2>&1 | tee make.
And then i recive an error message:
/tools/mips/mips-elf/bin/as: unrecognized option `-no-mdebug'
make[2]: *** [libgcc/./_m16addsf3.o] Error 1
make[2]: Leaving directory `/usr/src/gcc-3.4.1/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory '/usr/src/gcc-3.4.1/gcc'
make: ***[all-gcc] Error 2
Please help me, tell me why, or give me some advice, thanks.
--
Best regards,
Ershov Sergey mailto:ershov@kursknet.ru