host:linux, target:mips-elf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux