Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2013 16:42:50 -0600
From:      Jan Beich <jbeich@tormail.org>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD ports <freebsd-ports@freebsd.org>
Subject:   Re: CURRENT (r249438): (devel/libiconv)./unistd.h:686:5: error: invalid token at start of a preprocessor expression : #if @GNULIB_EUIDACCESS@
Message-ID:  <1URs5b-000B9U-A2@internal.tormail.org>
In-Reply-To: <1365877246.2093.20.camel@thor.walstatt.dyndns.org> (O. Hartmann's message of "Sat, 13 Apr 2013 20:20:46 %2B0200")
References:  <1365877246.2093.20.camel@thor.walstatt.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"O. Hartmann" <ohartman@zedat.fu-berlin.de> writes:

> Trying to recompile converters/libiconv on FreeBSD 10.0-CUR/r49438 (with
> bran new CLANG 3.3) results  with the errors below. This error shows up
> on boxes having FBSD 10 and X11. It doesn't show up on those boxes
> running without a full X11 (that is the only difference I can figure out
> at the moment since the different systems share a lot of configuration
> stuff, having different CPU types (C2D, Sandy-Bridge, Ivy-Bridge) but
> nothing I can figure out as the source of the strange behaviour and
> error).
[...]
> converters/libiconv:
> cc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib  -I../intl
> -DDEPENDS_ON_LIBICONV=1  -DDEPENDS_ON_LIBINTL=1    -O2 -pipe -O3
> -march=native -fno-strict-aliasing -c areadlink.c
> In file included from areadlink.c:27:
> In file included from ./careadlinkat.h:23:
> In file included from ./fcntl.h:62:
> ./unistd.h:694:5: error: invalid token at start of a preprocessor
> expression
> #if @GNULIB_EUIDACCESS@
>     ^
> 1 error generated.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1URs5b-000B9U-A2>