From owner-freebsd-questions Sat Sep 30 0:12:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rush.telenordia.se (mail.telenordia.se [194.213.64.42]) by hub.freebsd.org (Postfix) with SMTP id 5C63F37B66D for ; Sat, 30 Sep 2000 00:12:31 -0700 (PDT) Received: (qmail 29370 invoked from network); 30 Sep 2000 09:12:28 +0200 Received: from bb-62-5-4-193.bb.tninet.se (HELO marbsd.tninet.se) (62.5.4.193) by mail.telenordia.se with SMTP; 30 Sep 2000 09:12:28 +0200 From: Mark Rowlands To: marcd@internode.on.net, Kent Stewart Subject: Re: Problem building kernel (4.1S to 4.1.1) Date: Sat, 30 Sep 2000 09:02:57 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: freebsd-questions@FreeBSD.ORG References: In-Reply-To: MIME-Version: 1.0 Message-Id: <00093009101702.03987@marbsd.tninet.se> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 30 Sep 2000, marcd@internode.on.net wrote: > Thankx for the reply. > > I've tried both the buildkernel and the config approach and both fail. > > The buildkernel dies with :- (and an errorcode 2 appears a couple of times > during the kernel build but I can't see where). > > for /develop/src/sys/modules/wi > 1 error > *** Error code 2 > env MKDEP_CPP="/usr/bin/gcc -E" mkdep -a -f .newdep -x assembler-with-cpp > -DLOCORE -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions > -ansi -nostdinc -I- -I. -I/develop/src/sys -I/develop/src/sys/../include > -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 > /develop/src/sys/i386/i386/bioscall.s /develop/src/sys/i386/i386/exception.s > /develop/src/sys/i386/i386/globals.s /develop/src/sys/i386/i386/support.s > /develop/src/sys/i386/i386/swtch.s /develop/src/sys/i386/i386/locore.s > rm -f .depend > mv -f .newdep .depend > 1 error > *** Error code 2 > 1 error > *** Error code 2 > 1 error > > On 30-Sep-00 Kent Stewart wrote: > > > > > > marcd@internode.on.net wrote: > >> > >> Hi > >> > >> I'm currnently running 4.1 Stable on my system and am trying to upgrade to > >> 4.1. > >> > >> I CVS'ed my sources Sept 27, I can go succesfull build the sources except > >> for the kernel. (using make buildworld) but then I try and build the kernel > >> it dies. When I try and manually build the kernel (i.e config, make depend, > >> make etc) it dies with the following > > > > You have already deviated from the methods specified in > > /usr/src/UPDATING. Try doing a buildkernel sequence instead of the > > config method. > > > > Kent > > > >> > >> al.h -elf -mpreferred-stack-boundary=2 vers.c > >> linking kernel > >> ffs_softdep.o: In function `softdep_flushfiles': > >> ffs_softdep.o(.text+0x607): undefined reference to `ffs_flushfiles' > >> ffs_softdep.o(.text+0x6d6): undefined reference to `ffs_flushfiles' > >> ffs_softdep.o: In function `handle_workitem_freefrag': > >> ffs_softdep.o(.text+0x1265): undefined reference to `ffs_blkfree' > >> ffs_softdep.o: In function `handle_workitem_freeblocks': > >> ffs_softdep.o(.text+0x1ef4): undefined reference to `ffs_blkfree' > >> ffs_softdep.o(.text+0x1f6a): undefined reference to `ffs_blkfree' > >> ffs_softdep.o: In function `indir_trunc': > >> ffs_softdep.o(.text+0x210b): undefined reference to `ffs_blkfree' > >> ffs_softdep.o: In function `handle_workitem_freefile': > >> ffs_softdep.o(.text+0x2e0e): undefined reference to `ffs_freefile' > >> *** Error code 1 > >> > >> Stop in /develop/src/sys/compile/ZEN. > >> > >> Thankx in Advance > >> I'll probably get jumped for this but when I get problems with kernels not building i do the following. remove /usr/src /usr/obj remove wherever you use as a base for cvsup nice clean cvsup then build with a generic kernel These are just my opinions you are free to disagree please do so quietly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message