From owner-freebsd-stable Thu Sep 21 7:27:47 2000 Delivered-To: freebsd-stable@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id A407C37B423; Thu, 21 Sep 2000 07:27:41 -0700 (PDT) Received: by pcwin002.win.tue.nl (Postfix, from userid 1001) id 2062F13472; Thu, 21 Sep 2000 16:27:15 +0200 (CEST) Date: Thu, 21 Sep 2000 16:27:14 +0200 From: Stijn Hoop To: Donn Miller Cc: Neil Blakey-Milner , current@freebsd.org, stable@freebsd.org Subject: Re: buildkernel broken? Message-ID: <20000921162714.A61894@pcwin002.win.tue.nl> References: <20000921145439.A13769@mithrandr.moria.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dmmiller@cvzoom.net on Thu, Sep 21, 2000 at 10:00:59AM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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