Can't buildworld since Clang update

Renato Botelho rbgarga at gmail.com
Wed Feb 23 13:31:56 UTC 2011


On Wed, Feb 23, 2011 at 10:22 AM, datastream datastream.freecity
<datastream.freecity at gmail.com> wrote:
> I deleted all files in /usr/src and /usr/obj. it changes nothing, i still
> get same error.
>
> In /etc/make.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=
> STRIP=
> CFLAGS+=-fno-omit-frame-pointer

I'm not having problems here, my /etc/make.conf contains:

.if ${.CURDIR:N*usr/src*}==""
. if !defined(CC) || ${CC} == "cc"
CC=clang
. endif
. if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
. endif
# Don't die on warnings
NO_WERROR=
WERROR=
.endif

And my /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=

It's building fine with clang.
-- 
Renato Botelho


More information about the freebsd-current mailing list