From owner-freebsd-questions@FreeBSD.ORG Tue Feb 14 09:06:07 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1778106566B for ; Tue, 14 Feb 2012 09:06:07 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0F58FC22 for ; Tue, 14 Feb 2012 09:06:07 +0000 (UTC) Received: by ggnk5 with SMTP id k5so3572359ggn.13 for ; Tue, 14 Feb 2012 01:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=epvBNJwt72jfydTibgXFR2F1DguwFpzKLbIP2MW9oZE=; b=Upmva9CED7eqvs+LjUxv5/7CPYtyCBFe3HK+i1oINGAfCzgC3xptD6wcNcYM1iR/1V z9hMskZ5X7QUESk/R6cpc7zvYjx1aXZrwkCbZQ8mItMpTmaPZ69kAskU8cf7l3KwAYib /6HT3cD7vq8K2XHGalzYzPMdBN/mMXZxWeyYg= MIME-Version: 1.0 Received: by 10.101.141.1 with SMTP id t1mr7639810ann.44.1329210366836; Tue, 14 Feb 2012 01:06:06 -0800 (PST) Received: by 10.236.111.20 with HTTP; Tue, 14 Feb 2012 01:06:06 -0800 (PST) In-Reply-To: References: <1328995995.65205.1.camel@btw.pki2.com> Date: Tue, 14 Feb 2012 09:06:06 +0000 Message-ID: From: krad To: nightrecon@hotmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Can clang compile RELENG_9? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 09:06:08 -0000 On 11 February 2012 21:45, Michael Powell wrote: > Dennis Glatting wrote: > > > I get errors when trying to compile RELENG_9 with clang. Is clag suppose > > to work when it comes to compiling the OS or am I missing something: > [snip] > > I can't speak to RELENG_9, but I have successfully rebuilt the RELEASE with > CLANG (make/install world kernel). My /etc/make.conf as per instructions I > found on the wiki: > > .if !defined(CC) || ${CC} == "cc" > CC=clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=clang++ > .endif > .if !defined(CPP) || ${CPP} == "cpp" > CPP=clang-cpp > .endif > # Don't die on warnings > NO_WERROR= > WERROR= > # Don't forget this when using Jails! > NO_FSCHG= > > This was with amd64, have not tried any 32 bit. With custom kernel as well. > > -Mike > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > I've been building 9-current and 9-stable for a year or so with few problems. It is a supported configuration after all. It should also create faster binaries as well as gcc 4.3 is quite old now and clang generally stacks up very well with the later gcc versions in terms of binary performance.