From owner-freebsd-current@FreeBSD.ORG Sat Apr 21 23:18:52 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1815D106566C for ; Sat, 21 Apr 2012 23:18:52 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id C83EF8FC08 for ; Sat, 21 Apr 2012 23:18:51 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:bc21:4655:90e2:3182] (unknown [IPv6:2001:7b8:3a7:0:bc21:4655:90e2:3182]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1A0A75C37; Sun, 22 Apr 2012 01:18:51 +0200 (CEST) Message-ID: <4F93405D.7060305@FreeBSD.org> Date: Sun, 22 Apr 2012 01:18:53 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120410 Thunderbird/12.0 MIME-Version: 1.0 To: Steve Kargl References: <20120420004011.GA71597@troutmask.apl.washington.edu> In-Reply-To: <20120420004011.GA71597@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 21 Apr 2012 23:18:52 -0000 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".