From owner-freebsd-ports@FreeBSD.ORG Tue Jun 28 18:46:34 2011 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 88B5D1065674; Tue, 28 Jun 2011 18:46:34 +0000 (UTC) (envelope-from zeising@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 131378FC1D; Tue, 28 Jun 2011 18:46:32 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 2DDC240003; Tue, 28 Jun 2011 20:46:30 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 235BD40020; Tue, 28 Jun 2011 20:46:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.3.1 X-Spam-Score: 0.1 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id E4F2340003; Tue, 28 Jun 2011 20:46:29 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2001:470:dca9:0:1::4]) by mx.daemonic.se (Postfix) with ESMTPS id CE0A1119C08; Tue, 28 Jun 2011 20:46:28 +0200 (CEST) Received: from [IPv6:2001:470:dca9:1::4] (vivi.daemonic.se [IPv6:2001:470:dca9:1::4]) by mail.daemonic.se (Postfix) with ESMTPSA id A79EB12B1E5; Tue, 28 Jun 2011 20:46:28 +0200 (CEST) Message-ID: <4E0A2172.7000800@daemonic.se> Date: Tue, 28 Jun 2011 20:46:10 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: Gabor PALI References: <4E0679AA.20100@shadowsun.net> <4E06863F.7010104@FreeBSD.org> In-Reply-To: <4E06863F.7010104@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-current@freebsd.org, freebsd-ports@freebsd.org Subject: -Qunused-parameter and clang (was Re: GHC Port on 9-CURRENT) 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: Tue, 28 Jun 2011 18:46:34 -0000 Sorry for hijacking this thread, and cross posting. On 2011-06-26 03:07, Gabor PALI wrote: > > >> With Clang, an error occurs in one of the configure scripts, because >> Clang warns about unused command-line arguments, and the configure >> script assumes that to be a compiler error. You can deal with this by >> adding -Qunused-parameter to CFLAGS. > > Thanks for investigating this. > This should probably be made the default, at least for ports when clang is compiled, since the output generated when not using -Qunused-parameter confuses configure scripts, and stops at least FireFox 5 from compiling, that I know of. Regards! -- Niclas Zeising