"/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC}

Mark Linimon linimon at lonesome.com
Tue Apr 17 16:04:18 UTC 2012


On Tue, Apr 17, 2012 at 11:49:44AM +0200, Dimitry Andric wrote:
> It would hopefully error out.  If you look in /usr/share/mk/bsd.kmod.mk,
> you will see this at the bottom:
> 
>   .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
>       !exists(${SYSDIR}/conf/kmod.mk)
>   .error Unable to locate the kernel source tree. Set SYSDIR to override.
>   .endif
> 
> So, setting SYSDIR to the correct directory is also a possible solution.

Note that in ports-land we discourage .error in the ports infrastructure
as it can make it impossible to query metadata (e.g. make index,
make -V maintainer, etc.)  So this usage should stay in src.

mcl


More information about the freebsd-current mailing list