amd64 GENERIC fails to compile

Michael K. Smith - Adhost mksmith at adhost.com
Tue May 29 15:35:25 UTC 2007


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.  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 at 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.


Regards,

Mike


More information about the freebsd-questions mailing list