"/sys/conf/kmod.mk",
line 111: Malformed conditional (${MK_CLANG_IS_CC}
O. Hartmann
ohartman at zedat.fu-berlin.de
Sat Mar 3 15:43:31 UTC 2012
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120303/d8a7c7d7/signature.pgp
More information about the freebsd-current
mailing list