P&E driver compile failure
Dave Meador
dave at meadorresearch.com
Fri Mar 13 01:28:39 UTC 2009
Hello,
I tried to compile the P&E driver provided with the G++ Lite
coldfire-4.3-43-m68k-linux-gnu package and it failed with the following
output. The kernel that I am using is 2.6.27.5-37.fc9.i686, and I have
the kernel-devel-* and kernel-headers-* rpms installed.
[user at Europa unit_cfz_install_ver_332_920]$ sudo ./setup.sh
cleaned old version install
loading cache ./config.cache
checking for cpu architecture... i386
checking for WinDriver root directory...
/usr/local/PEMicrocomputerSystems/windriver
checking for linux kernel source... found at
/lib/modules/2.6.27.5-37.fc9.i686/build
checking for lib directory... ln -sf $(ROOT_DIR)/lib/$(SHARED_OBJECT).so
/usr/lib/$(SHARED_OBJECT).so
checking which directories to include...
-I/lib/modules/2.6.27.5-37.fc9.i686/source/include
-I/lib/modules/2.6.27.5-37.fc9.i686/source/include/asm/mach-default
checking linux kernel version...
2.6.27.5-37.fc9.i686
checking for modules installation directory...
/lib/modules/2.6.27.5-37.fc9.i686/kernel/drivers/misc
checking for gcc kernel version...
4
checking output directory...
LINUX.2.6.27.5-37.fc9.i686.i386
checking target...
LINUX.2.6.27.5-37.fc9.i686.i386/windrvr6.ko
checking for usb support...
yes
checking for regparm kernel option...
1
checking for right linked object... windrvr_gcc_v3_regparm.a
checking for modpost location...
/lib/modules/2.6.27.5-37.fc9.i686/build/scripts/mod/modpost
checking for udev support... no
creating ./config.status
creating makefile
rm -f core LINUX.2.6.27.5-37.fc9.i686.i386/windrvr6.ko
LINUX.2.6.27.5-37.fc9.i686.i386/*
cc -c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE -DWINDRIVER_KERNEL
-DLINUX_USB_SUPPORT -mpreferred-stack-boundary=2 -mregparm=3 -nostdinc
-iwithprefix include -Wstrict-prototypes -Wno-trigraphs
-fno-common -pipe -O -I/lib/modules/2.6.27.5-37.fc9.i686/source/include
-I/lib/modules/2.6.27.5-37.fc9.i686/source/include/asm/mach-default
-I/usr/local/PEMicrocomputerSystems/windriver/include
-I/usr/local/PEMicrocomputerSystems/windriver -fno-strict-aliasing
-D"KBUILD_STR(s)=#s" -D"KBUILD_MODNAME=KBUILD_STR(windrvr6)"
-D"KBUILD_BASENAME=KBUILD_STR(windrvr6)"-include
/lib/modules/2.6.27.5-37.fc9.i686/build/include/linux/autoconf.h -c -o
LINUX.2.6.27.5-37.fc9.i686.i386/linux_wrappers.o linux_wrappers.c
linux_wrappers.c:306: error: unknown field 'nopage' specified in initializer
linux_wrappers.c:306: warning: initialization from incompatible pointer type
linux_wrappers.c: In function 'build_dma_list_26':
linux_wrappers.c:1791: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c:1798: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c: In function 'LINUX_free_sg_dma':
linux_wrappers.c:1954: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c:1955: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c:1956: error: 'struct scatterlist' has no member named
'page'
make: *** [LINUX.2.6.27.5-37.fc9.i686.i386/linux_wrappers.o] Error 1
cc -c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE -DWINDRIVER_KERNEL
-DLINUX_USB_SUPPORT -mpreferred-stack-boundary=2 -mregparm=3 -nostdinc
-iwithprefix include -Wstrict-prototypes -Wno-trigraphs
-fno-common -pipe -O -I/lib/modules/2.6.27.5-37.fc9.i686/source/include
-I/lib/modules/2.6.27.5-37.fc9.i686/source/include/asm/mach-default
-I/usr/local/PEMicrocomputerSystems/windriver/include
-I/usr/local/PEMicrocomputerSystems/windriver -fno-strict-aliasing
-D"KBUILD_STR(s)=#s" -D"KBUILD_MODNAME=KBUILD_STR(windrvr6)"
-D"KBUILD_BASENAME=KBUILD_STR(windrvr6)"-include
/lib/modules/2.6.27.5-37.fc9.i686/build/include/linux/autoconf.h -c -o
LINUX.2.6.27.5-37.fc9.i686.i386/linux_wrappers.o linux_wrappers.c
linux_wrappers.c:306: error: unknown field 'nopage' specified in initializer
linux_wrappers.c:306: warning: initialization from incompatible pointer type
linux_wrappers.c: In function 'build_dma_list_26':
linux_wrappers.c:1791: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c:1798: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c: In function 'LINUX_free_sg_dma':
linux_wrappers.c:1954: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c:1955: error: 'struct scatterlist' has no member named
'page'
linux_wrappers.c:1956: error: 'struct scatterlist' has no member named
'page'
make: *** [LINUX.2.6.27.5-37.fc9.i686.i386/linux_wrappers.o] Error 1
Waiting 15 seconds for windriver's kernel module to load...
********* ********** ********** ******** *********
********* ********** ********** ******** *********
********* ********** ********** ******** *********
********* P&E Install has failed******** *********
********* ********** ********** ******** *********
********* ********** ********** ******** *********
********* ********** ********** ******** *********
Please advise,
Dave
More information about the coldfire-gnu-discuss
mailing list