https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128972

--- Comment #2 from mateuszb at poczta dot onet.pl ---
Yes, if there is an error in configure options, it helps.
If you use working script, the check only slow down build.

The error prints empty GMPINC, so maybe real command line helps:
/home/m/m/c/bin/x86_64-w64-mingw32-g++  -fno-PIE -c   -pipe -O2     -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I/home/m/m/s/gcc-g/gcc -I/home/m/m/s/gcc-g/gcc/.
-I/home/m/m/s/gcc-g/gcc/../include  -I/home/m/m/s/gcc-g/gcc/../libcpp/include
-I/home/m/m/s/gcc-g/gcc/../libcody -I/home/m/m/b/for_target/include
-I/home/m/m/b/for_target/include -I/home/m/m/b/for_target/include 
-I/home/m/m/s/gcc-g/gcc/../libdecnumber
-I/home/m/m/s/gcc-g/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/m/m/s/gcc-g/gcc/../libbacktrace -I/home/m/m/b/for_target/include  -o
i386-expand.o -MT i386-expand.o -MMD -MP -MF ./.deps/i386-expand.TPo
/home/m/m/s/gcc-g/gcc/config/i386/i386-expand.cc

It is one line of real compilation when cross compiler builds native compiler.
It looks more complicated than the check for gmp.h.

Reply via email to