Hi Alan,

This issue is not yet resolved, in the moment this cross-compiler issue looks 
like a regression.

But I have tried your follow-up patches, and they make sense for me:

 http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01149.html
http://gcc.gnu.org/ml/gcc-patches/2013-12/msg01544.html

How can we proceed?

Regards
Bernd.


>>
>> 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.                                          

Reply via email to