From owner-freebsd-ports@FreeBSD.ORG Wed Apr 17 19:19:13 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2180744E; Wed, 17 Apr 2013 19:19:13 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 81794AC; Wed, 17 Apr 2013 19:19:12 +0000 (UTC) Message-ID: <516EF507.6040309@FreeBSD.org> Date: Wed, 17 Apr 2013 15:16:23 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130408 Thunderbird/17.0.5 MIME-Version: 1.0 To: Dimitry Andric Subject: Re: CURRENT (r249438): (devel/libiconv)./unistd.h:686:5: error: invalid token at start of a preprocessor expression : #if @GNULIB_EUIDACCESS@ References: <1365877246.2093.20.camel@thor.walstatt.dyndns.org> <1URs5b-000B9U-A2@internal.tormail.org> <1USKxR-00025i-Tt@internal.tormail.org> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current , "O. Hartmann" , FreeBSD ports , Jan Beich X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Apr 2013 19:19:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-04-17 06:07:47 -0400, Dimitry Andric wrote: > On Apr 17, 2013, at 07:31, Jan Beich wrote: >> Dimitry Andric writes: On Apr 16, 2013, at >> 00:42, Jan Beich wrote: > ... >>>> Maybe -O3 overoptimizes regex in libc e.g., >>>> >>>> $ echo '#if @GNULIB_EUIDACCESS@' | sed >>>> 's/@GNULIB_EUIDACCESS@/0/' #if @GNULIB_EUIDACCESS@ >>>> >>>> $ echo 'aaaaaaaaaaaaaaaaxxxaaaa' | sed >>>> 's/aaaaaaaaaaaaxxxaaaa//' aaaaaaaaaaaaaaaaxxxaaaa >>> >>> How did you arrive at this result? >> >> 1/ chroot into poudriere jail for /head amd64 2/ echo CFLAGS+=-O3 >> >> /etc/make.conf 3/ make -j2 (in /usr/src/lib/libc) 4/ prepend >> LD_LIBRARY_PATH=. before sed(1) 5/ rebuild regcomp.o, regcomp.So >> with -O2 to confirm > > I have been able to reproduce this on amd64, with -O3, but not on > i386. It seems regcomp() is either miscompiled at -O3, or it > contains some bug triggered only by the vectorizer. I am still > investigating. ... With "-fno-vectorize", this problem doesn't seem to happen. FYI, Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJRbvUHAAoJECXpabHZMqHOekEIAIml2te9436LzTFsr794y82E Vmytl95H+vW9Nj0qK5X/DkB/0MSepL5FZqKF5CSNTXFoNJoVFewYRIH/H5oICSpZ jfS4evF9i2mEDOScTyC/XaucvcVWupLE9Kf7FHEk5YIhDMs4r4nzwMFGkzffEqPK yLkV/Cpc8xjvi28OuXd1KaPIcX3S8Z9vEmWPyljtseRv9WlC5gT44fSz18hmqYmv fWSiML4YKKkDRAPOCy/Shpf5QUcygOul7Jz8RiDBx3O4R5goGW8Ee8Napn7UulSL nAXTHy8dcSbiAqqPKeXhmZGPCotj++P9s3jEvunOxL7lvrdjfy3WtGedcp02ia8= =jwYS -----END PGP SIGNATURE-----