From owner-freebsd-questions@FreeBSD.ORG Tue May 29 19:46:21 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7639216A400 for ; Tue, 29 May 2007 19:46:21 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.freebsd.org (Postfix) with ESMTP id 2779313C458 for ; Tue, 29 May 2007 19:46:21 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from doc.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1Ht7e7-000KEM-36; Tue, 29 May 2007 23:46:19 +0400 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Ht7fH-0000JU-9l; Tue, 29 May 2007 23:47:31 +0400 To: "Michael K. Smith - Adhost" References: <17838240D9A5544AAA5FF95F8D52031602170E9B@ad-exh01.adhost.lan> From: Boris Samorodov Date: Tue, 29 May 2007 23:47:31 +0400 In-Reply-To: <17838240D9A5544AAA5FF95F8D52031602170E9B@ad-exh01.adhost.lan> (Michael K. Smith's message of "Tue\, 29 May 2007 08\:35\:24 -0700") Message-ID: <89479052@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: amd64 GENERIC fails to compile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2007 19:46:21 -0000 On Tue, 29 May 2007 08:35:24 -0700 Michael K. Smith - Adhost wrote: > Hello All: > We have a system that was built with the amd64 source (uname -a below). > I was attempting to make a custom kernel and the make kept failing so I > decided to try the make against GENERIC. It fails at the same place in > GENERIC as the custom kernel. Here is the output. It's failing on the > 3Ware driver and fails even if I comment out the TWA driver in the > custom kernel. Try to add the following line to your /etc/make.conf: WITHOUT_MODULES=twa > We have a kernel module loaded dynamically (twa96SE.ko) > to support the 9650 RAID controller. Any help in making the make work > would be greatly appreciated. > FreeBSD f1-bsd01.adhost.lan 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan > 12 08:32:24 UTC 2007 > root@portnoy.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > ===> twa (all) > cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE > -nostdinc -I- -I/usr/src/sys/modules/twa/../../dev/twa > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/src/sys/amd64/compile/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq > -I@/../include -finline-limit=8000 -fno-common -g > -fno-omit-frame-pointer -I/usr/src/sys/amd64/compile/GENERIC > -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx > -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding > -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual > -fformat-extensions -std=c99 -c /usr/src/sys/modules/twa/tw_cl_init.c > /usr/src/sys/modules/twa/tw_cl_init.c: In function > `tw_cl_ctlr_supported': > /usr/src/sys/modules/twa/tw_cl_init.c:68: error: `TW_CL_DEVICE_ID_9K_E' > undeclared (first use in this function) > /usr/src/sys/modules/twa/tw_cl_init.c:68: error: (Each undeclared > identifier is reported only once > /usr/src/sys/modules/twa/tw_cl_init.c:68: error: for each function it > appears in.) > /usr/src/sys/modules/twa/tw_cl_init.c: In function > `tw_cl_get_pci_bar_info': > /usr/src/sys/modules/twa/tw_cl_init.c:118: error: `TW_CL_DEVICE_ID_9K_E' > undeclared (first use in this function) > /usr/src/sys/modules/twa/tw_cl_init.c: In function `tw_cl_init_ctlr': > /usr/src/sys/modules/twa/tw_cl_init.c:335: error: `TW_CL_DEVICE_ID_9K_E' > undeclared (first use in this function) > *** Error code 1 > Stop in /usr/src/sys/modules/twa. > *** Error code 1 > Stop in /usr/src/sys/modules. > *** Error code 1 > Stop in /usr/src/sys/amd64/compile/GENERIC. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve