Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2017 08:08:04 +0200 (CEST)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Dimitry Andric <dim@FreeBSD.org>, Jung-uk Kim <jkim@FreeBSD.org>
Cc:        Andreas Tobler <andreast@FreeBSD.org>, freebsd-toolchain@freebsd.org
Subject:   Re: Duplicate OPT_ entries in gcc/options.h
Message-ID:  <alpine.LSU.2.21.1707160805430.5621@anthias.pfeifer.com>
In-Reply-To: <0610816e-2675-1abf-a4ee-274807317932@FreeBSD.org>
References:  <alpine.LSU.2.20.1606082038000.2798@anthias.pfeifer.com> <75411813-0C9B-4CEF-BEE4-8B26DD8346F7@FreeBSD.org> <0610816e-2675-1abf-a4ee-274807317932@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 8 Jun 2016, Dimitry Andric wrote:
>> I got a user report, and could reproduce this, that building
>> GCC (lang/gcc, but also current HEAD, so probably pretty much
>> any version) with FreeBSD 11 and LANG = en_US.UTF-8 we get
>> conflicting entires in $BUILDDIR/gcc/options.h such as
>> 
>>  OPT_d = 135,                               /* -d */
>>  OPT_D = 136,                               /* -D */
>>  OPT_d = 137,                               /* -d */
>>  OPT_D = 138,                               /* -D */
>>  OPT_d = 141,                               /* -d */
>>  OPT_D = 142,                               /* -D */
>>  OPT_d = 143,                               /* -d */
>> 
>> Using LANG = en_US (without UTF-8), everything works fine.
> It is definitely something caused by our awk in base, in any case.

Thanks for the fine debugging, Dimitry...

And Jung-uk Kim wrote:
> This behaviour is known for very long time:
>
> https://svnweb.freebsd.org/changeset/base/173731
> 
> and it is not our fault:
>
> https://www.gnu.org/software/gawk/manual/html_node/POSIX-String-Comparison.html

...and for this background, Jung-uk!

To close this thread, this is now properly addressed upstream by
always forcing C locale when running this AWK script (after we did
some temporary hack to the same effect in our ports).

Gerald




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LSU.2.21.1707160805430.5621>