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.                                    

Attachment: patch-configure.diff
Description: Binary data

Reply via email to