This is the mail archive of the
mailing list for the GCC project.
Re: gcc-4.1.0 cross-compile for MIPS
David Daney kirjoitti:
kernel coder wrote:
I tried the 'mipsel-elf' target (to which the bare 'mipsel' leads) with
I'm trying to cross compile gcc-4.1.0 for mipsel
platform.Following is the sequence of commands which i'm using
../gcc-4.1.0/configure --target=mipsel --without-headres
--prefix=/home/shahzad/install/ --with-newlib --enable-languages=c
Perhaps you should try to disable libssp. Try adding (untested)
and using '--with-newlib --enable-languages=c,c++ --disable-shared'.
(maybe) required because earlier builds with other '-elf' targets
trying to check the 'libgcc_s.so' existence... But no
used, instead copying the generic newlib headers into the $tooldir
After that everything succeeded: 'gcc' and 'libiberty', 'libstdc++-v3'
for the target. So disabling the libssp is vain. There was no
So, if forgetting that '--disable-shared', the build worked just as
the earlier GCC versions! And 'kernel coder' using :
../gcc-4.1.0/configure --target=mipsel --prefix=/home/shahzad/install \
should have worked after having copied those newlib headers to be ready
fixinc, limits.h check etc. the GCC build tries to do with them.