Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2012 09:06:06 +0000
From:      krad <kraduk@gmail.com>
To:        nightrecon@hotmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can clang compile RELENG_9?
Message-ID:  <CALfReyfpxL0_w3QW94=tV99dET3qcVBctG-ox-UjNY6Nf3qy2g@mail.gmail.com>
In-Reply-To: <jh6ner$cir$1@dough.gmane.org>
References:  <1328995995.65205.1.camel@btw.pki2.com> <jh6ner$cir$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11 February 2012 21:45, Michael Powell <nightrecon@hotmail.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReyfpxL0_w3QW94=tV99dET3qcVBctG-ox-UjNY6Nf3qy2g>