From owner-freebsd-current@FreeBSD.ORG Thu Aug 5 13:18:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3864816A4CF; Thu, 5 Aug 2004 13:18:54 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E25E343D60; Thu, 5 Aug 2004 13:18:53 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i75DHYMO032947; Thu, 5 Aug 2004 09:17:34 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i75DHXIJ032944; Thu, 5 Aug 2004 09:17:34 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Thu, 5 Aug 2004 09:17:33 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Mark Murray In-Reply-To: <200408050710.i757A29G052643@grimreaper.grondar.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD Current cc: markm@FreeBSD.ORG cc: Jeremy Chadwick Subject: Re: kernel build error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 13:18:54 -0000 On Thu, 5 Aug 2004, Mark Murray wrote: > Robert Watson writes: > > > > On Wed, 4 Aug 2004, Robert Watson wrote: > > > > > The problem appears to be that 'mem_range_softc' is defined in > > > mp_machdep.c, which means you can't build a non-SMP i386 kernel because > > > the symbol is undefined. We probably need to move the declaration to > > > machdep.c or the like. > > > > I've committed this change and things now appear to build. Might take a > > couple of minutes to propagate to cvsup, etc. > > Thanks Robert. Colour me very confused. :-) > > I built 4 cases in testing; SMP/UP cross Module/NoModule. All worked. > > What did I miss? I'm not sure what the UP above refers to, but the case I bumped into was building a GENERIC kernel with "options SMP" and "device apic" removed from the configuration file. The kernel failed to link due to the missing softc symbol from mp_machdep.c, which is only compiled into kernels with "options SMP". I've not yet caught up on e-mail, so I've not yet seen if you've seen, but I sent a follow-up message in which I observe the same problem in non-i386 trees, which will also need to be fixed. For benchmarking purposes, I build UP kernels without "options SMP" or "device apic" for performance reasons. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research