From owner-freebsd-questions Sat Sep 30 1:40:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from 2711.dynacom.net (2711.dynacom.net [206.107.213.3]) by hub.freebsd.org (Postfix) with ESMTP id 6EADF37B502 for ; Sat, 30 Sep 2000 01:40:24 -0700 (PDT) Received: from urx.com (dsl1-160.dynacom.net [206.159.132.160]) by 2711.dynacom.net (Build 101 8.9.3/NT-8.9.3) with ESMTP id BAA05897; Sat, 30 Sep 2000 01:40:16 -0700 Message-ID: <39D5A6F0.A2C10D04@urx.com> Date: Sat, 30 Sep 2000 01:40:16 -0700 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Mark Rowlands Cc: marcd@internode.on.net, freebsd-questions@FreeBSD.ORG Subject: Re: Problem building kernel (4.1S to 4.1.1) References: <00093009101702.03987@marbsd.tninet.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Rowlands wrote: > > 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 I just got through cvsup'ing and building to see if something was wrong. I cleaned out my /usr/obj before I started and didn't have any problems. I think I would remove /usr/obj first unless you are using a T1. The softdep errors could be occurring if you haven't removed the two links and that is also covered in /usr/src/UPDATING. Kent > > 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 -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message