Two build != host fixes

Bernd Edlinger bernd.edlinger@hotmail.de
Wed Dec 11 11:10:00 GMT 2013


Hi,

I'm having problems with that patch.

I try to start at X86_64-linux-gnu, and I want to get the GCC running on arm-linux-gnueabihf.
I grabbed system headers and libraries from the target and put it in the prefix path.

In the first step I do

../gcc-4.9-20131208/configure --prefix=/home/ed/gnu/arm-linux-gnueabihf-linux64 --target=arm-linux-gnueabihf --enable-languages=c,c++,fortran --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard

This GCC runs on PC and generates arm-linux-gnueabihf executables.

Then I try this

../gcc-4.9-20131208/configure --prefix=/home/ed/gnu/arm-linux-gnueabihf-cross --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --enable-languages=c,c++,fortran --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard

But It fails because auto-build.h contains nonsense. That is probably because almost every check
has a fatal error #include <gmp.h> not found.

I personally prefer to have gmp, mpfr, mpc in-tree (using contrib/download_prerequisites).

I experimented a bit and at least this attached patch improves the situation for me.

Maybe I never had any problems with GMP before, because the in-tree configuration of GMP does -DNO_ASM ?



Regards
Bernd. 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-configure.diff
Type: application/octet-stream
Size: 1038 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20131211/ee097697/attachment.obj>


More information about the Gcc-patches mailing list