From owner-freebsd-current@FreeBSD.ORG Wed Sep 22 11:12:27 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 3A63C1065672; Wed, 22 Sep 2010 11:12:27 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9CEA78FC08; Wed, 22 Sep 2010 11:12:26 +0000 (UTC) Received: by wwc33 with SMTP id 33so404157wwc.31 for ; Wed, 22 Sep 2010 04:12:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=pwXjLYkCbuJ1uionuyVuyqb9MmnZLu0WJkfxAGSu1AI=; b=L2zNPlrdvU4pYVBusJ1tLve76CvD2TB6Jue2zOWrKTtsEml7mr8DXlGWsFSa9TJE69 IPbnvRxb68F+PDbaN+krxlB75Q2AXKsVyktJuU+RkzKVoMbV2pKS96QWRDFP0Dg9snpt IQHJjeqdmd7SwNe90r+OQOmQE7pFX03t/dr/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=nz/ouQG3K96MG8Zr165SDCyQSt8kRL/Q9D3DYwLI5ziZLWfaRfXBDv1GRFfljDmcB7 QO6SXUGpvqV9wuO0x/2xDt2LXBRlEW+k5v3smhUfdQzQHQLueC+jIVoWYO4Anf2dGuJU ENebwTtt6ViFVCIY5TJ49N02Uv3a0Sq5UgJG0= MIME-Version: 1.0 Received: by 10.227.145.20 with SMTP id b20mr4489063wbv.28.1285152161360; Wed, 22 Sep 2010 03:42:41 -0700 (PDT) Sender: r.c.ladan@gmail.com Received: by 10.227.157.145 with HTTP; Wed, 22 Sep 2010 03:42:41 -0700 (PDT) In-Reply-To: <4C99A53E.7060707@FreeBSD.org> References: <4C99A53E.7060707@FreeBSD.org> Date: Wed, 22 Sep 2010 12:42:41 +0200 X-Google-Sender-Auth: HlOVsr1CYwE6r_vLJq2ZggEmCmA Message-ID: From: =?ISO-8859-1?Q?Ren=E9_Ladan?= 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: Wed, 22 Sep 2010 11:12:27 -0000 2010/9/22 Dimitry Andric : > 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= > I've uploaded a typescript of "make buildworld && make buildkernel" of an 9.0-amd64 system running r212906 and building r212994 with the clang-in-HEAD: ftp://rene-ladan.nl/pub/freebsd/bwk-clang-native.bz2 SIZE = 933354 bytes (uncompressed 36308187 bytes) SHA256 = f97be8fb0d310ceb2e16dfc3919aeb68b57312431d7e879b6cce84b1cf8ba851 Now for the install phase, after some backups. Rene