Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2007 23:47:31 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        "Michael K. Smith - Adhost" <mksmith@adhost.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: amd64 GENERIC fails to compile
Message-ID:  <89479052@srv.sem.ipt.ru>
In-Reply-To: <17838240D9A5544AAA5FF95F8D52031602170E9B@ad-exh01.adhost.lan> (Michael K. Smith's message of "Tue\, 29 May 2007 08\:35\:24 -0700")
References:  <17838240D9A5544AAA5FF95F8D52031602170E9B@ad-exh01.adhost.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89479052>