From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 09:18:32 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 854F51065670; Tue, 17 Apr 2012 09:18:32 +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 3A6EE8FC17; Tue, 17 Apr 2012 09:18:32 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:920:4d88:e4b9:4d05] (unknown [IPv6:2001:7b8:3a7:0:920:4d88:e4b9:4d05]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 66EA05C37; Tue, 17 Apr 2012 11:18:31 +0200 (CEST) Message-ID: <4F8D3565.2020803@FreeBSD.org> Date: Tue, 17 Apr 2012 11:18:29 +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: Chris , Chris Rees , Current FreeBSD , "O. Hartmann" References: <4F520523.90406@zedat.fu-berlin.de> <4F52286E.4030608@FreeBSD.org> <4F523C1A.4060008@zedat.fu-berlin.de> <4F8BBFF3.50205@FreeBSD.org> <20120416230857.GA26957@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20120416230857.GA26957@mech-cluster241.men.bris.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Doug Barton Subject: Re: "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC} 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: Tue, 17 Apr 2012 09:18:32 -0000 On 2012-04-17 01:08, Anton Shterenlikht wrote: ... > Just to say that I stumbled upon this issue as well: > > http://lists.freebsd.org/pipermail/freebsd-ports/2012-April/074409.html > > Subject: net/bwi-firmware-kmod "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC} == "no"&& ${CC:T:Mclang} != "clang") The root cause is still that your kernel sources (in /sys) do not match your installed world. The kernel module build process uses bsd.own.mk from /usr/share/mk, which should define MK_CLANG_IS_CC. If it doesn't, but your kernel source references it, there is a mismatch. In some cases, you could fix it by setting MAKESYSPATH to the share/mk dir under your source tree. There is still no guarantee your module will build or load correctly. As Doug Barton said in reply to r232473: "Building ports where the sources and the installed kernel differ is not a supported configuration. The fact that it happens to work most of the time is a bonus." That said, i think it may be time to bow to the pressure, and just put a fixup for this issue in kmod.mk, and the other .mk files, like I initially did in r232473, but with a BIG FAT WARNING printed, so you at least know you are attempting to shoot your extremities. :)