Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2002 14:51:38 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Thorsten.Greiner@consol.de
Cc:        stable@FreeBSD.org
Subject:   HEADS UP: share/mk stuff is being updated (was: Re: bsd.init.mk ?)
Message-ID:  <20020718115138.GB99249@sunbay.com>
In-Reply-To: <1026974131.3d3661b3c9a1c@intranet.consol.de>
References:  <1026974131.3d3661b3c9a1c@intranet.consol.de>

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

--24zk1gE8NUlDmwG9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi!

I am currently in the middle of the process of merging my half-a-year work
on the share/mk stuff into RELENG_4.  Below is the typical problem people
have met with this, explanation of the problem, and a quick work-around
for those who want it quickly.

On Thu, Jul 18, 2002 at 08:35:31AM +0200, Thorsten.Greiner@consol.de wrote:
> Hello,=20
> =20
> after cvsuping (just about now from cvsup3.de.freebsd.org) I'm having pro=
blems during=20
> "make depend":=20
> =20
> rm -f .newdep=20
> make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | xargs  mkdep -a -f .newde=
p -O -pipe=20
> -march=3Dpentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro=
totypes =20
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-exten=
sions -ansi =20
> -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter  -D=
_KERNEL -include=20
> opt_global.h -elf  -mpreferred-stack-boundary=3D2=20
> make -V SFILES -V SYSTEM_SFILES | xargs  env MKDEP_CPP=3D"cc -E" mkdep -a=
 -f .newdep -x=20
> assembler-with-cpp -DLOCORE -O -pipe -march=3Dpentiumpro -Wall -Wredundan=
t-decls=20
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arit=
h -Winline=20
> -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../..=
/../include=20
> -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h -elf =20
> -mpreferred-stack-boundary=3D2=20
> rm -f .depend=20
> mv -f .newdep .depend=20
> cd ../../modules ; env MAKEOBJDIRPREFIX=3D/usr/src/sys/compile/TYBALT/mod=
ules=20
> MODULES_OVERRIDE=3D"linux sound/snd sound/pcm sound/driver/ich linprocfs =
smbfs libiconv=20
> libmchain ipfw vn union cd9660 msdos" MACHINE=3Di386 make obj ;  env=20
> MAKEOBJDIRPREFIX=3D/usr/src/sys/compile/TYBALT/modules MODULES_OVERRIDE=
=3D"linux sound/snd=20
> sound/pcm sound/driver/ich linprocfs smbfs libiconv libmchain ipfw vn uni=
on cd9660 msdos"=20
> MACHINE=3Di386 make depend=20
> =3D=3D=3D> linux=20
> "/usr/src/sys/modules/linux/../../conf/kmod.mk", line 63: Could not find =
bsd.init.mk=20
> "/usr/src/sys/modules/linux/../../conf/kmod.mk", line 190: Could not find=
 bsd.links.mk=20
> make: fatal errors encountered -- cannot continue=20
> *** Error code 1=20
> =20
> Stop in /usr/src/sys/modules.=20
> *** Error code 1=20
> =20
> Stop in /usr/src/sys/compile/TYBALT.=20
> =20
> =20
> The complaint is valid, there is no "bsd.init.mk" or "bsd.links.mk" in /u=
sr/share/mk.=20
> =20
> I have seen no "heads up" or something like that. I have removed the comp=
ile directory=20
> and rerun "config" to no avail.=20
> =20
> Any hints?=20
> =20
The only method that is GUARANTEED to work with source code updates is
described in UPDATING.  It is "buildworld" followed by "buildkernel".

This particular problem is caused by your /usr/share/mk stuff being not
in sync with the source tree.  To work around this (if you really want
to build only your kernel from fresh sources), you need to:

	cd /usr/src/share/mk && make install

Then continue with the kernel build config(8) way.

Or use "buildkernel" that, as I said, should work all the time (it
takes care of picking up the correct share/mk files from the source
tree).  If it does not work, try precede it with "buildworld" (it
will build the new version of config(8)).  If this does not help,
then report it as a bug.


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--24zk1gE8NUlDmwG9
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE9NqvKUkv4P6juNwoRAjZhAJ9B8LZn0EDLTyKtazSJ1qzmENPbCgCfd2uC
fZC2OtfXVB1aoi6dRgUTQVI=
=1kWA
-----END PGP SIGNATURE-----

--24zk1gE8NUlDmwG9--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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