From owner-freebsd-toolchain@freebsd.org Wed Jun 8 23:09:42 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 00AF8B6FEA0 for ; Wed, 8 Jun 2016 23:09:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2C261488; Wed, 8 Jun 2016 23:09:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::35e6:4d9:66a5:188a] (unknown [IPv6:2001:7b8:3a7:0:35e6:4d9:66a5:188a]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1161C178B6; Thu, 9 Jun 2016 01:09:40 +0200 (CEST) Subject: Re: Duplicate OPT_ entries in gcc/options.h Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C4FD4980-68D6-46FD-B1D9-BCC64693E3CF"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: Date: Thu, 9 Jun 2016 01:09:32 +0200 Cc: FreeBSD Toolchain , Gerald Pfeifer , Andreas Tobler , Baptiste Daroussin , Tijl Coosemans Message-Id: <823B7E6C-4B47-401F-A254-C88825AE5562@FreeBSD.org> References: <75411813-0C9B-4CEF-BEE4-8B26DD8346F7@FreeBSD.org> <0610816e-2675-1abf-a4ee-274807317932@FreeBSD.org> <5A8D0A1F-6EA3-4DF2-82A2-EC1309C33E1E@FreeBSD.org> To: Jung-uk Kim X-Mailer: Apple Mail (2.3124) 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:09:42 -0000 --Apple-Mail=_C4FD4980-68D6-46FD-B1D9-BCC64693E3CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 09 Jun 2016, at 00:30, Jung-uk Kim wrote: >=20 > On 06/ 8/16 06:16 PM, Dimitry Andric wrote: >> On 08 Jun 2016, at 23:54, Jung-uk Kim wrote: >>>=20 >>> On 06/ 8/16 05:15 PM, Dimitry Andric wrote: >>>> On 08 Jun 2016, at 21:11, Gerald Pfeifer = wrote: >>>>>=20 >>>>> 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 = when >>>> 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 = when >>>> that changed, though, if it changed at all... >>>=20 >>> This behaviour is known for very long time: >>>=20 >>> https://svnweb.freebsd.org/changeset/base/173731 >>>=20 >>> and it is not our fault: >>>=20 >>> = https://www.gnu.org/software/gawk/manual/html_node/POSIX-String-Comparison= .html >>=20 >>=20 >> 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. >>=20 >> Is this because more people started using UTF-8 recently? >=20 > We are doing more correct collation now: >=20 > https://svnweb.freebsd.org/changeset/base/290494 Indeed. This problem has come up before on the ports mailing list, almost immediately after that commit: = https://lists.freebsd.org/pipermail/freebsd-ports/2015-November/101034.htm= l Apparently some proposals were made to set LANG and LC_ALL to C globally for port builds, but it was never implemented? I guess more people are now noticing it, because they are trying out the 11.0-ALPHA installers. -Dimitry --Apple-Mail=_C4FD4980-68D6-46FD-B1D9-BCC64693E3CF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAldYpbMACgkQsF6jCi4glqOvRwCg7FP7GcUrJuQisQeu8n++tTlp JhkAnjadknX5jP5TucYDY3BSCbvOoMIc =N6bR -----END PGP SIGNATURE----- --Apple-Mail=_C4FD4980-68D6-46FD-B1D9-BCC64693E3CF--