From owner-freebsd-ports@FreeBSD.ORG Sun Mar 13 12:21: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 02B74106566B; Sun, 13 Mar 2011 12:21:34 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 99B248FC18; Sun, 13 Mar 2011 12:21:33 +0000 (UTC) Received: from megatron.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id BDE571874; Sun, 13 Mar 2011 13:05:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received; s=mail; t=1300017908; x= 1301832308; bh=cPW+iX+B41jjPDlLJCg0GYdO7/m2ZY6tryzxftxlmgY=; b=m Y9aDWu4q6RUvO0yFDX7wgLaxXCkLD17qjwcpdc+rA1wJzQ6mVtoyAUtX4MVtVhjN C+itMx5Xo4pxkCT8Vg7ILkx+i37xXGwpKNWs0PUGV7TxrGKuY8nZLRB5VNPzAMEz zpiBO3q8vr6OEwNf5ljNwso2iK+z2JUDY1bjBsv8UY= X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by megatron.madpilot.net (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id whlNHstJxYjT; Sun, 13 Mar 2011 13:05:08 +0100 (CET) Received: by megatron.madpilot.net (Postfix, from userid 1000) id F10EE186C; Sun, 13 Mar 2011 13:05:07 +0100 (CET) Date: Sun, 13 Mar 2011 13:05:07 +0100 From: Guido Falsi To: Doug Barton Message-ID: <20110313120507.GA75195@megatron.madpilot.net> References: <4D7BED01.6000506@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D7BED01.6000506@FreeBSD.org> X-Operating-System: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@FreeBSD.org Subject: Re: Compiling ports in a post-9.0-RELEASE world 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: Sun, 13 Mar 2011 12:21:34 -0000 On Sat, Mar 12, 2011 at 02:00:33PM -0800, Doug Barton wrote: > Howdy, > > As many of you are no doubt already aware, much work has been > undertaken to make clang the default compiler for the src tree > starting with 9.0-RELEASE. It is not 100% certain that this change > will be made, but it's looking more likely every day. > > This raises an interesting question for how to deal with compiling > ports after 9.0 is released. So far there are 2 main ideas for how > to deal with this: > > 1. Fix all ports to compile with both gcc 4.2 (for RELENG_[78]) and clang. This perhaps would be bst, but...(see below) > 2. Adopt an official "ports compiler," which would likely be one of > the gcc versions from the ports tree itself, and update all ports to > work with it. Since most of the software in the ports tree tends to be quite linux or gcc centric I think 2 is the only viable option. BTW I'd suggest a variation to 2. I think some option like "CLANG_SAFE" or "USE_CLANG"(just saying, perhaps a better name can be found) should be added to the infrastructure so, on 9.x and newer systems, maintainer can sign that their port does build using the system compiler. Obviously for ports having dependencies, especially libraries, some extra testing should be performed to make sure depending ports, which could use a different compiler, link correctly. -- Guido Falsi