请教编译安装一个JTAG 驱动出现的问题!!!

编译打包和其他
回复
yh1980yh
帖子: 4
注册时间: 2007-06-08 21:27

请教编译安装一个JTAG 驱动出现的问题!!!

#1

帖子 yh1980yh » 2007-07-03 8:49

我在 Ubuntu 7.04 下面安装一个可以在 redhat linux 下面能安装的的 JTAG 驱动,编译的时候提示如下的错误。
linux_wrappers.c:590: error: incompatible types in assignment
是说,不兼容。 我没有改任何的源代码,怎么会出现这样的错误了?????????????




--Installing windrvr6---------------------------------------------
--Checking version.
--File /lib/modules/2.6.20-16-generic/kernel/drivers/misc/windrvr6.ko does not exist.
--File LINUX.2.6.20-16-generic.i386/windrvr6.ko does not exist.
--Setting source version to 900.
--File LINUX.2.6.20-16-generic.i386/windrvr6.ko is newer than the destination file.
loading cache ./config.cache
checking for cpu architecture... i386
checking for WinDriver root directory... /home/install_drivers/linux_drivers/windriver32
checking for linux kernel source... found at /lib/modules/2.6.20-16-generic/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.20-16-generic/build/include -I/lib/modules/2.6.20-16-generic/build/include/asm/mach-default
checking linux kernel version... 2.6.20-16-generic
checking for modules installation directory... /lib/modules/2.6.20-16-generic/kernel/drivers/misc
checking for gcc kernel version... 4
checking output directory... LINUX.2.6.20-16-generic.i386
checking target... LINUX.2.6.20-16-generic.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.20-16-generic/build/scripts/mod/modpost
checking for udev support... no
creating ./config.status
creating makefile
rm -f core LINUX.2.6.20-16-generic.i386/windrvr6.ko LINUX.2.6.20-16-generic.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.20-16-generic/build/include -I/lib/modules/2.6.20-16-generic/build/include/asm/mach-default -I/home/install_drivers/linux_drivers/windriver32/include -I/home/install_drivers/linux_drivers/windriver32 -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.20-16-generic/build/include/linux/autoconf.h -c -o LINUX.2.6.20-16-generic.i386/linux_wrappers.o linux_wrappers.c
In file included from /lib/modules/2.6.20-16-generic/build/include/linux/prefetch.h:14,
from /lib/modules/2.6.20-16-generic/build/include/linux/list.h:8,
from /lib/modules/2.6.20-16-generic/build/include/linux/pci.h:48,
from linux_wrappers.c:19:
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h: In function 'cpuid_count':
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 1 of '__cpuid' differ in signedness
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 2 of '__cpuid' differ in signedness
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 3 of '__cpuid' differ in signedness
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 4 of '__cpuid' differ in signedness
linux_wrappers.c: In function 'LINUX_bh_alloc':
linux_wrappers.c:590: error: incompatible types in assignment
linux_wrappers.c:592: warning: assignment from incompatible pointer type
linux_wrappers.c: In function 'LINUX_request_irq':
linux_wrappers.c:678: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make: *** [LINUX.2.6.20-16-generic.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.20-16-generic/build/include -I/lib/modules/2.6.20-16-generic/build/include/asm/mach-default -I/home/install_drivers/linux_drivers/windriver32/include -I/home/install_drivers/linux_drivers/windriver32 -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.20-16-generic/build/include/linux/autoconf.h -c -o LINUX.2.6.20-16-generic.i386/linux_wrappers.o linux_wrappers.c
In file included from /lib/modules/2.6.20-16-generic/build/include/linux/prefetch.h:14,
from /lib/modules/2.6.20-16-generic/build/include/linux/list.h:8,
from /lib/modules/2.6.20-16-generic/build/include/linux/pci.h:48,
from linux_wrappers.c:19:
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h: In function 'cpuid_count':
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 1 of '__cpuid' differ in signedness
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 2 of '__cpuid' differ in signedness
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 3 of '__cpuid' differ in signedness
/lib/modules/2.6.20-16-generic/build/include/asm/processor.h:611: warning: pointer targets in passing argument 4 of '__cpuid' differ in signedness
linux_wrappers.c: In function 'LINUX_bh_alloc':
linux_wrappers.c:590: error: incompatible types in assignment
linux_wrappers.c:592: warning: assignment from incompatible pointer type
linux_wrappers.c: In function 'LINUX_request_irq':
linux_wrappers.c:678: warning: passing argument 2 of 'request_irq' from incompatible pointer type
make: *** [LINUX.2.6.20-16-generic.i386/linux_wrappers.o] Error 1
--make windrvr install rc= 2
--install_windrvr6 rc = 2
--Module windrvr6 is not running.
--Module xpc4drvr is not running.
--Note: By default, the file permission of /dev/windrvr6 is enabled for the root user only
and must be changed to allow access to other users.
lqjogq
帖子: 3
注册时间: 2006-06-30 16:54

#2

帖子 lqjogq » 2007-07-13 11:06

你搞定了没有阿,我也是一样 也是xilinx的 jtag,也出一样的问题
lqjogq
帖子: 3
注册时间: 2006-06-30 16:54

#3

帖子 lqjogq » 2007-07-18 19:26

没人能回答这个问题吗???
回复