----------------------------------------
> Date: Fri, 20 Dec 2013 07:57:02 +1030
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]; [email protected];
> [email protected]
> Subject: Re: Two build != host fixes
>
> On Thu, Dec 19, 2013 at 11:50:02AM +0100, Bernd Edlinger wrote:
>> Isn't the actual invocation of the build-g++ also including
>> /sysroot_for_host/include
>> in that case? Why doesn't this cause problems then?
>
> Yes, and that causes failures too. BUILD_CPPFLAGS is the culprit.
> See http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01149.html
>
> --
> Alan Modra
> Australia Development Lab, IBM
Ok, now I understand:
The change with GMPINC="" is just incomplete, without the other patch.
When I apply the other patch too, I get this (obviously cleaner) build-g++
invocations:
g++ -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.9-20131215/gcc
-I../../gcc-4.9-20131215/gcc/build -I../../gcc-4.9-20131215/gcc/../include
-I../../gcc-4.9-20131215/gcc/../libcpp/include \
-o build/gengtype.o ../../gcc-4.9-20131215/gcc/gengtype.c
flex -ogengtype-lex.c ../../gcc-4.9-20131215/gcc/gengtype-lex.l && { \
echo '#include "bconfig.h"'> gengtype-lex.c.tmp; \
cat gengtype-lex.c>> gengtype-lex.c.tmp; \
mv gengtype-lex.c.tmp gengtype-lex.c; \
}
g++ -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.9-20131215/gcc
-I../../gcc-4.9-20131215/gcc/build -I../../gcc-4.9-20131215/gcc/../include
-I../../gcc-4.9-20131215/gcc/../libcpp/include \
-o build/gengtype-lex.o gengtype-lex.c
g++ -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.9-20131215/gcc
-I../../gcc-4.9-20131215/gcc/build -I../../gcc-4.9-20131215/gcc/../include
-I../../gcc-4.9-20131215/gcc/../libcpp/include \
-o build/gengtype-parse.o
../../gcc-4.9-20131215/gcc/gengtype-parse.c
g++ -c -DIN_GCC -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.9-20131215/gcc
-I../../gcc-4.9-20131215/gcc/build -I../../gcc-4.9-20131215/gcc/../include
-I../../gcc-4.9-20131215/gcc/../libcpp/include \
-o build/gengtype-state.o
../../gcc-4.9-20131215/gcc/gengtype-state.c
Regards
Bernd.