From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 16:11:42 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 835611065675; Tue, 17 Apr 2012 16:11:41 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 31A028FC18; Tue, 17 Apr 2012 16:11:41 +0000 (UTC) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id q3HFxXaC076092 ; Tue, 17 Apr 2012 17:59:46 +0200 (CEST) X-Ids: 165 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id q3HFxQwq044170; Tue, 17 Apr 2012 17:59:26 +0200 (CEST) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id q3HFxQgf044167; Tue, 17 Apr 2012 17:59:26 +0200 (CEST) (envelope-from arno) To: Dimitry Andric From: "Arno J. Klaassen" 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> <4F8D3565.2020803@FreeBSD.org> Date: Tue, 17 Apr 2012 17:59:25 +0200 In-Reply-To: <4F8D3565.2020803@FreeBSD.org> (Dimitry Andric's message of "Tue\, 17 Apr 2012 11\:18\:29 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at jchkmail.jussieu.fr with ID 4F8D9365.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F8D9365.000/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ Cc: Chris Rees , Chris , Current FreeBSD , "O. Hartmann" , 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 16:11:42 -0000 Hello, [ /me not sure -current is the right group for this thread ] Chris writes: > Hello, > > I recently updated my system from 8.2-STABLE to 9.0-STABLE and I'm > seeing a similar error when trying to build the VirtualBox kernel > module: > > *** Building 'vboxdrv' module *** > "/usr/share/mk/bsd.own.mk", line 476: MK_CLANG_IS_CC can't be set by a > user. > *** Error code 1 > > I tried the tips from all the previous posters with no luck. Any > suggestions would greatly be appreciated! > > Chris I have the same problem as Chris on a 9-STABLE box. Dimitry Andric writes: > 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. I verified and re-verfied : kernel and world perfectly in sync; /usr/src is a symlink but /sys points to the right place and (before patch) /usr/share/mk/bsd.own.mk and /usr/src/share/mk/bsd.own.mk are indentical. Still I have to apply something like the following patch to get VirtualBox kernel module compiled (no idea who/where MK_CLANG_IS_CC gets set to "no", AFAIK not by me (I don't use src.conf and nothing about CLANG in make.conf). FYI, best regards, Arno ####### Index: ./share/mk/bsd.own.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.own.mk,v retrieving revision 1.107.2.5 diff -u -r1.107.2.5 bsd.own.mk --- ./share/mk/bsd.own.mk 17 Mar 2012 22:29:05 -0000 1.107.2.5 +++ ./share/mk/bsd.own.mk 17 Apr 2012 15:45:00 -0000 @@ -472,8 +472,8 @@ .if defined(WITH_${var}) && defined(WITHOUT_${var}) .error WITH_${var} and WITHOUT_${var} can't both be set. .endif -.if defined(MK_${var}) -.error MK_${var} can't be set by a user. +.if defined(MK_${var}) && ${MK_${var}} != "no" +.error MK_${var} (set to : ${MK_${var}} ) can't be set to no_default by a user. .endif .if defined(WITH_${var}) MK_${var}:= yes