This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Who broke options.h?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Apr 2017 18:58:56 +0200
- Subject: Re: Who broke options.h?
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C81A86EF5C
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C81A86EF5C
- References: <20170425135922.GA19857@troutmask.apl.washington.edu> <87lgqopk1k.fsf@linux-m68k.org> <20170425165404.GC53633@troutmask.apl.washington.edu>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Apr 25, 2017 at 09:54:04AM -0700, Steve Kargl wrote:
> On Tue, Apr 25, 2017 at 05:46:15PM +0200, Andreas Schwab wrote:
> > On Apr 25 2017, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:
> >
> > > Someone (other than Richard who seems to have fixed his
> > > bootstrap issue) in the last 3 days has broken bootstrap
> > > on FreeBSD.
> >
> > Did you change your locale since then?
> >
>
> See my reply to Joseph. It is locale related. I'm surprised
> I haven't seen this before, which suggests that I must always
> login into my normal account and then su to the gcc/ account.
So like (to follow how we set env vars in other spots):
* Makefile.in (s-options): Call opt-gather.awk with
LC_ALL=C in the environment.
--- gcc/Makefile.in 2017-04-18 21:16:24.703775156 +0200
+++ gcc/Makefile.in 2017-04-25 18:56:58.304963926 +0200
@@ -2139,6 +2139,7 @@ s-specs : Makefile
optionlist: s-options ; @true
s-options: $(ALL_OPT_FILES) Makefile $(srcdir)/opt-gather.awk
+ LC_ALL=C ; export LC_ALL ; \
$(AWK) -f $(srcdir)/opt-gather.awk $(ALL_OPT_FILES) > tmp-optionlist
$(SHELL) $(srcdir)/../move-if-change tmp-optionlist optionlist
$(STAMP) s-options
? Untested.
Jakub