Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2000 16:27:14 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Donn Miller <dmmiller@cvzoom.net>
Cc:        Neil Blakey-Milner <nbm@mithrandr.moria.org>, current@freebsd.org, stable@freebsd.org
Subject:   Re: buildkernel broken?
Message-ID:  <20000921162714.A61894@pcwin002.win.tue.nl>
In-Reply-To: <Pine.BSF.4.21.0009210959290.251-100000@acs-24-154-25-35.zoominternet.net>; from dmmiller@cvzoom.net on Thu, Sep 21, 2000 at 10:00:59AM -0400
References:  <20000921145439.A13769@mithrandr.moria.org> <Pine.BSF.4.21.0009210959290.251-100000@acs-24-154-25-35.zoominternet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 21, 2000 at 10:00:59AM -0400, Donn Miller wrote:
> On Thu, 21 Sep 2000, Neil Blakey-Milner wrote:
> 
> > On Thu 2000-09-21 (08:48), Donn Miller wrote:
> > > An example of what I get when I try to do a make buildkernel.  I have set
> > > KERNEL=CUSTOM in /etc/make.conf, so I should be alright there.
> > > 
> > 
> > > {standard input}:2342: Error: Subtraction of two symbols in different sections ".data" {.data section} - "KERNBASE" {*UND* section} at file address 928.
> > 
> > Do you have a populated /usr/obj?  (ie, with nm)
> 
> I've been doing "make buildkernel installkernel" in /usr/src without doing
> a "make buildworld" first.  Is this OK?  I guess the buildkernel created a
> /usr/obj, but I deleted it and tried buildkernel again with the same
> results.
> 
> - Donn
> 

FWIW, I have the same problem on 4.1-STABLE cvsupped 10 mins ago from
cvsup.nl.freebsd.org.

I noticed these lines in the build log:

...
cd /usr/obj/usr/src/sys/PCWIN002;  MAKEOBJDIRPREFIX=/usr/obj  COMPILER_PATH=/usr/obj/usr/src/i386/usr/libexec:/usr/obj/usr/src/i386/usr/bin  LIBRARY_PATH=/usr/obj/usr/src/i386/usr/lib:/usr/obj/usr/src/i386/usr/lib  OBJFORMAT_PATH=/usr/obj/usr/src/i386/usr/libexec  PERL5LIB=/usr/obj/usr/src/i386/usr/libdata/perl/5.00503  DESTDIR=/usr/obj/usr/src/i386  INSTALL="sh /usr/src/tools/install.sh"  PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin MACHINE=i386 make KERNEL=kernel depend
cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/../include  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2 /usr/src/sys/i386/i386/genassym.c
sh /usr/src/sys/kern/genassym.sh genassym.o > assym.s
nm: could not exec elf/nm in /usr/obj/usr/src/i386/usr/libexec: No such file or directory
rm -f param.c
cp /usr/src/sys/conf/param.c .
perl5 /usr/src/sys/kern/vnode_if.pl -h /usr/src/sys/kern/vnode_if.src
...

Especially:

nm: could not exec elf/nm in /usr/obj/usr/src/i386/usr/libexec: No such file or directory

Which is quite correct since I blew away /usr/obj after my last buildworld
(FreeBSD 4.1-STABLE #0: Wed Sep 13 14:45:31 CEST 2000). Is this a problem?
Should I have done a buildworld before a buildkernel now?

--Stijn


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000921162714.A61894>