Solved Cannot compile simple kernel module

fnoyanisi

Active Member

Reaction score: 101
Messages: 219

Hi there,

Using 10.3-RELEASE and trying to compile a simple kernel module. My Makefile is really simple....
Code:
~/code/memstat % cat Makefile
# Source files for kernel module
SRCS=memstat_kmod.c

# Declare Name of the kernel module
KMOD=memstat

# Include kernel module makefile
.include <bsd.kmod.mk>
~/code/memstat % make
make: "/sys/conf/kmod.mk" line 461: Could not find bsd.clang-analyze.mk
make: Fatal errors encountered -- cannot continue
make: stopped in /home/fnoyanisi/code/memstat
~/code/memstat %
I have seen this and in this forum post, wblock@ mentions that bsd.clang-analyze.mk is only available in 11-CURRENT.

My questions is, why would bsd.kmod.mk on 10.3-RELEASE pull bsd.clang-analyze.mk, which is only available in 11-CURRENT?
 
OP
OP
fnoyanisi

fnoyanisi

Active Member

Reaction score: 101
Messages: 219

Seems like I messed up my /usr/src at some stage, wiping out /usr/src and re sync'ing the source solved the problem.
 
Top