Re: CURRENT (r249438): (devel/libiconv)./unistd.h:686:5: error:
--=-+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 <jbeich@tormail.org> wrote:
> > "O. Hartmann" <ohartman@zedat.fu-berlin.de> 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--
討論串 (同標題文章)
完整討論串 (本文為第 4 之 9 篇):