From owner-freebsd-ports@FreeBSD.ORG Wed Jun 22 21:25:45 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 175151065670 for ; Wed, 22 Jun 2011 21:25:45 +0000 (UTC) (envelope-from niclas.zeising@gmail.com) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by mx1.freebsd.org (Postfix) with ESMTP id B5F6D8FC0C for ; Wed, 22 Jun 2011 21:25:44 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 9419840002 for ; Wed, 22 Jun 2011 23:06:32 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 890C540005; Wed, 22 Jun 2011 23:06:32 +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.0 required=5.0 tests=AWL,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (h-90-99.A163.priv.bahnhof.se [79.136.90.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 62ADA40002 for ; Wed, 22 Jun 2011 23:06:32 +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 18768119C04 for ; Wed, 22 Jun 2011 23:06:32 +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 E808A12B0A0 for ; Wed, 22 Jun 2011 23:06:31 +0200 (CEST) Message-ID: <4E025956.5070903@gmail.com> Date: Wed, 22 Jun 2011 23:06:30 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: clang and ports 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: Wed, 22 Jun 2011 21:25:45 -0000 Hello list! When clang runs, it sometimes warns like this: >clang: warning: argument unused during compilation: '-Wall' This is extra true while linking object files, and tests done in configure. This sometimes makes configure believe a test failed while it in reality succeeded, as is the case in a few tests in firefox 5 configure, amongst other places. These warnings can be suppressed with the parameter -Qunused-arguments. I therefore suggest that you add >CFLAGS+=-Qunused-parameter >CXXFLAGS+=-Qunused-parameter to make.conf or similar when building ports with clang. Best Regards! -- Niclas Zeising P.S. I got Firefox 5 to build and run using clang, running on latest 9-Current, amd64. :)