From owner-freebsd-questions Mon Sep 16 9: 4:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44B1037B401 for ; Mon, 16 Sep 2002 09:04:12 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6AE543E6E for ; Mon, 16 Sep 2002 09:04:11 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id GQF37091; Mon, 16 Sep 2002 09:04:10 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id 1C23B5D04; Mon, 16 Sep 2002 09:04:10 -0700 (PDT) To: "Calvin Smith" Cc: "Matthew Emmerton" , FreeBSD-questions@FreeBSD.org Subject: Re: Problems with "make world" In-reply-to: Your message of "Mon, 16 Sep 2002 08:57:07 PDT." <000d01c25d99$b5933c60$9701a8c0@home> Date: Mon, 16 Sep 2002 09:04:10 -0700 From: "Kevin Oberman" Message-Id: <20020916160410.1C23B5D04@ptavv.es.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: "Calvin Smith" > Date: Mon, 16 Sep 2002 08:57:07 -0700 > Sender: owner-freebsd-questions@FreeBSD.ORG > > > ----- Original Message ----- > From: "Matthew Emmerton" > To: "Calvin Smith" ; > Sent: Friday, September 13, 2002 11:02 PM > Subject: Re: Problems with "make world" > > > > > > > > > I am having problems compiling my kernel using the following steps and > > after > > > making all of the changes in the kernel > > > text file: > > > > > > cd /usr/src > > > echo "KERNCONF=CSTSGW" >> /etc/make.conf > > > make world > > > > [ snip ] > > > > By doing a 'make world' in /usr/src you're asking to rebuild everything - > > the kernel AND the base OS. You need to have the full sources installed, > > and it looks like you don't. > > > > > I am able to compile the kernel by doing the following: > > > /usr/sbin/config -g CSTSGW > > > cd ../../compile CSTSGW > > > make depend > > > make > > > make install > > > > This is the best way to compile kernels if you only have kernel sources > > installed. > > > > -- > > Matt Emmerton > > > > This sounds reasonable, however I was under the impression that it would go > through the sources you do have installed and use that for the build. I > will do some further digging as I have the time and at least I can compile > the kernel. Thanks for your answer. It sounds reasonable, but it is not correct. The only officially supported way to build a new kernel (per the core team) is: cd /usr/src make [build|install]kernel KERNCONF=YOUR_KERNEL_NAME The "old" technique shown above usually works, but in some cases will reliably fail. The recent update of the system mk files was an example of this. You cannot "make buildworld" without full sources, but this does not apply to making the kernel. (Of course, you do need the kernel sources.) R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message