Re: HEADS UP: merged llvm/clang 3.4

看板FB_stable作者時間12年前 (2014/03/24 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串30/58 (看更多)
--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--
文章代碼(AID): #1JBo5Vpt (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1JBo5Vpt (FB_stable)