Can clang compile RELENG_9?

Michael Powell nightrecon at hotmail.com
Sat Feb 11 21:44:11 UTC 2012


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





More information about the freebsd-questions mailing list