include/asm/irq_vectors.h not found
when installing dri drivers for my gfx card (r200-20020927-linux.i386) i get the following error during kernel module compilation:
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include /lib/modules/2.5.39/build/include/linux/modversions.h -DEXPORT_SYMTAB -I/lib/modules/2.5.39/build/include -c radeon_drv.c -o radeon_drv.o In file included from /lib/modules/2.5.39/build/include/linux/irq.h:19,
from /lib/modules/2.5.39/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.39/build/include/linux/interrupt.h:44,
from drm_os_linux.h:3,
from drmP.h:75,
from radeon_drv.c:32:/lib/modules/2.5.39/build/include/asm/irq.h:16: irq_vectors.h: No such file or directory
make: *** [radeon_drv.o] Error 1
this is with linux kernel version 2.5.39 and 2.5.40 (wasn't a problem in 2.5.36). here is my kernel .config:
CONFIG_X86=yCONFIG_ISA=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=yCONFIG_EXPERIMENTAL=yCONFIG_NET=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_MODULES=yCONFIG_MODVERSIONS=yCONFIG_KMOD=yCONFIG_MK7=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_USE_3DNOW=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_UP_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_MCE=yCONFIG_X86_MCE_NONFATAL=yCONFIG_NOHIGHMEM=yCONFIG_MTRR=yCONFIG_PM=yCONFIG_APM=yCONFIG_APM_DO_ENABLE=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_NAMES=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_ELF=yCONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_LOOP=mCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_IDEDISK_MULTI_MODE=yCONFIG_BLK_DEV_IDECD=yCONFIG_BLK_DEV_CMD640=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=yCONFIG_BLK_DEV_VIA82CXXX=yCONFIG_IDEDMA_AUTO=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_SCSI=mCONFIG_BLK_DEV_SR=mCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_SR_EXTRA_DEVS=2CONFIG_CHR_DEV_SG=mCONFIG_UNIX=yCONFIG_INET=yCONFIG_IPV6_SCTP__=yCONFIG_NETDEVICES=yCONFIG_DUMMY=mCONFIG_NET_ETHERNET=yCONFIG_NET_VENDOR_3COM=yCONFIG_VORTEX=mCONFIG_INPUT=yCONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=yCONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=yCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=yCONFIG_AGP=yCONFIG_AGP_VIA=yCONFIG_DRM=yCONFIG_EXT3_FS=yCONFIG_JBD=yCONFIG_FAT_FS=mCONFIG_VFAT_FS=mCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_ISO9660_FS=mCONFIG_PROC_FS=yCONFIG_DEVFS_FS=yCONFIG_DEVFS_MOUNT=yCONFIG_EXT2_FS=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_VGA_CONSOLE=yCONFIG_SOUND=mCONFIG_SND=mCONFIG_SND_SEQUENCER=mCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=mCONFIG_SND_PCM_OSS=mCONFIG_SND_VIA8233=mCONFIG_USB=mCONFIG_USB_UHCI_HCD_ALT=mCONFIG_USB_HID=mCONFIG_X86_EXTRA_IRQS=yCONFIG_X86_FIND_SMP_CONFIG=yCONFIG_X86_MPPARSE=yCONFIG_SECURITY_CAPABILITIES=yCONFIG_X86_BIOS_REBOOT=y
tim
Quoted 1 line · tim
when installing dri drivers for my gfx card (r200-20020927-linux.i386) i get the following error during kernel module compilation:
VMware suffers from same problem. Because of I do not support VMware on SGI visual workstation, I now use an additional -I/lib/modules/uname -r/build/arch/i386/mach-generic
in vmmon/vmnet Makefile, and for 2.5.x it is required to have full kernel source installed, not only kernel-headers package (if there is some distro that distributes kernel-headers 2.5.x package...).
Quoted 9 lines
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include
/lib/modules/2.5.39/build/include/linux/modversions.h-DEXPORT_SYMTAB -I/lib/modules/2.5.39/build/include -cradeon_drv.c-o radeon_drv.o In file included from/lib/modules/2.5.39/build/include/linux/irq.h:19,from /lib/modules/2.5.39/build/include/asm/hardirq.h:6, from /lib/modules/2.5.39/build/include/linux/interrupt.h:44, from drm_os_linux.h:3, from drmP.h:75, from radeon_drv.c:32:
/lib/modules/2.5.39/build/include/asm/irq.h:16:irq_vectors.h: No such file or directory
make: *** [radeon_drv.o] Error 1
I think that behavior should be changed. irq_vectors.h (and eventually other .h) should be moved to include/asm-i386/irq_vectors-generic.h (or irq_vectors-visws.h) and irq_vectors.h should be either appropriate symlink, or simple
#ifdef CONFIG_VISWS
#include <irq_vectors-visws.h>
#else
#include <irq_vectors-generic.h>
#endif
Or vendors should be taught to install properly configured kernel-sources by default, so that we can use (cd /lib/modules/uname -r/build; make SUBDIRS=pwd modules) (or how it works in 2.5.x kbuild) instead of just trying to guess compiler, compiler options and include paths because of by default vendors's sources are configured for something else than running kernel (f.e. -Xcustom instead of -X in EXTRAVERSION in main makefile).
Best regards,
Petr Vandrovec [email protected]
Quoted 11 lines · tim
when installing dri drivers for my gfx card (r200-20020927-linux.i386) i get the following error during kernel module compilation:
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -DMODVERSIONS -include
/lib/modules/2.5.39/build/include/linux/modversions.h-DEXPORT_SYMTAB -I/lib/modules/2.5.39/build/include -cradeon_drv.c-o radeon_drv.o In file included from/lib/modules/2.5.39/build/include/linux/irq.h:19,from /lib/modules/2.5.39/build/include/asm/hardirq.h:6, from /lib/modules/2.5.39/build/include/linux/interrupt.h:44, from drm_os_linux.h:3, from drmP.h:75, from radeon_drv.c:32:
/lib/modules/2.5.39/build/include/asm/irq.h:16:irq_vectors.h: No such file or directory
make: *** [radeon_drv.o] Error 1
Try changing the line in irq.h from:
#include "irq_vectors.h"
to
#include <irq_vectors.h>
This should make it locate the file in arch/i386/mach-generic/irq_vectors.h
Sam