From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 20:33:06 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 924D41065677; Tue, 17 Apr 2012 20:33:06 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 43E0E8FC0A; Tue, 17 Apr 2012 20:33:06 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1SKF5F-00054X-6g>; Tue, 17 Apr 2012 22:33:05 +0200 Received: from e178027059.adsl.alicedsl.de ([85.178.27.59] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1SKF5F-0002nI-10>; Tue, 17 Apr 2012 22:33:05 +0200 Message-ID: <4F8DD37A.3080703@zedat.fu-berlin.de> Date: Tue, 17 Apr 2012 22:32:58 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: Dimitry Andric References: <4F8DC447.3080105@zedat.fu-berlin.de> <4F8DCAC1.5040507@FreeBSD.org> In-Reply-To: <4F8DCAC1.5040507@FreeBSD.org> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBF9C75F9DA6EAF10D0DFBB7C" X-Originating-IP: 85.178.27.59 Cc: Current FreeBSD Subject: Re: usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c:1289:11: error: case value not in enumerated type 'xge_hal_event_e' (aka 'enum xge_hal_event_e') [-Werror,-Wswitch], case XGE_LL_EVENT_DEVICE_RESETTING: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2012 20:33:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBF9C75F9DA6EAF10D0DFBB7C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 04/17/12 21:55, schrieb Dimitry Andric: > On 2012-04-17 21:28, O. Hartmann wrote: >> Compiling the most recent kernel sources results in the following erro= r. >> OS is: >> >> FreeBSD 10.0-CURRENT #3 r234326: Mon Apr 16 00:47:35 CEST 2012 >> >> =3D=3D=3D> nxge (all) >> clang -O2 -fno-strict-aliasing -pipe -pipe -O3 -fno-strict-aliasing >> -march=3Dnative -DXGE_DEBUG_MODULE_MASK=3DXGE_COMPONENT_LL >> -DXGE_DEBUG_ERR_MASK=3DXGE_COMPONENT_LL -Werror -D_KERNEL -DKLD_MODULE= >> -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include >> /usr/obj/usr/src/sys/THOR/opt_global.h -I. -I@ -I@/contrib/altq >> -fno-common -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/THOR >> -mno-aes -mno-avx -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >> -fstack-protector -std=3Diso9899:1999 -Qunused-arguments -fstack-prote= ctor >> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef >> -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-self-assig= n >> -c /usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c >> /usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c:1276:11: error: cas= e >> value not in enumerated type 'xge_hal_event_e' (aka 'enum >> xge_hal_event_e') [-Werror,-Wswitch] >> case XGE_LL_EVENT_TRY_XMIT_AGAIN: >> ^ >> /usr/src/sys/modules/nxge/../../dev/nxge/if_nxge.c:1289:11: error: cas= e >> value not in enumerated type 'xge_hal_event_e' (aka 'enum >> xge_hal_event_e') [-Werror,-Wswitch] >> case XGE_LL_EVENT_DEVICE_RESETTING: >> ^ >=20 > Yes, this is expected. I imported a new clang snapshot, which has more= > elaborate checks on switches in combinations with enums. Yes, I saw LLVM/CLANG 3.1 slipping in ;-) Thanks for that, highly appreciated. >=20 > There are several other problems like this, the fixes are in the > pipeline. But for the fix for this particular error in nxge, I didn't > yet receive enough feedback. >=20 > For now, please set WERROR=3D in your src.conf, or apply the attached > patch to your source tree. Well, the box in my lab compiled without flaws, so I was really confused that the office's box won't. But now where you say WERROR - I commenetd that out so I guess the simplest and non-invasive way is to enable WERROR=3D again. I do so now ... Thank you very much, Regards, Oliver --------------enigBF9C75F9DA6EAF10D0DFBB7C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJPjdOAAAoJEOgBcD7A/5N8GRAIAK+cx7EI0ZfNX71UU9s4Wpex NeGvzAd+IKhZ07mksmvzbKZXvAj//cZWD5rnG/jarLR8OPOzWwKODCPCR0yVbYmM HCboFujdSwN8CQWkvXUNsjMznjBdm3877MhpSV6aTIWahorISfz5Q+4rDUcSAjlJ JdeKxJAWczlQBKTNGBOR5BzzXNOkhdJq1gUCetLPUZP7q/U0eHlOOswu6C/1fRUF /i3s5UNFIEJMU8C8R4B74V/xVpr7T5lxSVTwW//25/u1L88mUgsFSr4LSyxND2N1 BZrbfJ/3IYkBcWlRPcwBMyDCQ6pO2S1lMYCo1XdrB+Q77bVPTtL5zZCozT62s3g= =G6kC -----END PGP SIGNATURE----- --------------enigBF9C75F9DA6EAF10D0DFBB7C--