From owner-freebsd-current@FreeBSD.ORG Tue Sep 11 09:44:08 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 5E4361065670; Tue, 11 Sep 2012 09:44:08 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id ECE0314E266; Tue, 11 Sep 2012 09:44:03 +0000 (UTC) Message-ID: <504F07E3.4010004@FreeBSD.org> Date: Tue, 11 Sep 2012 02:44:03 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Lars Engels References: <20120910211207.GC64920@lor.one-eyed-alien.net> <504ED1FC.3090608@FreeBSD.org> <20120911092750.GF20762@e-new.0x20.net> In-Reply-To: <20120911092750.GF20762@e-new.0x20.net> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: toolchain@FreeBSD.org, Brooks Davis , current@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: Clang as default compiler November 4th X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2012 09:44:08 -0000 On 09/11/2012 02:27 AM, Lars Engels wrote: > On Mon, Sep 10, 2012 at 10:54:04PM -0700, Doug Barton wrote: >> As of last week, 4,680 ports out of 23,857 failed to build with clang on >> 9-amd64. That's almost a 20% failure rate. Until we have better support >> for either building ports with clang, or have better support for the >> idea of a "ports compiler," this change is premature. The ports are an >> important part of the FreeBSD Operating _System_, and pulling the >> trigger on the default compiler before the ports problems are addressed >> robustly seems like a big fat FU. >> >> That said, I agree that this issue needs to be addressed. In fact, 9 >> months before the release of 9.0 I said on the internal committers list >> that there was no point in making a new release until we had thoroughly >> addressed both the default compiler for the base, and resolving the >> "ports compiler" issue. While there has been some movement on the >> former, there has been nothing done on the latter for years now, even >> though everyone agrees that it is an important issue. >> >> I'd like to request that rather than moving the default compiler >> prematurely that you call for volunteers to address the problems with >> the ports. Both the issues of fixing more ports to build correctly with >> clang, and the issue of defining a "ports compiler" version of gcc (and >> appropriate infrastructure) for those that can't. Once those issues are >> resolved there would not be any further obstacles to moving the default. >> Until they are, the change is premature. >> >> Doug > > Doug, as you can already use CLANG instead of GCC now, you will be able > to use GCC instead of CLANG after November 4th. There's lots of things I _can_ do, what we're discussing is what the defaults should be. > At the moment the ports maintainers don't give much about if their ports > build with CLANG or not Do you follow ports development? At all? There have been extensive efforts over the last several years to get more ports compiling with clang. The problem is that things like the c89 issue don't percolate down, and we don't have a concerted effort from all of the relevant parties to improve the issue. Fixing the problem of getting the right eyeballs on the things that need fixing won't be improved by switching the default before they are fixed. In fact, it's likely to make the people who are src-centric now even less likely to help because their work will be "done." > Those who don't run CURRENT won't notice, but those who do will have to > get their butts up and fix the ports, so 10.0 can have 99% of all ports > build with CLANG and even 8.x and 9.x can already profit from having the > broken ports fixed now. Yeah, and I'm going to get a pony out of this deal, right? :) You completely misunderstand the nature of the problem, therefore your proposed solution isn't going to solve it. Doug