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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to