From owner-freebsd-toolchain@freebsd.org Wed Jun 8 23:21:27 2016 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3CBAB703EE for ; Wed, 8 Jun 2016 23:21:27 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2D510FB; Wed, 8 Jun 2016 23:21:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: Duplicate OPT_ entries in gcc/options.h To: Dimitry Andric References: <75411813-0C9B-4CEF-BEE4-8B26DD8346F7@FreeBSD.org> <0610816e-2675-1abf-a4ee-274807317932@FreeBSD.org> <5A8D0A1F-6EA3-4DF2-82A2-EC1309C33E1E@FreeBSD.org> <823B7E6C-4B47-401F-A254-C88825AE5562@FreeBSD.org> Cc: FreeBSD Toolchain , Gerald Pfeifer , Andreas Tobler , Baptiste Daroussin , Tijl Coosemans From: Jung-uk Kim Message-ID: <65f5f485-3ca8-4b22-7087-8793934f470d@FreeBSD.org> Date: Wed, 8 Jun 2016 19:21:16 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <823B7E6C-4B47-401F-A254-C88825AE5562@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jm42IhHsbVuhf0Kk7NNQBMwScHFaN37Uv" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2016 23:21:27 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jm42IhHsbVuhf0Kk7NNQBMwScHFaN37Uv Content-Type: multipart/mixed; boundary="1hWNeDVpF1L2EfIVrsEXeQI2QTsfm1OFe" From: Jung-uk Kim To: Dimitry Andric Cc: FreeBSD Toolchain , Gerald Pfeifer , Andreas Tobler , Baptiste Daroussin , Tijl Coosemans Message-ID: <65f5f485-3ca8-4b22-7087-8793934f470d@FreeBSD.org> Subject: Re: Duplicate OPT_ entries in gcc/options.h References: <75411813-0C9B-4CEF-BEE4-8B26DD8346F7@FreeBSD.org> <0610816e-2675-1abf-a4ee-274807317932@FreeBSD.org> <5A8D0A1F-6EA3-4DF2-82A2-EC1309C33E1E@FreeBSD.org> <823B7E6C-4B47-401F-A254-C88825AE5562@FreeBSD.org> In-Reply-To: <823B7E6C-4B47-401F-A254-C88825AE5562@FreeBSD.org> --1hWNeDVpF1L2EfIVrsEXeQI2QTsfm1OFe Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 06/ 8/16 07:09 PM, Dimitry Andric wrote: > On 09 Jun 2016, at 00:30, Jung-uk Kim wrote: >> >> On 06/ 8/16 06:16 PM, Dimitry Andric wrote: >>> On 08 Jun 2016, at 23:54, Jung-uk Kim wrote: >>>> >>>> On 06/ 8/16 05:15 PM, Dimitry Andric wrote: >>>>> On 08 Jun 2016, at 21:11, Gerald Pfeifer 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 =3D en_US.UTF-8 we get >>>>>> conflicting entires in $BUILDDIR/gcc/options.h such as >>> ... >>>>> Note that GNU awk does *not* produce a different optionlist file wh= en >>>>> used with either LANG=3DC or LANG=3Den_US.UTF-8. >>> ... >>>>> So I am assuming that the ARRAY[j-1] > ARRAY[j] comparison works >>>>> differently in our awk, depending on the LANG settings. No idea wh= en >>>>> that changed, though, if it changed at all... >>>> >>>> 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-Comp= arison.html >>> >>> >>> Indeed, so the real question is: why does this only started coming up= >>> now, if it is known since 2007? I have been building gcc ports for >>> ages, and never ran into this problem, but I also have never actively= >>> used a persistent LANG environment variable, let alone with UTF-8 in = it. >>> >>> Is this because more people started using UTF-8 recently? >> >> We are doing more correct collation now: >> >> https://svnweb.freebsd.org/changeset/base/290494 >=20 > Indeed. This problem has come up before on the ports mailing list, > almost immediately after that commit: >=20 > https://lists.freebsd.org/pipermail/freebsd-ports/2015-November/101034.= html >=20 > Apparently some proposals were made to set LANG and LC_ALL to C globall= y > for port builds, but it was never implemented? tijl proposed it but never implemented because of difficulties to exp-run the change, it seems. http://docs.freebsd.org/cgi/mid.cgi?20151127145552.GA19655 > I guess more people are now noticing it, because they are trying out th= e > 11.0-ALPHA installers. Which is good. :-) Jung-uk Kim --1hWNeDVpF1L2EfIVrsEXeQI2QTsfm1OFe-- --jm42IhHsbVuhf0Kk7NNQBMwScHFaN37Uv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXWKhsAAoJEHyflib82/FGjBgH/RbjCWABfhgIcwfUubGwgeQF S3Z/V1OZHov+CT7FOMMil0sisELskc2FaRD6EJqKciDalDmuoupMShfb2xJAueIO K2RpSA6zw1nTWSGEJM+Y1ONZebUGISvEqaG3j2ACLIPRbj5D3dfZARCAZglR/K7j /J3qVlx8p0DI/YeynqLPfT2w0YQQyGUb96dRui9fym6UPnOwJO5i66dYw1kU/K4/ N1hIl0HkuDJOnwxN4zCZnDf7TEvVKEC3kcfbhIwxOHTc2jkZay20RICoJjOfFjOF FLpRiDW6e55jMdejSM4ZH93pP6TjsmFIFeaUWSQZFlBffqP407pRX1RDV6jkQ8A= =L15j -----END PGP SIGNATURE----- --jm42IhHsbVuhf0Kk7NNQBMwScHFaN37Uv--