atom feed18 messages in org.freebsd.freebsd-currentRe: "/sys/conf/kmod.mk", line 111: Ma...
FromSent OnAttachments
O. HartmannMar 3, 2012 3:48 am 
Chris ReesMar 3, 2012 5:23 am 
Dimitry AndricMar 3, 2012 6:18 am 
Florian SmeetsMar 3, 2012 6:19 am 
Dimitry AndricMar 3, 2012 6:25 am 
O. HartmannMar 3, 2012 7:42 am 
ChrisApr 15, 2012 6:03 pm 
Dimitry AndricApr 15, 2012 11:44 pm 
ChrisApr 16, 2012 3:41 pm 
Anton ShterenlikhtApr 16, 2012 4:08 pm 
Dimitry AndricApr 17, 2012 2:18 am 
Anton ShterenlikhtApr 17, 2012 2:36 am 
Dimitry AndricApr 17, 2012 2:49 am 
Anton ShterenlikhtApr 17, 2012 3:52 am 
Arno J. KlaassenApr 17, 2012 8:59 am 
Mark LinimonApr 17, 2012 9:03 am 
Kevin ObermanApr 17, 2012 12:27 pm 
Dimitry AndricApr 17, 2012 1:52 pm 
Subject:Re: "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC}
From:Dimitry Andric (di@FreeBSD.org)
Date:Apr 17, 2012 2:18:06 am
List:org.freebsd.freebsd-current

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.

In some cases, you could fix it by setting MAKESYSPATH to the share/mk dir under your source tree. There is still no guarantee your module will build or load correctly.

As Doug Barton said in reply to r232473: "Building ports where the sources and the installed kernel differ is not a supported configuration. The fact that it happens to work most of the time is a bonus."

That said, i think it may be time to bow to the pressure, and just put a fixup for this issue in kmod.mk, and the other .mk files, like I initially did in r232473, but with a BIG FAT WARNING printed, so you at least know you are attempting to shoot your extremities. :)