Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2014 14:58:19 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Schaich Alonso <alonsoschaich@fastmail.fm>
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:  <58EBBC17-5D32-47FA-8220-50F0872E0787@FreeBSD.org>
In-Reply-To: <20140323131820.ea5227052253a4f8e6b5c80d@fastmail.fm>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_9A26BA53-50CC-4C4F-81A5-E70EAC1241CC
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

On 23 Mar 2014, at 13:18, Schaich Alonso <alonsoschaich@fastmail.fm> =
wrote:
> 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.

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.

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.

It is not as if anybody cares about warnings in aicasm; it has already
been removed in head. :-)

-Dimitry


--Apple-Mail=_9A26BA53-50CC-4C4F-81A5-E70EAC1241CC
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)

iEYEARECAAYFAlMu6IMACgkQsF6jCi4glqMinQCg0Zh0BAKk28yKYdSG1Lwx4XuX
5KEAoPFIDwfuRzaLeTQgebB7LCg4Un5h
=iKvA
-----END PGP SIGNATURE-----

--Apple-Mail=_9A26BA53-50CC-4C4F-81A5-E70EAC1241CC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58EBBC17-5D32-47FA-8220-50F0872E0787>