From owner-freebsd-stable Thu Jul 18 7:48:55 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C63A37B400; Thu, 18 Jul 2002 07:48:50 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id A44DD43E3B; Thu, 18 Jul 2002 07:48:49 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id HAA19584; Thu, 18 Jul 2002 07:48:48 -0700 Message-ID: <3D36D550.10800@owt.com> Date: Thu, 18 Jul 2002 07:48:48 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: Ruslan Ermilov Cc: stable@FreeBSD.ORG Subject: Re: HEADS UP: share/mk stuff is being updated (was: Re: bsd.init.mk ?) References: <1026974131.3d3661b3c9a1c@intranet.consol.de> <20020718115138.GB99249@sunbay.com> <3D36C194.2090607@owt.com> <20020718133005.GA17957@sunbay.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov wrote: > On Thu, Jul 18, 2002 at 06:24:36AM -0700, Kent Stewart wrote: > >> >>Ruslan Ermilov wrote: >> >> >>>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, >>>> >>>>after cvsuping (just about now from cvsup3.de.freebsd.org) I'm having >>>>problems during "make depend": >>>> >>>>rm -f .newdep >>>>make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | xargs mkdep -a -f >>>>.newdep -O -pipe -march=pentiumpro -Wall -Wredundant-decls >>>>-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes >>>>-Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi >>>>-nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter >>>>-D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 >>>>make -V SFILES -V SYSTEM_SFILES | xargs env MKDEP_CPP="cc -E" mkdep -a >>>>-f .newdep -x assembler-with-cpp -DLOCORE -O -pipe -march=pentiumpro >>>>-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes >>>>-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual >>>>-fformat-extensions -ansi -nostdinc -I- -I. -I../.. -I../../../include >>>>-I../../contrib/ipfilter -D_KERNEL -include opt_global.h -elf >>>>-mpreferred-stack-boundary=2 rm -f .depend >>>>mv -f .newdep .depend >>>>cd ../../modules ; env >>>>MAKEOBJDIRPREFIX=/usr/src/sys/compile/TYBALT/modules >>>>MODULES_OVERRIDE="linux sound/snd sound/pcm sound/driver/ich linprocfs >>>>smbfs libiconv libmchain ipfw vn union cd9660 msdos" MACHINE=i386 make >>>>obj ; env MAKEOBJDIRPREFIX=/usr/src/sys/compile/TYBALT/modules >>>>MODULES_OVERRIDE="linux sound/snd sound/pcm sound/driver/ich linprocfs >>>>smbfs libiconv libmchain ipfw vn union cd9660 msdos" MACHINE=i386 make >>>>depend ===> linux >>>>"/usr/src/sys/modules/linux/../../conf/kmod.mk", line 63: Could not find >>>>bsd.init.mk "/usr/src/sys/modules/linux/../../conf/kmod.mk", line 190: >>>>Could not find bsd.links.mk make: fatal errors encountered -- cannot >>>>continue *** Error code 1 >>>> >>>>Stop in /usr/src/sys/modules. >>>>*** Error code 1 >>>> >>>>Stop in /usr/src/sys/compile/TYBALT. >>>> >>>> >>>>The complaint is valid, there is no "bsd.init.mk" or "bsd.links.mk" in >>>>/usr/share/mk. >>>>I have seen no "heads up" or something like that. I have removed the >>>>compile directory and rerun "config" to no avail. >>>> >>>>Any hints? >>>> >>>> >>>> >>>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. >>> >> >>This isn't completely true. I just tried a buildworld and it is dying >>about 90% of the way thru the build. I also tried your work around and >>it did not work in this case. I see the message >> >>===> share/mk >>make: don't know how to make bsd.init.mk. Stop >>*** Error code 2 >> >> > Then there is probably a problem with your CVSup server lacking > some changes. The share/mk/Makefile and share/mk/bsd.init.mk > were committed atomically with this commitlog: > > MFC: bsd.init.mk, don't include bsd.own.mk from sys.mk, assorted fixes. You were right. I was using cvsup16 and when I changed to cvsup13, it spent long time catching up. My local mirror only had the changes to Makefile and none of your other changes. Kent > > > Cheers, > -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message