From owner-freebsd-current@FreeBSD.ORG Sat Mar 3 15:43:31 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 23D36106566B; Sat, 3 Mar 2012 15:43:31 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id B80698FC0A; Sat, 3 Mar 2012 15:43:30 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1S3r7J-0003lI-OC>; Sat, 03 Mar 2012 16:43:29 +0100 Received: from e178033051.adsl.alicedsl.de ([85.178.33.51] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1S3r7J-0002A2-IH>; Sat, 03 Mar 2012 16:43:29 +0100 Message-ID: <4F523C1A.4060008@zedat.fu-berlin.de> Date: Sat, 03 Mar 2012 16:43:22 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120223 Thunderbird/10.0.2 MIME-Version: 1.0 To: Florian Smeets References: <4F520523.90406@zedat.fu-berlin.de> <4F52286E.4030608@FreeBSD.org> In-Reply-To: <4F52286E.4030608@FreeBSD.org> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCC4F926ACB237281FBE09C3F" X-Originating-IP: 85.178.33.51 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: Sat, 03 Mar 2012 15:43:31 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCC4F926ACB237281FBE09C3F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 a= ll >>> 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. Wha= t's >>> wrong? >>> >>> Some unexpected breakage? Then this is my shout to the community. >>> >>> Message below. >>> >>> Regards and thanks in advance, >>> Oliver >>> >>> =3D=3D=3D> Vulnerability check disabled, database not found >>> =3D=3D=3D> License NVIDIA accepted by the user >>> =3D=3D=3D> Found saved configuration for nvidia-driver-295.20 >>> =3D=3D=3D> Extracting for nvidia-driver-295.20 >>> =3D> SHA256 Checksum OK for NVIDIA-FreeBSD-x86_64-295.20.tar.gz. >>> =3D=3D=3D> Patching for nvidia-driver-295.20 >>> =3D=3D=3D> nvidia-driver-295.20 depends on file: >>> /usr/local/libdata/pkgconfig/xorg-server.pc - found >>> =3D=3D=3D> nvidia-driver-295.20 depends on shared library: GL.1 - f= ound >>> =3D=3D=3D> Configuring for nvidia-driver-295.20 >>> =3D=3D=3D> Building for nvidia-driver-295.20 >>> =3D=3D=3D> src (all) >>> "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_C= C} >>> =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_C= C} >>> =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. >> >=20 > 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. >=20 > 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 YES WITH_CLANG_EXTRAS=3D YES # #CC=3D clang #CXX=3D clang++ #CPP=3D clang-cpp # #CFLAGS.clang+=3D -O3 -pipe -fno-strict-aliasing #COPTFLAGS.clang+=3D -O3 -pipe #CFLAGS.cc+=3D -O2 -pipe -fno-strict-aliasing #COPTFLAGS.cc+=3D -O2 -pipe # WITH_BIND_LIBS=3D YES WITH_BIND_SIGCHASE=3D YES WITH_BIND_LARGE_FILE=3D YES # WITH_IDEA=3D YES WITH_HESIOD=3D YES # #WITH_ICONV=3D YES #WITH_BSD_GREP=3D YES # WITH_LIBCPLUSPLUS=3D YES # #WITH_OFED=3D YES The CLANG relevant portion of /etc/make.conf looks like this: # BUGFIX FreeBSD 10.0 #WITH_FBSD10_FIX=3D YES # #DISABLE_MAKE_JOBS=3D YES # Set to disable assertions and statistics gathering in malloc(3) MALLOC_PRODUCTION=3D YES # Set this to use svn(1) to update your src tree with make update SVN_UPDATE=3D YES # Program to use SVN=3D /usr/local/bin/svn SVNFLAGS=3D -r HEAD # #PORTS_MODULES=3D "x11/nvidia-driver" ### ### CLANG ### =2Eif !defined(NO_CLANG) #.if ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} || ${.CURDIR:M/sys*} =2Eif !defined(CC) || ${CC} =3D=3D "cc" CC=3D clang =2Eendif =2Eif !defined(CXX) || ${CXX} =3D=3D "c++" CXX=3D clang++ =2Eendif =2Eif !defined(CPP) || ${CPP} =3D=3D "cpp" CPP=3D clang-cpp =2Eendif ## Don't die on warnings NO_WERROR=3D WERROR=3D ### Don't forget this when using Jails! #NO_FSCHG=3D # CFLAGS+=3D -pipe -O3 -fno-strict-aliasing COPTFLAGS+=3D -pipe -O3 #.endif =2Eendif FORCE_PKG_REGISTER=3D YES # OpenLDAP #WANT_OPENLDAP_VER=3D 24 WANT_OPENLDAP_SASL=3D yes # BDB Version WITH_BDB_VER=3D 5 WITH_BDB_HIGHEST=3D YES # Rubin 1,9 wird Kaiser RUBY_DEFAULT_VER=3D 1.9 # What PostgreSQL port should be set default WANT_PGSQL_VER=3D 91 # #FORCE_MAKE_JOBS=3D YES # Wir wollen SAMBA36 statt des senilen SAMABA35 SAMBA_PORT=3D samba36 # KdF an der Optimierung WITH_OPTIMIZED_FLAGS=3D YES # Disables xf86-video-noveau driver and makes use of newer libdrm/libGLUT possible WITHOUT_NOUVEAU=3D YES # New Xorg and Mesa WITH_NEW_XORG=3D YES # nvidia-driver =2Eif ${.CURDIR:M/usr/ports/x11/nvidia-driver} DISTVERSION=3D 295.20 =2Eendif =2Eif ${.CURDIR:M/usr/ports/x11/nvidia-xsetting*} DISTVERSION=3D 295.20 =2Eendif =2Eif ${.CURDIR:M/usr/ports/x11/nvidia-config*} DISTVERSION=3D 295.20 =2Eendif # PostgreSQL Server =2Eif ${.CURDIR:M/usr/ports/databases/postgresql[89]*} BUILD_OPTIMIZED=3D YES WITH_OPENSSL=3D YES WITH_PAM=3D YES WITH_LDAP=3D YES =2Eendif # LibreOffice =2Eif ${.CURDIR:M/usr/ports/editors/libreoffice*} WITH_CUPS=3D YES WITH_JAVA=3D YES LOCALIZED_LANG=3D de =2Eendif # Thunderbird =2Eif ${.CURDIR:M/usr/ports/mail/thunderbird*} CFLAGS+=3D -DLDAP_DEPRECATED =2Eendif # Blender mit GCC 4.6+ bauen =2Eif ${.CURDIR:M/usr/ports/graphics/blender*} USE_GCC=3D 4.6+ =2Eendif # ImageMagick mit GCC 4.6+ bauen =2Eif ${.CURDIR:M/usr/ports/graphics/ImageMagick*} USE_GCC=3D 4.6+ #CC=3D cc #CXX=3D c++ #CPP=3D cpp =2Eendif --------------enigCC4F926ACB237281FBE09C3F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBAgAGBQJPUjwhAAoJEOgBcD7A/5N8NocH/RiDayot9WfHO11MQXT8/YtS utCt8a56E6qztA1tlzj8YHrUNvIwhUjBamG7HP7dKF75wDLYHhXkqxjXkPc2PEH8 kdAU/dvHuuu0NFegKL+4SucQMOGNlOiFfLEncU3dpxFG3RJVA5JrNnIhMSxVSuRy AezvybuSWrPtNUuAYUPVxOxyqkqlmR6slzDIVn9wzXNhLWT/qtD6vAYTYi7vlQuV JF+wv1WDa0JSTCMwWh5UEzdd+L80KTbsEhIsEdlJyj2hYpP4aWWSa9xf0wgxwB+v 0sm9tlA1TLioxbAbOss0K8rP2YsnfKqaM9Xeb1+E46xkSJAHBCFwtObt3eE0cxU= =ZVTA -----END PGP SIGNATURE----- --------------enigCC4F926ACB237281FBE09C3F--