Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2012 16:45:07 -0500
From:      Michael Powell <nightrecon@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Can clang compile RELENG_9?
Message-ID:  <jh6ner$cir$1@dough.gmane.org>
References:  <1328995995.65205.1.camel@btw.pki2.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?jh6ner$cir$1>