From owner-freebsd-current@FreeBSD.ORG Mon Apr 16 01:03:53 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 89BED1065688; Mon, 16 Apr 2012 01:03:53 +0000 (UTC) (envelope-from behrnetworks@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2FD318FC14; Mon, 16 Apr 2012 01:03:53 +0000 (UTC) Received: by obqv19 with SMTP id v19so5634742obq.13 for ; Sun, 15 Apr 2012 18:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=KgUrq+vsHus0Bzr+JLhEXcTPwO3g3xh5s6+eqymMwFw=; b=G7obgarBfHRaAU3FjKowZAmcW47yJhTqAOWMTx8Ein+DSU2v2fMKpUbYz24f2lMfz6 +kJIKxTM4wpvvHSVMaZPUmCCluvR4ZR3UWPwOe8nn8SuDvcFtcE63R8f7SenS0XB7k9u b3xhJUtaHpwCyyxOpcX4YiXCVCEh8SzRXMRrzleM9yETwtzspp96Xa6taWrpYOMwNy1h 57+TLRAacFyR3HJEunm5qlp4KEsgAOyhmbq2mTBamQeDsfZ11wRrPtU/PjrbvIRAL+mp 0uTzR343Eq8sXMk7IP+9HYy0jy8vPvyqrr+WTQ3kXaXl5IffKwq5I88yF/EcSuMRHTeh t1ow== MIME-Version: 1.0 Received: by 10.182.119.101 with SMTP id kt5mr13375062obb.70.1334538227198; Sun, 15 Apr 2012 18:03:47 -0700 (PDT) Received: by 10.182.64.101 with HTTP; Sun, 15 Apr 2012 18:03:47 -0700 (PDT) In-Reply-To: <4F523C1A.4060008@zedat.fu-berlin.de> References: <4F520523.90406@zedat.fu-berlin.de> <4F52286E.4030608@FreeBSD.org> <4F523C1A.4060008@zedat.fu-berlin.de> Date: Sun, 15 Apr 2012 21:03:47 -0400 Message-ID: From: Chris To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Chris Rees , Current FreeBSD 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 01:03:53 -0000 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 On Sat, Mar 3, 2012 at 10:43 AM, O. Hartmann wrote: > On 03/03/12 15:19, Florian Smeets wrote: >> On 03.03.12 14:24, Chris Rees wrote: >>> On 3 March 2012 11:48, O. Hartmann wrote: >>>> On one of my FreeBSD 10.0-CURRENT boxes I receive this morning this >>>> error message as shown below. >>>> >>>> I need to add, that I compiled the shown nvidia-driver hours ago on al= l >>>> FreeBSD 9.0-STABLE boxes with the same settings and I compiled the >>>> driver just two days before the same way I tried it this morning. What= 's >>>> wrong? >>>> >>>> Some unexpected breakage? Then this is my shout to the community. >>>> >>>> Message below. >>>> >>>> Regards and thanks in advance, >>>> Oliver >>>> >>>> =3D=3D=3D> =A0Vulnerability check disabled, database not found >>>> =3D=3D=3D> =A0License NVIDIA accepted by the user >>>> =3D=3D=3D> =A0Found saved configuration for nvidia-driver-295.20 >>>> =3D=3D=3D> =A0Extracting for nvidia-driver-295.20 >>>> =3D> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-295.20.tar.gz. >>>> =3D=3D=3D> =A0Patching for nvidia-driver-295.20 >>>> =3D=3D=3D> =A0 nvidia-driver-295.20 depends on file: >>>> /usr/local/libdata/pkgconfig/xorg-server.pc - found >>>> =3D=3D=3D> =A0 nvidia-driver-295.20 depends on shared library: GL.1 - = found >>>> =3D=3D=3D> =A0Configuring for nvidia-driver-295.20 >>>> =3D=3D=3D> =A0Building for nvidia-driver-295.20 >>>> =3D=3D=3D> src (all) >>>> "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC= } >>>> =3D=3D "no" && ${CC:T:Mclang} !=3D "clang") >>>> "/sys/conf/kmod.mk", line 115: if-less endif >>>> "/sys/conf/kern.mk", line 18: Malformed conditional (${MK_CLANG_IS_CC} >>>> !=3D "no" || ${CC:T:Mclang} =3D=3D "clang") >>>> "/sys/conf/kern.mk", line 31: if-less endif >>>> "/sys/conf/kern.mk", line 101: Malformed conditional (${MK_CLANG_IS_CC= } >>>> =3D=3D "no" && ${CC:T:Mclang} !=3D "clang") >>>> "/sys/conf/kern.mk", line 109: if-less endif >>>> make: fatal errors encountered -- cannot continue >>>> *** [all] Error code 1 >>>> >>> >>> Please post your make.conf and src.conf. >>> >> >> No need, a buildworld / installworld cycle will fix it. A make install >> in src/share/mk *could* also be enough, but i haven't tested it. >> >> Florian > > > The last two attempts of "make -jX buildworld" (X=3D2) or just "make > buildworld" failed. > > But issuing make install in /usr/src/share/mk made the failure go away. > > Thanks for the help. > > Where can I read more about how to fine tune /etc/src.conf and > /etc/make.conf with new knobs? > > My /etc/src.conf looks like this (on FBSD 9 and 10): > > WITH_CLANG=3D =A0 =A0 =A0 =A0 =A0 =A0 YES > WITH_CLANG_EXTRAS=3D =A0 =A0 =A0YES > # > #CC=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0clang > #CXX=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 clang++ > #CPP=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 clang-cpp > # > #CFLAGS.clang+=3D =A0 =A0 =A0 =A0 -O3 -pipe -fno-strict-aliasing > #COPTFLAGS.clang+=3D =A0 =A0 =A0-O3 -pipe > #CFLAGS.cc+=3D =A0 =A0 =A0 =A0 =A0 =A0-O2 -pipe -fno-strict-aliasing > #COPTFLAGS.cc+=3D =A0 =A0 =A0 =A0 -O2 -pipe > # > WITH_BIND_LIBS=3D =A0 =A0 =A0 =A0 YES > WITH_BIND_SIGCHASE=3D =A0 =A0 YES > WITH_BIND_LARGE_FILE=3D =A0 YES > # > WITH_IDEA=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0YES > WITH_HESIOD=3D =A0 =A0 =A0 =A0 =A0 =A0YES > # > #WITH_ICONV=3D =A0 =A0 =A0 =A0 =A0 =A0YES > #WITH_BSD_GREP=3D =A0 =A0 =A0 =A0 YES > # > WITH_LIBCPLUSPLUS=3D =A0 =A0 =A0YES > # > #WITH_OFED=3D =A0 =A0 =A0 =A0 =A0 =A0 YES > > The CLANG relevant portion of /etc/make.conf looks like this: > > # BUGFIX FreeBSD 10.0 > #WITH_FBSD10_FIX=3D =A0 =A0 =A0 YES > > # > #DISABLE_MAKE_JOBS=3D =A0 =A0 YES > > # Set to disable assertions and statistics gathering in malloc(3) > MALLOC_PRODUCTION=3D =A0 =A0 =A0YES > > # Set this to use svn(1) to update your src tree with make update > SVN_UPDATE=3D =A0 =A0 =A0 =A0 =A0 =A0 YES > > # Program to use > SVN=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0/usr/local/bin/svn > SVNFLAGS=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 -r HEAD > > # > #PORTS_MODULES=3D =A0 =A0 =A0 =A0 "x11/nvidia-driver" > > > ### > ### =A0 =A0 CLANG > ### > > .if !defined(NO_CLANG) > #.if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} || ${.CURDIR:M/sys*} > .if !defined(CC) || ${CC} =3D=3D "cc" > CC=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 clang > .endif > .if !defined(CXX) || ${CXX} =3D=3D "c++" > CXX=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0clang++ > .endif > .if !defined(CPP) || ${CPP} =3D=3D "cpp" > CPP=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0clang-cpp > .endif > ## Don't die on warnings > NO_WERROR=3D > WERROR=3D > ### Don't forget this when using Jails! > #NO_FSCHG=3D > # > CFLAGS+=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-pipe -O3 -fno-strict-aliasing > COPTFLAGS+=3D =A0 =A0 =A0 =A0 =A0 =A0 -pipe -O3 > #.endif > .endif > > > > FORCE_PKG_REGISTER=3D =A0 =A0 YES > # OpenLDAP > #WANT_OPENLDAP_VER=3D =A0 =A0 24 > WANT_OPENLDAP_SASL=3D =A0 =A0 yes > > # BDB Version > WITH_BDB_VER=3D =A0 =A0 =A0 =A0 =A0 5 > WITH_BDB_HIGHEST=3D =A0 =A0 =A0 YES > > # Rubin 1,9 wird Kaiser > RUBY_DEFAULT_VER=3D =A0 =A0 =A0 1.9 > > # What PostgreSQL port should be set default > WANT_PGSQL_VER=3D =A0 =A0 =A0 =A0 91 > > # > #FORCE_MAKE_JOBS=3D =A0 =A0 =A0 YES > > # Wir wollen SAMBA36 statt des senilen SAMABA35 > SAMBA_PORT=3D =A0 =A0 =A0 =A0 =A0 =A0 samba36 > > # KdF an der Optimierung > WITH_OPTIMIZED_FLAGS=3D =A0 YES > > # Disables xf86-video-noveau driver and makes use of newer > libdrm/libGLUT possible > WITHOUT_NOUVEAU=3D =A0 =A0 =A0 =A0YES > > # New Xorg and Mesa > WITH_NEW_XORG=3D =A0 =A0 =A0 =A0 =A0YES > > # nvidia-driver > .if ${.CURDIR:M/usr/ports/x11/nvidia-driver} > DISTVERSION=3D =A0 =A0 =A0 =A0 =A0 =A0295.20 > .endif > > .if ${.CURDIR:M/usr/ports/x11/nvidia-xsetting*} > DISTVERSION=3D =A0 =A0 =A0 =A0 =A0 =A0295.20 > .endif > > .if ${.CURDIR:M/usr/ports/x11/nvidia-config*} > DISTVERSION=3D =A0 =A0 =A0 =A0 =A0 =A0295.20 > .endif > > # PostgreSQL Server > .if ${.CURDIR:M/usr/ports/databases/postgresql[89]*} > BUILD_OPTIMIZED=3D =A0 =A0 =A0 =A0YES > WITH_OPENSSL=3D =A0 =A0 =A0 =A0 =A0 YES > WITH_PAM=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 YES > WITH_LDAP=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0YES > .endif > > > # LibreOffice > .if ${.CURDIR:M/usr/ports/editors/libreoffice*} > WITH_CUPS=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0YES > WITH_JAVA=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0YES > LOCALIZED_LANG=3D =A0 =A0 =A0 =A0 de > .endif > > # Thunderbird > .if ${.CURDIR:M/usr/ports/mail/thunderbird*} > CFLAGS+=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-DLDAP_DEPRECATED > .endif > > # Blender mit GCC 4.6+ bauen > .if ${.CURDIR:M/usr/ports/graphics/blender*} > USE_GCC=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A04.6+ > .endif > > # ImageMagick mit GCC 4.6+ bauen > .if ${.CURDIR:M/usr/ports/graphics/ImageMagick*} > USE_GCC=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A04.6+ > #CC=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0cc > #CXX=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 c++ > #CPP=3D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cpp > .endif > > >