From owner-freebsd-ports@FreeBSD.ORG Sat Apr 28 16:52:20 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 CF7E91065675; Sat, 28 Apr 2012 16:52:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 88F858FC08; Sat, 28 Apr 2012 16:52:20 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:9875:2809:2793:7777] (unknown [IPv6:2001:7b8:3a7:0:9875:2809:2793:7777]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ADF5B5C59; Sat, 28 Apr 2012 18:52:19 +0200 (CEST) Message-ID: <4F9C2047.8020108@FreeBSD.org> Date: Sat, 28 Apr 2012 18:52:23 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120420 Thunderbird/12.0 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <4F9BC101.8090305@zedat.fu-berlin.de> <4F9BD08C.4090405@gmail.com> In-Reply-To: <4F9BD08C.4090405@gmail.com> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Current FreeBSD , "O. Hartmann" , 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: Sat, 28 Apr 2012 16:52:20 -0000 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