From owner-freebsd-current@FreeBSD.ORG Sun Apr 22 11:54:47 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 951891065686; Sun, 22 Apr 2012 11:54:47 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 53BE78FC15; Sun, 22 Apr 2012 11:54:47 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q3MBsfFD083806; Sun, 22 Apr 2012 04:54:41 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q3MBsf23083805; Sun, 22 Apr 2012 04:54:41 -0700 (PDT) (envelope-from sgk) Date: Sun, 22 Apr 2012 04:54:41 -0700 From: Steve Kargl To: Dimitry Andric Message-ID: <20120422115441.GA83791@troutmask.apl.washington.edu> References: <20120420004011.GA71597@troutmask.apl.washington.edu> <4F93405D.7060305@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F93405D.7060305@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@FreeBSD.org Subject: Re: clang and 'config KERNFILE' error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2012 11:54:47 -0000 On Sun, Apr 22, 2012 at 01:18:53AM +0200, Dimitry Andric wrote: > On 2012-04-20 02:40, Steve Kargl wrote: > >laptop:root[227] uname -a > >FreeBSD laptop 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r230975M: Sat Feb 4 > >09:03:27 PST 2012 root@laptop:/usr/obj/usr/src/sys/MOBILE i386 > > > > > >laptop:root[224] config MOBILE > >Kernel build directory is ../compile/MOBILE > >Don't forget to do ``make cleandepend&& make depend'' > >laptop:root[225] cd ../compile/MOBILE > >laptop:root[226] make cleandepend&& make depend > >"../../../conf/kern.pre.mk", line 87: Malformed conditional > >(${MK_CLANG_IS_CC} == "no"&& ${CC:T:Mclang} != "clang") > >"../../../conf/kern.pre.mk", line 98: if-less endif > >"../../../conf/kern.pre.mk", line 104: Malformed conditional > >(${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang") > >"../../../conf/kern.pre.mk", line 106: if-less endif > >"../../../conf/kern.mk", line 18: Malformed conditional (${MK_CLANG_IS_CC} > >!= "no" || ${CC:T:Mclang} == "clang") > >"../../../conf/kern.mk", line 31: if-less endif > >"../../../conf/kern.mk", line 53: Malformed conditional (${MK_CLANG_IS_CC} > >== "no"&& ${CC:T:Mclang} != "clang") > >"../../../conf/kern.mk", line 60: if-less endif > >make: fatal errors encountered -- cannot continue > > Hi Steve, > > This means your /usr/share/mk files are out of sync with your source > tree. When you build kernels in the old way, this will not work > properly. I guess the simplest solution is to set MAKESYSPATH to > /usr/src/share/mk, or just use "make buildkernel KERNCONF=MOBILE". Thanks for the explanation. I normally keep my src tree and installed system in sync. It appears that I may have done an 'svn update' without re-installing the system. One reason that I was baffled by the above error is that I have WITHOUT_CLANG in my /etc/src.conf file. I was under the impression that this would disable references to anything associated with clang. -- Steve