From owner-freebsd-doc Wed Jan 17 23:23:25 2001 Delivered-To: freebsd-doc@freebsd.org Received: from ducky.nz.freebsd.org (ns1.unixathome.org [203.79.82.27]) by hub.freebsd.org (Postfix) with ESMTP id 7CC3637B400; Wed, 17 Jan 2001 23:23:03 -0800 (PST) Received: from wocker (wocker.int.nz.freebsd.org [192.168.0.99]) by ducky.nz.freebsd.org (8.9.3/8.9.3) with ESMTP id UAA14462; Thu, 18 Jan 2001 20:22:58 +1300 (NZDT) Message-Id: <200101180722.UAA14462@ducky.nz.freebsd.org> From: "Dan Langille" Organization: The FreeBSD Diary / FreshPorts To: Dima Dorfman Date: Thu, 18 Jan 2001 20:22:57 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: too much confusion over kernel building Reply-To: dan@langille.org Cc: freebsd-doc@freebsd.org, freebsd-questions@freebsd.org References: Message from "Dan Langille" of "Thu, 18 Jan 2001 18:34:31 +1300." <200101180534.SAA14079@ducky.nz.freebsd.org> In-reply-to: <20010118071534.031B13E02@bazooka.unixfreak.org> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 17 Jan 2001, at 23:15, Dima Dorfman wrote: > > Over the past few weeks and months, I've seen far too many people > > using "make buildkernel KERNEL=MYKERNEL" when they should have > > used "config MYKERNEL". > > I'm not quite sure we should be advocating using the older, `config > MYKERN` method. It doesn't really have any advantages over the newer > one, and suggesting different ones for different purposes will only > confuse the novices, IMO. Plus, `make buildkernel KERNEL=MYKERNEL` is > quite a bit simpler than, > > config MYKERNEL && cd ../../compile/MYKERNEL && make depend && make > > So, my question is, why use the older one? I can understand why > people still use it because they've been doing it that way for the > last X years, but that's no reason to teach it to new people. It might be because it doesn't work. The following box works with the "old" style, but fails with the "new" style: [root@xeon:/usr/src] # make buildkernel KERNEL=XEON [massive sniop] /tmp/ccM70700.s:2514: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1884. /tmp/ccM70700.s:2517: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1903. *** Error code 1 *** Error code 1 Stop in /usr/obj/usr/src/sys/XEON. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ FreshPorts - http://freshports.org/ NZ Broadband - http://unixathome.org/broadband/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message