This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: Two build != host fixes
- From: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- To: Alan Modra <amodra at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>, DJ Delorie <dj at redhat dot com>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Tue, 7 Jan 2014 16:45:15 +0100
- Subject: RE: Two build != host fixes
- Authentication-results: sourceware.org; auth=none
- References: <DUB122-W49C1420F5ADBBBFF956A3EE4DD0 at phx dot gbl>,<20131211124146 dot GA13694 at bubble dot grove dot modra dot org>,<DUB122-W625D03C11B9F166A2223FE4DD0 at phx dot gbl>,<20131212010230 dot GB16770 at bubble dot grove dot modra dot org>,<DUB122-W155981D9FD99E5FCA83795E4DB0 at phx dot gbl>,<20131217232839 dot GB1864 at bubble dot grove dot modra dot org>,<DUB122-W1783A4BB2C927FBBE08176E4DA0 at phx dot gbl>,<20131219101143 dot GA7521 at bubble dot grove dot modra dot org>,<DUB122-W329B01E20BD93DF4401BD2E4C50 at phx dot gbl>,<20131219212702 dot GB7521 at bubble dot grove dot modra dot org>,<DUB122-W421BF5D762C9D8CF12B1E3E4C40 at phx dot gbl>
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.