Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Oct 2003 12:28:42 -0500
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        Clau <clau@reversedhell.net>
Cc:        ru@freeBSD.org
Subject:   Re: "can't find kernel source tree" error when building the kernel.
Message-ID:  <20031003172842.GA62106@madman.celabo.org>
In-Reply-To: <3F7DAA8F.9050600@reversedhell.net>
References:  <3F7DAA8F.9050600@reversedhell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 03, 2003 at 07:57:51PM +0300, Clau wrote:
> hello,
> 
> i just downloaded via cvsup the latest kernel for freebsd 5.1.
> i had a problem with it, more exactly when i did a "make depend"
> it stopped at some place, and gave me this error:
> "can't find kernel source tree"
> i fixed this by modifying this piece of code from /usr/src/sys/conf/kmod.mk
> (it starts with line 167 in the file)
> 
> .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
> .if !defined(SYSDIR) && exists(${_dir}/kern/)
> SYSDIR= ${_dir}
> .endif
> .endfor
> .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
> .error "can't find kernel source tree"
> .endif
> 
> i removed the last "/" from "/kern/" and now it seems it can find the 
> directory.
> i don't know if this is a general problem, or it is just in the case of 
> my system.

How are you building the kernel?   Are you using `make buildworld' first
and then `make buildkernel' (or `make kernel')?

Cheers,
-- 
Jacques Vidrine   . NTT/Verio SME      . FreeBSD UNIX       . Heimdal
nectar@celabo.org . jvidrine@verio.net . nectar@freebsd.org . nectar@kth.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031003172842.GA62106>