Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2012 12:05:53 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Current FreeBSD <freebsd-current@freebsd.org>,  Ports FreeBSD <freebsd-ports@FreeBSD.org>
Subject:   New Xorg: graphics/dri: fails to compile with CLANG: nouveau_array.c:49:16: error: illegal storage class on function, *extract_u = EXTRACT(char,  unsigned, 1);
Message-ID:  <4F9BC101.8090305@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig798FACFB13A706D012E5FD45
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Compiling Xorg stuff with the switch set in /etc/make.conf for the new
Xorg graphics/dri  mesa 7.11.x and xorg-server 1.10.6 with CLANG on bot
FreeBSD 10 and 9 end up in an error:

nouveau_array.c:49:16: error: illegal storage class on function
                *extract_u =3D EXTRACT(char, unsigned, 1);

This error seem to be well known since last year, as this links states:

http://lists.freedesktop.org/archives/nouveau/2011-December/009768.html

and claimed to be resolved, as this link indicates:

http://lists.freedesktop.org/archives/mesa-dev/2012-March/019815.html

and

http://cgit.freedesktop.org/mesa/mesa/commit/?id=3D4aa1ac5fe94b5696095229=
ee3568bf4fa7cfed95

Is there in "official" way to get this fixed with CLANG? I see that
files folder in graphics/dri is missing, so none of the  fixes for both
the faulty source files

nouveau_array.c
nouveau_render_t.c

as indicated by the patches have been fixed permanently for CLANG with
FreeBSD so far.

It would be a pleasure having a "nice" solution using CLANG. I was
looking for a switch allowing to patch the sources upon a criteria, but
the ports framework seems not to be capable of such a thing. If there is
already a solution I would be pleased to have it, too, if available,
otherwise I will go for installation of GIT, sucking in the patches and
create myself patchfiles. I'm hesitating to do so at the moment since I
don't want to have git installed since I do not use it, yet (updating
useless/unused ports is sometimes a waste of time on slow boxes, sorry).

Thanks in advance,
Oliver


--------------enig798FACFB13A706D012E5FD45
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)

iQEcBAEBAgAGBQJPm8EHAAoJEOgBcD7A/5N8+YEH/1FokHuX4t2Q3+Ubis81l3+F
X3TilfjYitxfgPHaDaf/+Zk2Nepu9CjqRgp59jdRj+iEuoL1kPn/Rukh/5/uyA7c
eHqXrVelOSy1X0vd+5X7fXq9svgg7ErpurSPiCBSNGFNJJUov9/aL4Jx0Qu4SP/j
JHGimgNA8WPodOfz1iXDLdSl5QPiMwub3BX41YegR/xO5l/rXGhvB+SMCWjLfj8z
qh86DZ9D1jSQmfiqk6vFfrrqbFa2LnxV5rc6GNx2rp/SCRNYRlp9imsofr/z/pYq
okChWINtGLvLuqhKwvS7cDvNAoa5wN4LHav6yCkHfNw1y2sSQ38URLXti/PbeSI=
=L+Q7
-----END PGP SIGNATURE-----

--------------enig798FACFB13A706D012E5FD45--



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