From owner-freebsd-ports@FreeBSD.ORG Mon May 28 14:13:36 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 D3276106564A; Mon, 28 May 2012 14:13:36 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id F03668FC0C; Mon, 28 May 2012 14:13:35 +0000 (UTC) Received: by bkvi18 with SMTP id i18so2984368bkv.13 for ; Mon, 28 May 2012 07:13:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=s+6I6DT6FTgMPqyFAL7y6ZFOYrYaQX3HaCUmNrfV8jQ=; b=x14Q5N8eONoSYZ3wif3bBQ4HQEspOcw21zrMOe2Iyrh+VXvGD+ziFJN1Ud7W3rP/y2 /xCBaLRRuBg6kEfMASPBmE2CaCExdCoKbjFGeudEWkW8pJ1QJv0WCqOvJXGLiumFbDS3 qX9L2O3pk1OGHe7Wvlyg42l8W70KionsGnK1pa3UFLpuVbSaSvf/BeQnngrrLWo/0+ud iQYa1Mkf3G1wAwFkxUQRj98PA8sxow6MKwduv5MHKbeUULeh8AOB5TOeYLaf5tf2WcpX bTgH1660BS13pAf2sDSmqKe+E6XBH2z/wE/9htOLyV4MSNGcXqrYrRv3dicH2ZAX5L87 lHbg== Received: by 10.204.41.14 with SMTP id m14mr3647654bke.109.1338214414816; Mon, 28 May 2012 07:13:34 -0700 (PDT) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id n19sm14350524bkv.14.2012.05.28.07.13.32 (version=SSLv3 cipher=OTHER); Mon, 28 May 2012 07:13:33 -0700 (PDT) Message-ID: <4FC3880B.3090305@gmail.com> Date: Mon, 28 May 2012 17:13:31 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120515 Firefox/12.0 SeaMonkey/2.9.1 MIME-Version: 1.0 To: Dimitry Andric References: <4F9BC101.8090305@zedat.fu-berlin.de> <4F9BD08C.4090405@gmail.com> <4F9C2047.8020108@FreeBSD.org> In-Reply-To: <4F9C2047.8020108@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Current FreeBSD , Ports FreeBSD Subject: Re: 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); 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: Mon, 28 May 2012 14:13:36 -0000 Dimitry Andric wrote: > On 2012-04-28 13:12, Volodymyr Kostyrko wrote: >> O. Hartmann wrote: >>> 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 >> >> I think the patch should go to graphics/libGL. >> >> cd /usr/ports/graphics/libGL/files >> fetch -rao - >> 'http://cgit.freedesktop.org/mesa/mesa/patch/?id=4aa1ac5fe94b5696095229ee3568bf4fa7cfed95' >> | sed -e 's|^--- a/src|--- src|' -e 's|^+++ b/src|+++ src|'> patch-nouveau >> >> Should do. > > Please try this patch (lightly tested): > > http://www.andric.com/freebsd/clang/clangports-graphics-libGL-3.diff Works for me. Could this one be commited? It looks better then my quick hack. -- Sphinx of black quartz judge my vow.