Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2012 11:16:56 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Alexander Panyushkin <vsityz@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: world not build
Message-ID:  <4FD5B788.1090700@FreeBSD.org>
In-Reply-To: <4FD5AE32.50601@gmail.com>
References:  <4FD5AE32.50601@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-06-11 10:37, Alexander Panyushkin wrote:
...
> make.conf
> =========
> CPUTYPE?=nocona
> KERNCONF=Kernel
> MAKE_JOBS_NUMBER=4
> 
> .if ${.CURDIR:M/usr/src} || ${.CURDIR:M/usr/src/*} || 
> ${.CURDIR:M/usr/obj} || ${.CURDIR:M/usr/obj/*} || ${.CURDIR:M/sys} || 
> ${.CURDIR:M/sys/*}
> CFLAGS+= -D_FORTIFY_SOURCE=2
> .if !defined(CPP) || ${CPP} == "cpp"
> CPP=clang-cpp
> .endif
> .endif
> 
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
...
> ===> lib/libc++ (depend)
> rm -f .depend
> mkdep -f .depend -a -D_FORTIFY_SOURCE=2 
> -I/usr/src/lib/libc++/../../contrib/libc++/include 
> -I/usr/src/lib/libc++/../../contrib/libcxxrt -DLIBCXXRT 

Something in your make.conf is not working properly, causing mkdep to
run with gcc instead of clang.  I suggest removing the .if statements,
and simply using:

CC=clang
CXX=clang++
CPP=clang-cpp



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD5B788.1090700>