From owner-freebsd-ports@FreeBSD.ORG Sat Jun 9 17:00:30 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A34F1065675; Sat, 9 Jun 2012 17:00:30 +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 97E1A8FC14; Sat, 9 Jun 2012 17:00:29 +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 <1SdP1R-0008Sm-Tq>; Sat, 09 Jun 2012 19:00:22 +0200 Received: from e178004171.adsl.alicedsl.de ([85.178.4.171] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1SdP1R-0005hf-KK>; Sat, 09 Jun 2012 19:00:21 +0200 Message-ID: <4FD3811E.4050800@zedat.fu-berlin.de> Date: Sat, 09 Jun 2012 19:00:14 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120601 Thunderbird/12.0.1 MIME-Version: 1.0 To: Current FreeBSD , Ports FreeBSD X-Enigmail-Version: 1.4.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig78D3A0A99A9603A05FF6E935" X-Originating-IP: 85.178.4.171 Cc: Subject: graphics/dri: nouveau_array.c:49:16: error: illegal storage class on function, *extract_u = EXTRACT(char, unsigned, 1); X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2012 17:00:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig78D3A0A99A9603A05FF6E935 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I try to track down problems on one of our FreeBSD 10.0-CURRENT/amd64 boxes and therefore, I try recompiling "xorg". One box is constantly failing to compile port graphics/dri with a obviously well know error, as "googling" reveals ( http://lists.freedesktop.org/archives/mesa-dev/2011-December/016348.html)= =2E I share /etc/make.conf and /etc/src.conf on those FreeBSD 10.0-CURRENT boxes, they are supposed to have set WITH_NEW_XORG=3Dyes WITHOUT_NOUVEAU=3Dyes There was a time when also WITH_KMS=3Dyes was set on the box in question,= but I disabled that again (commented out). The problem is sticky. I also tried "portmaster -f graphics/dri", everything is compiled well (CLANG) until it comes to graphics/dri itself= =2E graphics/libdrm is compiled without KMS. Somehow bad things slipped into the system and I feel like floating like a dead man in the water. I considered deleting /var/db/pkg/*, since sometimes I need to delete manually specific folders in that directory to make a port compiling again. But I do not know wether this is introducing larger problems. Compiling the whole ports (implies deleting them all) is no option for this moment. Does anyone know this problem and has a solution to get rid of this sticky thing? Regards, Oliver [...] =2E./../src/egl/main -I../../../../../src/egl/drivers/dri -I/usr/local/include -I/usr/local/include/libdrm -DFEATURE_GL=3D1 -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include/nouveau -I/usr/local/include -O3 -pipe -fno-strict-aliasing -march=3Dnative -Wall -Wmissing-prototypes -std=3Dc9= 9 -fno-strict-aliasing -O3 -pipe -fno-strict-aliasing -march=3Dnative -fPI= C -DUSE_X86_64_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=3D1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -fvisibility=3Dhidden nouveau_scratch.c -o nouveau_scratch.o clang -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../include -I../../../../../src/mapi -I../../../../../src/mesa -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri -I/usr/local/include -I/usr/local/include/libdrm -DFEATURE_GL=3D1 -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include/nouveau -I/usr/local/include -O3 -pipe -fno-strict-aliasing -march=3Dnative -Wall= -Wmissing-prototypes -std=3Dc99 -fno-strict-aliasing -O3 -pipe -fno-strict-aliasing -march=3Dnative -fPIC -DUSE_X86_64_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=3D1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -fvisibility=3Dhidden nouveau_array.c -o nouveau_array.o nouveau_array.c:49:16: error: illegal storage class on function *extract_u =3D EXTRACT(char, unsigned, 1); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:49:16: error: expected ';' at end of declaration *extract_u =3D EXTRACT(char, unsigned, 1); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:50:16: error: illegal storage class on function *extract_f =3D EXTRACT(char, float, SCHAR_MAX); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:50:16: error: expected ';' at end of declaration *extract_f =3D EXTRACT(char, float, SCHAR_MAX); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:53:16: error: illegal storage class on function *extract_u =3D EXTRACT(unsigned char, unsigned, 1); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:53:16: error: expected ';' at end of declaration *extract_u =3D EXTRACT(unsigned char, unsigned, 1); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:54:16: error: illegal storage class on function *extract_f =3D EXTRACT(unsigned char, float, UCHAR_MAX); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:54:16: error: expected ';' at end of declaration *extract_f =3D EXTRACT(unsigned char, float, UCHAR_MAX); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:57:16: error: illegal storage class on function *extract_u =3D EXTRACT(short, unsigned, 1); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:57:16: error: expected ';' at end of declaration *extract_u =3D EXTRACT(short, unsigned, 1); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:58:16: error: illegal storage class on function *extract_f =3D EXTRACT(short, float, SHRT_MAX); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:58:16: error: expected ';' at end of declaration *extract_f =3D EXTRACT(short, float, SHRT_MAX); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:61:16: error: illegal storage class on function *extract_u =3D EXTRACT(unsigned short, unsigned, 1); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:61:16: error: expected ';' at end of declaration *extract_u =3D EXTRACT(unsigned short, unsigned, 1); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:62:16: error: illegal storage class on function *extract_f =3D EXTRACT(unsigned short, float, USHRT_MAX);= ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:62:16: error: expected ';' at end of declaration *extract_f =3D EXTRACT(unsigned short, float, USHRT_MAX);= ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:65:16: error: illegal storage class on function *extract_u =3D EXTRACT(int, unsigned, 1); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ nouveau_array.c:65:16: error: expected ';' at end of declaration *extract_u =3D EXTRACT(int, unsigned, 1); ^ nouveau_array.c:39:50: note: expanded from macro 'EXTRACT' out_t f(struct nouveau_array *a, int i, int j) { \= ^ nouveau_array.c:clang -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../include -I../../../../../src/mapi -I../../../../../src/mesa -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri -I/usr/local/include -I/usr/local/include/libdrm -DFEATURE_GL=3D1 -I/usr/local/include -I/usr/local/include/libdrm -I/usr/local/include/nouveau -I/usr/local/include -O3 -pipe -fno-strict-aliasing -march=3Dnative -Wall= -Wmissing-prototypes -std=3Dc99 -fno-strict-aliasing -O3 -pipe -fno-strict-aliasing -march=3Dnative -fPIC -DUSE_X86_64_ASM -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=3D1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -fvisibility=3Dhidden nv04_context.c -o nv04_cont= ext.o 66:16: error: illegal storage class on function *extract_f =3D EXTRACT(int, float, INT_MAX); ^ nouveau_array.c:38:3: note: expanded from macro 'EXTRACT' auto out_t f(struct nouveau_array *, int, int); \= ^ fatal error: too many errors emitted, stopping now [-ferror-limit=3D] 20 errors generated. gmake[6]: *** [nouveau_array.o] Error 1 gmake[6]: *** Waiting for unfinished jobs.... nouveau_context.c:281:2: warning: expression result unused [-Wunused-valu= e] context_bctx(ctx, FRAMEBUFFER); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =2E/nouveau_bo_state.h:103:2: note: expanded from macro 'context_bctx' __context_bctx(ctx, NOUVEAU_BO_CONTEXT_##s) ^ =2E/nouveau_bo_state.h:100:3: note: expanded from macro '__context_bctx' bctx; \= ^~~~ 1 warning generated. nv04_context.c:78:4: warning: expression result unused [-Wunused-value] context_bctx_i(ctx, TEXTURE, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =2E/nouveau_bo_state.h:105:2: note: expanded from macro 'context_bctx_i' __context_bctx(ctx, NOUVEAU_BO_CONTEXT_##s##0 + (i)) ^ =2E/nouveau_bo_state.h:100:3: note: expanded from macro '__context_bctx' bctx; \= ^~~~ 1 warning generated. gmake[6]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.11.2/src/mesa/drivers/dri/nouveau' gmake[5]: *** [lib] Error 2 gmake[5]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.11.2/src/mesa/drivers/dri/nouveau' gmake[4]: *** [subdirs] Error 1 gmake[4]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.11.2/src/mesa/drivers/dri' gmake[3]: *** [default] Error 1 gmake[3]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.11.2/src/mesa/drivers' gmake[2]: *** [driver_subdirs] Error 2 gmake[2]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.11.2/src/mesa' gmake[1]: *** [subdirs] Error 1 gmake[1]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-7.11.2/src= ' gmake: *** [default] Error 1 *** [do-build] Error code 1 Stop in /usr/ports/graphics/dri. =3D=3D=3D>>> make failed for graphics/dri =3D=3D=3D>>> Aborting update Terminated =3D=3D=3D>>> There are messages from installed ports to display, but first take a moment to review the error messages above. Then press Enter when ready to proceed. --------------enig78D3A0A99A9603A05FF6E935 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) iQEcBAEBAgAGBQJP04EkAAoJEOgBcD7A/5N87M8H/27C8N/9HKqhIH223WAyEoH8 c5TvG/FeD36g2Z6nDG2WKnP3Sa4evBSuQPMXOUrFQtO6A0S/Hvy1dqkUCZ83xJG9 YgPNNdTuATZJuNqatOi92rewkkQkBmmosWRdfrDXa6sS1/3ozGE57JsqRrM9Wbb4 p2sVYQXM30n1jUc+Uh60jxrFmVqIudkRDCteusXJgjr0RLmX8K5fy/6tKYIExyDV jIchoRxsVPhxHrz8F5GR82FS5wgsdVJalpw4jLNSO4ftJ/DedCegBk2rZURquxWT Cp6Y+L1AogJJYWvXug2LU3vtepBAmrZQ2hY9ioh1PnXcF6VT/lDtbYRNC4FSv5c= =VGym -----END PGP SIGNATURE----- --------------enig78D3A0A99A9603A05FF6E935--