From owner-freebsd-current@FreeBSD.ORG Mon Apr 16 23:08:59 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 8F208106566C; Mon, 16 Apr 2012 23:08:59 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 3A1A78FC0A; Mon, 16 Apr 2012 23:08:59 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1SJv2Y-0005Df-9L; Tue, 17 Apr 2012 00:08:58 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SJv2Y-0001xz-0s; Tue, 17 Apr 2012 00:08:58 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q3GN8vsO026972; Tue, 17 Apr 2012 00:08:57 +0100 (BST) (envelope-from mexas@bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q3GN8vH7026971; Tue, 17 Apr 2012 00:08:57 +0100 (BST) (envelope-from mexas@bris.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bris.ac.uk using -f Date: Tue, 17 Apr 2012 00:08:57 +0100 From: Anton Shterenlikht To: Chris Message-ID: <20120416230857.GA26957@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Chris , Dimitry Andric , 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Chris Rees , "O. Hartmann" , Current FreeBSD , Dimitry Andric 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: Mon, 16 Apr 2012 23:08:59 -0000 On Mon, Apr 16, 2012 at 06:41:44PM -0400, Chris wrote: > On Mon, Apr 16, 2012 at 2:45 AM, Dimitry Andric wrote: > > On 2012-04-16 03:03, Chris wrote: > >> > >> 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! > > > > > > It looks like this was caused by Maxim Sobolev's workaround here: > > > >  http://lists.freebsd.org/pipermail/cvs-ports/2012-April/240000.html > > > > He attempts to set MK_ variables by hand, but that is obviously not > > allowed. > > > > As has been said before, it is indeed possible to put a workaround for > > compiling with the wrong source directory in bsd.own.mk, but that would > > really help people to shoot themselves in the foot. > > > > It looks like the virtualbox-ose-kmod port sets a SRC_BASE variable to > > the appropriate source directory, but it should probably also set the > > MAKESYSPATH environment variable to ${SRC_BASE}/share/mk before invoking > > make. > > > > Note this is still not 100% safe, as you would really need to build > > using a toolchain corresponding to your kernel sources, but it's better > > than nothing. > > As a quick-n-dirty workaround, I deleted the three patch files > mentioned in Maxim Sobolev's posting and the port compiles with no > problems. It may be that the version of bsd.own.mk that I have fixes > any compilation issues with clang. > > Thanks for the help! > > Chris 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") -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423