Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2014 15:16:40 +0100
From:      Schaich Alonso <alonsoschaich@fastmail.fm>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Ivan Klymenko <fidaj@ukr.net>, freebsd-stable@freebsd.org, Jakub Lach <jakub_lach@mailplus.pl>
Subject:   Re: HEADS UP: merged llvm/clang 3.4
Message-ID:  <20140323151640.6171e5c118f7dd26e0b7fc88@fastmail.fm>
In-Reply-To: <58EBBC17-5D32-47FA-8220-50F0872E0787@FreeBSD.org>
References:  <0E7E81A1-54E9-4920-A360-005A1C0C4D47@FreeBSD.org> <20140322154403.GK43653@albert.catwhisker.org> <E168E301-D0A9-4DBB-B2FA-4F7E670F03A3@FreeBSD.org> <20140322203226.GO43653@albert.catwhisker.org> <1395566978437-5896805.post@n5.nabble.com> <20140323124007.18989498@nonamehost.local> <20140323131820.ea5227052253a4f8e6b5c80d@fastmail.fm> <58EBBC17-5D32-47FA-8220-50F0872E0787@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Mar 2014 14:58:19 +0100
Dimitry Andric <dim@FreeBSD.org> wrote:

> On 23 Mar 2014, at 13:18, Schaich Alonso <alonsoschaich@fastmail.fm> wrot=
e:
> > On Sun, 23 Mar 2014 12:40:07 +0200
> > Ivan Klymenko <fidaj@ukr.net> wrote:
> >=20
> >> =D0=92 Sun, 23 Mar 2014 02:29:38 -0700 (PDT)
> >> Jakub Lach <jakub_lach@mailplus.pl> =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> >>=20
> >>> Well, speaking of strangeness, I cannot build kernel on amd64.
> >>>=20
> >>> cc -O2 -pipe -I. -I/usr/src/sys/dev/aic7xxx/aicasm -std=3Dgnu99=20
> >>> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> >>> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> >>> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
> >>> -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -c
> >>> aicasm_gram.c aicasm_gram.c:2:19: error: unused variable 'yysccsid'
> >>> [-Werror,-Wunused-const-variable]
> >>> static const char yysccsid[] =3D "@(#)yaccpar     1.9 (Berkeley)
> >>> 02/21/93"; ^
> >>> 1 error generated.
> >>> *** Error code 1
> >>>=20
> >>> Stop.
> >>> make[2]: stopped in /usr/obj/usr/src/sys/GENERIC
> >>> *** Error code 1
> >>>=20
> >>> Stop.
> >>> make[1]: stopped in /usr/src
> >>> *** Error code 1
> >>>=20
> >>=20
> >> I have the exact same problem...
> >=20
> > As a workaround, you can avoid this by inserting
> >=20
> >> NO_WERROR=3D
> >> WERROR=3D
> >=20
> > into src.conf.
>=20
> Aha, now I get it.  You seem to be building stable/9 from a stable/10 or
> newer host, which contains a newer version of yacc?  Apparently it
> inserts an unused banner into the produced parser, which clang then
> complains about.
>=20
> The best solution is obviously to remove the banner, which is now being
> checked with the upstream yacc maintainer.  Since people will be stuck
> with the "wrong" version of yacc for some time, I guess the easiest way
> is to disable warnings for aicasm for now.
>=20
> It is not as if anybody cares about warnings in aicasm; it has already
> been removed in head. :-)
>=20
> -Dimitry
>=20

Actually I was building 10-STABLE from a 2 week older snapshot of 10-STABLE.

The workaround is indeed from the FreeBSD-9 times' wiki article of building
FreeBSD with clang, however I remembered those yacc statements to already
have caused trouble in the past, so I look-up-ed the old articles and found
this.

Alonso



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140323151640.6171e5c118f7dd26e0b7fc88>