| From | Sent On | Attachments |
|---|---|---|
| O. Hartmann | Mar 3, 2012 3:48 am | |
| Chris Rees | Mar 3, 2012 5:23 am | |
| Dimitry Andric | Mar 3, 2012 6:18 am | |
| Florian Smeets | Mar 3, 2012 6:19 am | |
| Dimitry Andric | Mar 3, 2012 6:25 am | |
| O. Hartmann | Mar 3, 2012 7:42 am | |
| Chris | Apr 15, 2012 6:03 pm | |
| Dimitry Andric | Apr 15, 2012 11:44 pm | |
| Chris | Apr 16, 2012 3:41 pm | |
| Anton Shterenlikht | Apr 16, 2012 4:08 pm | |
| Dimitry Andric | Apr 17, 2012 2:18 am | |
| Anton Shterenlikht | Apr 17, 2012 2:36 am | |
| Dimitry Andric | Apr 17, 2012 2:49 am | |
| Anton Shterenlikht | Apr 17, 2012 3:52 am | |
| Arno J. Klaassen | Apr 17, 2012 8:59 am | |
| Mark Linimon | Apr 17, 2012 9:03 am | |
| Kevin Oberman | Apr 17, 2012 12:27 pm | |
| Dimitry Andric | Apr 17, 2012 1:52 pm |
| Subject: | Re: "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC} | |
|---|---|---|
| From: | Chris (behr...@gmail.com) | |
| Date: | Apr 15, 2012 6:03:24 pm | |
| List: | org.freebsd.freebsd-current | |
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 <ohar...@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 <ohar...@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 all 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
===> Vulnerability check disabled, database not found ===> License NVIDIA accepted by the user ===> Found saved configuration for nvidia-driver-295.20 ===> Extracting for nvidia-driver-295.20 => SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-295.20.tar.gz. ===> Patching for nvidia-driver-295.20 ===> nvidia-driver-295.20 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found ===> nvidia-driver-295.20 depends on shared library: GL.1 - found ===> Configuring for nvidia-driver-295.20 ===> Building for nvidia-driver-295.20 ===> src (all) "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "clang") "/sys/conf/kmod.mk", line 115: if-less endif "/sys/conf/kern.mk", line 18: Malformed conditional (${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang") "/sys/conf/kern.mk", line 31: if-less endif "/sys/conf/kern.mk", line 101: Malformed conditional (${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "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=2) 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= YES WITH_CLANG_EXTRAS= YES # #CC= clang #CXX= clang++ #CPP= clang-cpp # #CFLAGS.clang+= -O3 -pipe -fno-strict-aliasing #COPTFLAGS.clang+= -O3 -pipe #CFLAGS.cc+= -O2 -pipe -fno-strict-aliasing #COPTFLAGS.cc+= -O2 -pipe # WITH_BIND_LIBS= YES WITH_BIND_SIGCHASE= YES WITH_BIND_LARGE_FILE= YES # WITH_IDEA= YES WITH_HESIOD= YES # #WITH_ICONV= YES #WITH_BSD_GREP= YES # WITH_LIBCPLUSPLUS= YES # #WITH_OFED= YES
The CLANG relevant portion of /etc/make.conf looks like this:
# BUGFIX FreeBSD 10.0 #WITH_FBSD10_FIX= YES
# #DISABLE_MAKE_JOBS= YES
# Set to disable assertions and statistics gathering in malloc(3) MALLOC_PRODUCTION= YES
# Set this to use svn(1) to update your src tree with make update SVN_UPDATE= YES
# Program to use SVN= /usr/local/bin/svn SVNFLAGS= -r HEAD
# #PORTS_MODULES= "x11/nvidia-driver"
### ### CLANG ###
.if !defined(NO_CLANG) #.if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} || ${.CURDIR:M/sys*} .if !defined(CC) || ${CC} == "cc" CC= clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX= clang++ .endif .if !defined(CPP) || ${CPP} == "cpp" CPP= clang-cpp .endif ## Don't die on warnings NO_WERROR= WERROR= ### Don't forget this when using Jails! #NO_FSCHG= # CFLAGS+= -pipe -O3 -fno-strict-aliasing COPTFLAGS+= -pipe -O3 #.endif .endif
FORCE_PKG_REGISTER= YES # OpenLDAP #WANT_OPENLDAP_VER= 24 WANT_OPENLDAP_SASL= yes
# BDB Version WITH_BDB_VER= 5 WITH_BDB_HIGHEST= YES
# Rubin 1,9 wird Kaiser RUBY_DEFAULT_VER= 1.9
# What PostgreSQL port should be set default WANT_PGSQL_VER= 91
# #FORCE_MAKE_JOBS= YES
# Wir wollen SAMBA36 statt des senilen SAMABA35 SAMBA_PORT= samba36
# KdF an der Optimierung WITH_OPTIMIZED_FLAGS= YES
# Disables xf86-video-noveau driver and makes use of newer libdrm/libGLUT possible WITHOUT_NOUVEAU= YES
# New Xorg and Mesa WITH_NEW_XORG= YES
# nvidia-driver .if ${.CURDIR:M/usr/ports/x11/nvidia-driver} DISTVERSION= 295.20 .endif
.if ${.CURDIR:M/usr/ports/x11/nvidia-xsetting*} DISTVERSION= 295.20 .endif
.if ${.CURDIR:M/usr/ports/x11/nvidia-config*} DISTVERSION= 295.20 .endif
# PostgreSQL Server .if ${.CURDIR:M/usr/ports/databases/postgresql[89]*} BUILD_OPTIMIZED= YES WITH_OPENSSL= YES WITH_PAM= YES WITH_LDAP= YES .endif
# LibreOffice .if ${.CURDIR:M/usr/ports/editors/libreoffice*} WITH_CUPS= YES WITH_JAVA= YES LOCALIZED_LANG= de .endif
# Thunderbird .if ${.CURDIR:M/usr/ports/mail/thunderbird*} CFLAGS+= -DLDAP_DEPRECATED .endif
# Blender mit GCC 4.6+ bauen .if ${.CURDIR:M/usr/ports/graphics/blender*} USE_GCC= 4.6+ .endif
# ImageMagick mit GCC 4.6+ bauen .if ${.CURDIR:M/usr/ports/graphics/ImageMagick*} USE_GCC= 4.6+ #CC= cc #CXX= c++ #CPP= cpp .endif
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "free...@freebsd.org"





