Hi,
I'm trying to build a cross compiling GCC from x86 linux (ubuntu) to
mips (r2000). I downloaded binutils 2.18 and GCC 4.3.0.
Binutils installed perfectly and it gave me no problems at all.
GCC is always giving me compilation errors* when I do "make"*.
I'm using the following commands:
./configure --target=mipsel-elf --prefix=/usr/local/
--program-prefix=mipsel-elf- --enable-languages=c
(but I would also like to create a compiler for c++ and fortran. I just
put C because it is faster to do it just for one language)
then I do "make"
and when I do "make" it says
/home/eduardo/BIC/gcc-4.3/host-i686-pc-linux-gnu/libcpp/../.././libcpp/errors.c:41:
undefined reference to `progname'
collect2: ld returned 1 exit status
make[2]: *** [cc1-dummy] Error 1
make[2]: Leaving directory
`/home/eduardo/BIC/gcc-4.3/host-i686-pc-linux-gnu/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/eduardo/BIC/gcc-4.3'
make: *** [all] Error 2
With lots more of undefined references, not just that one.
I would also apreciate help with compiling GCC to use newlib (or glibc
or something like that).
Thanks,
Eduardo
**