Re: include/asm/irq_vectors.h not found

Petr Vandrovec (vandrove@vc.cvut.cz)
Wed, 2 Oct 2002 23:08:48 +0200


On Wed, Oct 02, 2002 at 01:59:39PM -0700, tim wrote:
> 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...).

> 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

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
vandrove@vc.cvut.cz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/