kernel build error
Robert Watson
rwatson at FreeBSD.ORG
Thu Aug 5 06:18:54 PDT 2004
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 at fledge.watson.org Principal Research Scientist, McAfee Research
More information about the freebsd-current
mailing list