HEADS UP: "can't find kernel source tree" error when building the
kernel.
Ruslan Ermilov
ru at FreeBSD.org
Fri Oct 3 11:02:31 PDT 2003
On Fri, Oct 03, 2003 at 12:28:42PM -0500, Jacques A. Vidrine wrote:
> 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')?
>
Maybe now it will be more obvious why I thought that upgrade_checks
should always be done, for all standard src/Makefile targets.
Currently, you either need to upgrade your /usr/bin/make binary
manually, or to use this command from /usr/src:
make buildkernel -DALWAYS_CHECK_MAKE ...
with up-to-date tools/regression/usr.bin/make/ and usr.bin/make/
sources.
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software Ltd,
ru at FreeBSD.org FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031003/c3ccb73f/attachment.bin
More information about the freebsd-current
mailing list