From owner-freebsd-current@FreeBSD.ORG Sat Sep 25 19:45:54 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2312E106564A; Sat, 25 Sep 2010 19:45:54 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id B555D8FC0A; Sat, 25 Sep 2010 19:45:53 +0000 (UTC) Received: by qyk34 with SMTP id 34so162083qyk.13 for ; Sat, 25 Sep 2010 12:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=zii3RPOwbIFX0ZBlxq0DO44PrE7v3jK2QDFH8nj0fic=; b=UhyYf3CiGZu04kI5JRqJepSdHdrcQVMUzAS/j+fwsMrFL7TNvVUWwzdsk5h7z+hpBv yoxLa+DhE3Bj9t8LpMHM6EycbhAd/4McOwyRbcw5IHkkpNtrJIQJIczF1+pj9Sq+7wf2 tNalYTIg4V7caXMcg08LXzizTuJ5sOCaAewzs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XNOVLYrAUfjiAWgIRS0MNz7pJWCGiVgI92iC9y9Q4vxw6ev9i/h9zI/HKWIiQbVo5F oE2jg0NEWt+ASbP7F2koI9c98/Q9391Uo89ppqLRZfX4UizTYJAGqsVQgVAXAjx2lxTL E1F1mGsiqVoX1vxXsQpIdmWuK9O9EWJ+XGg54= MIME-Version: 1.0 Received: by 10.220.124.36 with SMTP id s36mr509103vcr.269.1285442170854; Sat, 25 Sep 2010 12:16:10 -0700 (PDT) Received: by 10.220.202.11 with HTTP; Sat, 25 Sep 2010 12:16:10 -0700 (PDT) In-Reply-To: <4C99A53E.7060707@FreeBSD.org> References: <4C99A53E.7060707@FreeBSD.org> Date: Sat, 25 Sep 2010 19:16:10 +0000 Message-ID: From: Paul B Mahol To: Dimitry Andric Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: Clang now builds world and kernel, on i386 and amd64 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: Sat, 25 Sep 2010 19:45:54 -0000 On 9/22/10, Dimitry Andric wrote: > Hi, > > As of r212979, you should now be able to build world and kernel on i386 > and amd64 with clang, without any additional patches! > > To do so, make sure you have updated your installed world to at least > r212904 (which has the most recently imported clang/llvm snapshot), and > put the following in /etc/src.conf: > > .if !defined(CC) || ${CC} == "cc" > CC=clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=clang++ > .endif > # Don't die on warnings > NO_WERROR= > WERROR= > > Both world and kernel can also be installed, and should run properly, > but please make sure you have a way to revert if anything unexpected > happens. :) Alternatively, just install into a chroot to try it out > from there. > > Some additional information can be found on this wiki page: > > http://wiki.freebsd.org/BuildingFreeBSDWithClang > > Thanks to all the people that made this possible, especially Roman > Divacky, Ed Schouten, Rui Paulo, and of course the clang/llvm > developers. When to expect to get rid of GNU as and other binutils tools?