From owner-freebsd-stable@FreeBSD.ORG Thu Sep 9 15:35:33 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17FBE10656F3 for ; Thu, 9 Sep 2010 15:35:33 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id B75BC8FC17 for ; Thu, 9 Sep 2010 15:35:31 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta01.westchester.pa.mail.comcast.net with comcast id 4f1C1f00827AodY51fbYCc; Thu, 09 Sep 2010 15:35:32 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta19.westchester.pa.mail.comcast.net with comcast id 4fbX1f0073LrwQ23ffbXJJ; Thu, 09 Sep 2010 15:35:32 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id F14119B423; Thu, 9 Sep 2010 08:35:29 -0700 (PDT) Date: Thu, 9 Sep 2010 08:35:29 -0700 From: Jeremy Chadwick To: Olaf Seibert Message-ID: <20100909153529.GA79356@icarus.home.lan> References: <20100909141702.GP4404@twoquid.cs.ru.nl> <20100909152400.GS4404@twoquid.cs.ru.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100909152400.GS4404@twoquid.cs.ru.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org, Thomas Ronner Subject: Re: Can't build 8.1 GENERIC kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 15:35:33 -0000 On Thu, Sep 09, 2010 at 05:24:00PM +0200, Olaf Seibert wrote: > Thomas Ronner wrote: > > > I don't know about the old-fashioned way, but the new way is: > > > > # cd /usr/src > > # make buildkernel KERNCONF=GENERIC > > # make installkernel KERNCONF=GENERIC > > Thank you, that worked. > > I wonder what the underlying difference is; probably something fairly > subtle. The same hack.So file was generated (byte for byte identical). > And something changed between 8.0 and 8.1, since previously, the > old-fashioned method worked. Not sure (it's been a long time since I configured a kernel the old way, dating back to 2.x), but possibly it has to do with the introduction of /usr/obj. Your "file" command doesn't indicate what your working directory was at the time. Regardless, when it comes to building world and kernel, you should follow the instructions in /usr/src/Makefile (there's 11 steps). Do not skip steps, and do not avoid steps (such as doing installkernel then skipping the boot-into-single-user step before doing installworld; this may work the majority of the time, but I've seen cases where /libexec binaries don't get updated without going into single-user, and the result is a system that breaks immediately). You should also build world before building kernel; as I understand it, the binaries built during buildworld will be used to build the kernel. There have been many situations in the past where not doing this has broken the build process (e.g. a new feature/flag/etc. being introduced which exists via the /usr/obj/usr/bin/whatever binary, but not /usr/bin/whatever). -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |