"make" in ports tells me "requires kernel source files in SRC_BASE=/usr/src." despite an up-to-date /usr/src

Yuri Pankov yuripv at yuripv.dev
Mon Feb 8 07:01:31 UTC 2021


Michael Schuster wrote:
> Hi,
> 
> again, apologies if this is not the right place to ask this question ...
> 
> I've done a fair amount of googling, without relevant findings.
> 
> $Subject says all - both the port I'm trying to build as well as /usr/src
> are up-to-date (one using "svn up", the other "git pull"), I'm also running
> the kernel that I built from those sources.
> 
> uname:
> FreeBSD host 14.0-CURRENT FreeBSD 14.0-CURRENT #12
> main-n244657-344f1083e12: Sat Feb  6 12:17:33 CET 2021
> root at host:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
>   amd64

FWIW, I am not seeing the issue.  Having said that, the trailing dot 
after /usr/src in that error message looks suspicious, it is not there 
in /usr/ports/Mk/Uses/kmod.mk; was that an exact copy/paste?  If yes, 
check if you are (incorrectly) setting SRC_BASE somewhere?


More information about the freebsd-questions mailing list