Date: Fri, 27 Nov 2015 13:59:54 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Rainer Hurling <rhurlin@gwdg.de> Cc: Gerald Pfeifer <gerald@pfeifer.com>, freebsd-ports@freebsd.org Subject: Re: lang/gcc48 fails to build [on HEAD] Message-ID: <20151127125954.GA17547@ivaldir.etoilebsd.net> In-Reply-To: <5642362C.7000609@gwdg.de> References: <564040EE.6090504@gwdg.de> <alpine.LSU.2.20.1511091105470.2548@anthias> <5642362C.7000609@gwdg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 10, 2015 at 07:23:40PM +0100, Rainer Hurling wrote: > Am 09.11.15 um 11:06 schrieb Gerald Pfeifer: > > Hi Rainer, > >=20 > > On Mon, 9 Nov 2015, Rainer Hurling wrote: > >> I am using lang/gcc48 for a long time now on FreeBSD 11.0-CURRENT. Fro= m=20 > >> time to time I have to rebuild the port. This is the first time, that = I=20 > >> get the following error: > >=20 > > I have no idea where this is coming from. In fact, I rebuilt > > the lang/gcc port just last night (which is pretty much the same) > > and did not run into this. > >=20 > >> Is this a known error? It seems, there is something odd with C++ mode= =20 > >> and C files? > >=20 > > GCC now is built as C++ code, even though most source files have > > not been renamed from .c. So this warning is expected and can be > > ignored. > >=20 > > This being an old port, nothing has changed on the GCC side. Which > > means something in -CURRENT must have broken it. > >=20 > > Gerald > >=20 >=20 > I think I found the problem. >=20 > In my initial mail of this thread, I reported, that after upgrading > Freebsd 11.0-CURRENT to r290538 (including locale and localedef updates) > I am not able to build lang/gccXX any more. All I get are errors like > that in usr/ports/lang/gccXX/work/build/gcc: >=20 > ---- > In file included from .././../gcc-4.8.5/gcc/genflags.c:26: > In file included from ./tm.h:16: > ./options.h:4293:3: error: redefinition of enumerator 'OPT_C' > OPT_C =3D 129, /* -C */ > ^ > ---- >=20 > After more than 20 of them the build stops with > fatal error: too many errors emitted, stopping now [-ferror-limit=3D] > 20 errors generated. >=20 >=20 > This is with locale for Germany: > LANG=3Dde_DE.UTF-8 > LC_CTYPE=3D"de_DE.UTF-8" > LC_COLLATE=3D"de_DE.UTF-8" > LC_TIME=3D"de_DE.UTF-8" > LC_NUMERIC=3D"de_DE.UTF-8" > LC_MONETARY=3D"de_DE.UTF-8" > LC_MESSAGES=3D"de_DE.UTF-8" > LC_ALL=3D >=20 >=20 > If I use 'LC_COLLATE=3D"C"' for the build, the build works fine again: >=20 > cd /usr/ports/lang/gcc48 > env LC_COLLATE=3D"C" make > ... >=20 >=20 > So it seems, that something with the new 'locale' code in base of HEAD > is not working as expected here? (At least for other locales than US?) >=20 > I added bapt@, because he is the author introducing the new code into HEA= D. >=20 > Hope, my explanations are clear enough to get the problem. Please feel > free to ask for more information, if needed. >=20 > Regards, > Rainer Hurling >=20 Your explanations are good, sorry for the delay for my reply I will look in= to it. Best regards, Bapt --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlZYU8oACgkQ8kTtMUmk6EzrwACfYizL7OMjaMeZ+mDnY7SKwNOA 5S0AnRWh5H2aKdiaoKKUL3bb+Ti9HOTJ =byOu -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151127125954.GA17547>