From owner-freebsd-questions Sat Mar 11 14:37:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id B97E237BD2E for ; Sat, 11 Mar 2000 14:37:55 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id OAA66844; Sat, 11 Mar 2000 14:37:53 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38CACAC1.4736C3AC@gorean.org> Date: Sat, 11 Mar 2000 14:37:53 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 4.0-CURRENT-0307 i386) X-Accept-Language: en MIME-Version: 1.0 To: Net Daemons Cc: questions@FreeBSD.org Subject: Re: Kernel compile problem References: <200003101928.OAA21812@nber4.nberorgyp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Net Daemons wrote: > > I am trying to rebuild the kernel on a FreeBSD 3.2 machine, i386. I have > not done this before. I copied the GENERIC file in /usr/src/sys/i386/conf > and tried a make on it before making any changes to it. I get the following > error. > > # /usr/sbin/config -rg NDA > Removing old directory ../../compile/NDA: Done. > Don't forget to do a ``make depend'' > Kernel build directory is ../../compile/NDA > > I cd into ../../compile/NDA and do a "make depend", which runs successfully. > I then try a make, which fails with the following message. > > /usr/local/bin/gcc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimp > licit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arit > h -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -g -nost > dinc -I- -I. -I../.. -I/usr/include -DKERNEL -DVM_STACK -include opt_global.h - > elf vers.c > loading kernel > vfs_bio.o: In function `vfs_buf_set_valid': > /usr/src/sys/compile/NDA/../../kern/vfs_bio.c:2131: undefined reference > to `__cmpdi2' You have removed too much from your custom kernel. Try just compiling GENERIC, then if that works gradually remove things, making sure you understand what you are removing. Good luck, Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message