David Daney kirjoitti:
kernel coder wrote:
hi,
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)
--disable-libmudflap --disable-libssp
I tried the 'mipsel-elf' target (to which the bare 'mipsel' leads) with
gcc-4.1.1
and using '--with-newlib --enable-languages=c,c++ --disable-shared'.
The last
(maybe) required because earlier builds with other '-elf' targets
stopped when
trying to check the 'libgcc_s.so' existence... But no
'--without-headers' was
used, instead copying the generic newlib headers into the $tooldir
($prefix/$target).
After that everything succeeded: 'gcc' and 'libiberty', 'libstdc++-v3'
and 'libssp'
for the target. So disabling the libssp is vain. There was no
libmudflap build...
So, if forgetting that '--disable-shared', the build worked just as
earlier with
the earlier GCC versions! And 'kernel coder' using :
../gcc-4.1.0/configure --target=mipsel --prefix=/home/shahzad/install \
--with-newlib --enable-languages=c,c++
should have worked after having copied those newlib headers to be ready
for the
fixinc, limits.h check etc. the GCC build tries to do with them.