From owner-freebsd-current@FreeBSD.ORG Tue Apr 16 19:22:53 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 16972488; Tue, 16 Apr 2013 19:22:53 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id C8DC9114F; Tue, 16 Apr 2013 19:22:52 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.80.1) with esmtp (envelope-from ) id <1USBSn-001Ey3-6N>; Tue, 16 Apr 2013 21:22:45 +0200 Received: from f052018160.adsl.alicedsl.de ([78.52.18.160] helo=[192.168.0.128]) by inpost2.zedat.fu-berlin.de (Exim 4.80.1) with esmtpsa (envelope-from ) id <1USBSn-000UXA-1W>; Tue, 16 Apr 2013 21:22:45 +0200 Subject: Re: CURRENT (r249438): (devel/libiconv)./unistd.h:686:5: error: invalid token at start of a preprocessor expression : #if @GNULIB_EUIDACCESS@ From: "O. Hartmann" To: Dimitry Andric In-Reply-To: References: <1365877246.2093.20.camel@thor.walstatt.dyndns.org> <1URs5b-000B9U-A2@internal.tormail.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-+JNEwKYMXXQyvXjb8Vxe" Date: Tue, 16 Apr 2013 21:22:44 +0200 Message-ID: <1366140164.1505.2.camel@thor.walstatt.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Originating-IP: 78.52.18.160 Cc: FreeBSD Current , FreeBSD ports , Jan Beich X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Apr 2013 19:22:53 -0000 --=-+JNEwKYMXXQyvXjb8Vxe Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Tue, 2013-04-16 at 20:58 +0200, Dimitry Andric wrote: > On Apr 16, 2013, at 00:42, Jan Beich wrote: > > "O. Hartmann" writes: > >> ./unistd.h:694:5: error: invalid token at start of a preprocessor > >> expression > >> #if @GNULIB_EUIDACCESS@ > >> ^ > >> 1 error generated. > >=20 > > Maybe -O3 overoptimizes regex in libc e.g., > >=20 > > $ echo '#if @GNULIB_EUIDACCESS@' | sed 's/@GNULIB_EUIDACCESS@/0/' > > #if @GNULIB_EUIDACCESS@ > >=20 > > $ echo 'aaaaaaaaaaaaaaaaxxxaaaa' | sed 's/aaaaaaaaaaaaxxxaaaa//' > > aaaaaaaaaaaaaaaaxxxaaaa >=20 > How did you arrive at this result? I have recompiled both libc and sed > with -O3, but it works just fine here. Maybe -march=3Dnative is the clue= , > so which kind of CPU do you have? To see what CPU llvm detects, try: >=20 > tblgen -version | grep CPU >=20 > Note that -O3 turns on clang's vectorizer, so you might have run into an > optimizer bug, or some kind of undefined behavior which now falls over. >=20 > -Dimitry >=20 tblgen -version | grep CPU: Host CPU: penryn (host A) Host CPU: core-avx-i (host B) Host CPU: corei7-avx (host C) and the problem occurs on all of those boxes running most recent FreeBSD 10.0-CURRENT with CLANG 3.3 --=-+JNEwKYMXXQyvXjb8Vxe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAABAgAGBQJRbaUEAAoJEOgBcD7A/5N80zoIANwvx2NHWhqz7ElKbxTqolpU dJatrIJxdlBgYosrV6oFmN4z4SdViNuKUS1rDD7/SkvBnrdNlETBLJlVnG84+VsY ydrXZ2CvZRj3jk7LfvT7M/K741ZEQtN7JyZj81Lk5jnGycUmr9AIwyt3GRciTTWk pySq9fkcmT3kk3atihoT6C4ko+CZxoyaOSEPOzSKOOxwO9aGKjfSH7offTi22vj5 dTaVhhEE5LVvB4NsJVIIkI17o1EllKMUQNh2F63FITXpdgnNXN6FV2/rXNBwLV97 SVvbc+6RPVF4pXCtKir/a4km4ZKLpwaN16wJ6wlt2M80M+ssr0WemdYhXcg6AaQ= =euec -----END PGP SIGNATURE----- --=-+JNEwKYMXXQyvXjb8Vxe--