Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2012 21:03:47 -0400
From:      Chris <behrnetworks@gmail.com>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        Chris Rees <crees@freebsd.org>, Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC}
Message-ID:  <CAFYLaXPveMM0RCoHSLpG8i2-i6cStWSPrf4FkzZu63Eg--UE%2Bw@mail.gmail.com>
In-Reply-To: <4F523C1A.4060008@zedat.fu-berlin.de>
References:  <4F520523.90406@zedat.fu-berlin.de> <CADLo838ZKXXS4mVcjG3cnRp=aQdx5Cpas6DLiSsGQO1acqHnwQ@mail.gmail.com> <4F52286E.4030608@FreeBSD.org> <4F523C1A.4060008@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<ohartman@zedat.fu-berlin.de> 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 <ohartman@zedat.fu-berlin.de> 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
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYLaXPveMM0RCoHSLpG8i2-i6cStWSPrf4FkzZu63Eg--UE%2Bw>