| 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: | Arno J. Klaassen (ar...@heho.snv.jussieu.fr) | |
| Date: | Apr 17, 2012 8:59:02 am | |
| List: | org.freebsd.freebsd-current | |
Hello,
[ /me not sure -current is the right group for this thread ]
Chris <behr...@gmail.com> writes:
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
I have the same problem as Chris on a 9-STABLE box.
Dimitry Andric <di...@freebsd.org> writes:
On 2012-04-17 01:08, Anton Shterenlikht wrote: ...
Just to say that I stumbled upon this issue as well:
http://lists.freebsd.org/pipermail/freebsd-ports/2012-April/074409.html
Subject: net/bwi-firmware-kmod "/sys/conf/kmod.mk", line 111: Malformed
conditional (${MK_CLANG_IS_CC} == "no"&& ${CC:T:Mclang} != "clang")
The root cause is still that your kernel sources (in /sys) do not match your installed world. The kernel module build process uses bsd.own.mk from /usr/share/mk, which should define MK_CLANG_IS_CC. If it doesn't, but your kernel source references it, there is a mismatch.
I verified and re-verfied : kernel and world perfectly in sync; /usr/src is a symlink but /sys points to the right place and (before patch) /usr/share/mk/bsd.own.mk and /usr/src/share/mk/bsd.own.mk are indentical.
Still I have to apply something like the following patch to get VirtualBox kernel module compiled (no idea who/where MK_CLANG_IS_CC gets set to "no", AFAIK not by me (I don't use src.conf and nothing about CLANG in make.conf).
FYI, best regards, Arno
#######
Index: ./share/mk/bsd.own.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.own.mk,v retrieving revision 1.107.2.5 diff -u -r1.107.2.5 bsd.own.mk --- ./share/mk/bsd.own.mk 17 Mar 2012 22:29:05 -0000 1.107.2.5 +++ ./share/mk/bsd.own.mk 17 Apr 2012 15:45:00 -0000 @@ -472,8 +472,8 @@ .if defined(WITH_${var}) && defined(WITHOUT_${var}) .error WITH_${var} and WITHOUT_${var} can't both be set. .endif -.if defined(MK_${var}) -.error MK_${var} can't be set by a user. +.if defined(MK_${var}) && ${MK_${var}} != "no" +.error MK_${var} (set to : ${MK_${var}} ) can't be set to no_default by a user. .endif .if defined(WITH_${var}) MK_${var}:= yes
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "free...@freebsd.org"





