From owner-freebsd-questions Fri Jul 28 2:55:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from 2711.dynacom.net (2711.dynacom.net [206.107.213.3]) by hub.freebsd.org (Postfix) with ESMTP id C1CF837C208 for ; Fri, 28 Jul 2000 02:55:34 -0700 (PDT) (envelope-from kstewart@urx.com) Received: from urx.com (dsl1-160.dynacom.net [206.159.132.160]) by 2711.dynacom.net (Build 101 8.9.3/NT-8.9.3) with ESMTP id CAA06352; Fri, 28 Jul 2000 02:55:25 -0700 Message-ID: <3981588C.59312919@urx.com> Date: Fri, 28 Jul 2000 02:55:24 -0700 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: David Daugherty Cc: "J. Goodleaf" , questions@FreeBSD.ORG Subject: Re: make depend fails on Kernel References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Daugherty wrote: > > On Thu, 27 Jul 2000, Kent Stewart wrote: > > > David Daugherty wrote: > > > > > > On Thu, 27 Jul 2000, J. Goodleaf wrote: > > > > > > > I don't know if it will help, but you might have better luck using the > > > > 'make buildkernel KERNEL=[your kernel]' 'make installkernel' method, which > > > > I believe is now the officially preferred method for kernel builds, > > > > especially with upgraded systems. This is detailed in /src/UPDATING. I > > > > don't know if it's yet filtered into the handbook, but I would definitely > > > > take a look at UPDATING. (It's not so bad. Initially, I was greatly peeved > > > > that my 'config' 'make' thing had been deprecated, but I don't think the > > > > newer method is at all a pain. There are just a few more steps to it.) > > > I looked on the bsd list archive and found I needed to go to /usr/src then > > > make buildkernel KERNEL=MACHINENAME I then get: > > > make: don't know how to make buildkernel. Stop > > > > > > This is not an upgrade. I just installed the src and hour and a half ago. > > Did you copy GENERIC into MACHINENAME? It won't work until you do. > Yup. This is what I've done: > Installed 4.0-R from iso > cvsup'd What did you cvsup to? If you choose RELENG_4, then you really have to follow the example in /usr/src/UPDATING. Cvsup'ing a 4.0-Relase doesn't buy you anything (IIUC it was fixed at iso burn time and you installed from the iso). The upgrade to Stable, which is now 4.1-Stable, is a truly complicated task. You have your choice of doing a make world and then making your kernel or you follow the other example in UPDATING with the buildworld, buildkernel, installkernel, amd installworld. They all finish up running mergemaster and adding the new devices in /dev. I prefer the last set because it lets me have a complete build finished before I start installing anything. Since the new code is in /usr/obj, you are effectively doing a cross compile. If you cvsup'ed and didn't do a build world before you tried the config you basically have a new Makefile and etc but the old system. You can have problem with each but with the buildkernel scheme, you still have your original world and kernel until you decide to start installing. FWIW, I have 4.1-Stable, built from cvsup'ed source, running on all three of my FreeBSD machines. Kent > /stand/sysinstall > Configure->Distributions->src->sys > cp GENERIC MACHINENAME > removed lines at beginning of MACHINENAME > { > cpu I386 > cpu I486 > cpu I686 > > ident GENERIC is now MACHINENAME > } > /usr/sbin/config MACHINENAME > cd ../../compile/MACHINENAME > make depend > > and I get: > make: don't know how to make ../../../include/stddef.h. Stop > > Which is where I get stuck ;7) > > David > Software Engineer - NetManage > Work email: david.daugherty@netmanage.com > Home email: doc@wcug.wwu.edu > ICQ 21106703 > Washington State Resident > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ Bomber dropping fire retardant in front of Hanford Wild fire. http://kstewart.urx.com/kstewart/bomber.jpg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message