Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Oct 2003 21:02:19 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        "Jacques A. Vidrine" <nectar@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   HEADS UP: "can't find kernel source tree" error when building the kernel.
Message-ID:  <20031003180219.GC35274@sunbay.com>
In-Reply-To: <20031003172842.GA62106@madman.celabo.org>
References:  <3F7DAA8F.9050600@reversedhell.net> <20031003172842.GA62106@madman.celabo.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--6zdv2QT/q3FMhpsV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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,
> >=20
> > 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/kmo=
d.mk
> > (it starts with line 167 in the file)
> >=20
> > .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
> > .if !defined(SYSDIR) && exists(${_dir}/kern/)
> > SYSDIR=3D ${_dir}
> > .endif
> > .endfor
> > .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
> > .error "can't find kernel source tree"
> > .endif
> >=20
> > i removed the last "/" from "/kern/" and now it seems it can find the=
=20
> > directory.
> > i don't know if this is a general problem, or it is just in the case of=
=20
> > my system.
>=20
> How are you building the kernel?   Are you using `make buildworld' first
> and then `make buildkernel' (or `make kernel')?
>=20
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,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--6zdv2QT/q3FMhpsV
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/fbmrUkv4P6juNwoRAmSyAKCKcB3pUCUtNwjqdaxf7/1hE8SWTwCeJNA+
Kw4z0hGbNvvhgnHWrHN2eik=
=5c+r
-----END PGP SIGNATURE-----

--6zdv2QT/q3FMhpsV--



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