Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
39 Views

ERROR: incompatible kernel!

Hi,

I use a debian 5.04. Before I used the kernel 2.6.26-2 but I had this error ([ERROR] unable to open SELI interface) so I downgrade to the kernel 2.6.26-1. I reinstall Vtune and I rebuild a driver for this kernel.

This is the output of the comman ./build-driver :

Options in brackets "[ ... ]" indicate default values

that will be used when only the ENTER key is pressed.

C compiler to use: [ /usr/bin/gcc ] gcc-4.3

Make command to use: [ /usr/bin/make ]

Kernel source directory: [ /lib/modules/2.6.26-1-amd64/build ]

checking for template makefile ... Makefile.in

checking architecture ... x86_64

checking for kernel headers ... /lib/modules/2.6.26-1-amd64/build/include

checking if C compiler is working ... yes

checking if C compiler supports anonymous structs and unions ... yes

checking if C compiler supports large frame sizes ... no

checking kernel version ... 2.6.26-1-amd64

checking whether kernel modules can be built ... yes

checking if UP or SMP ... SMP

checking if LBRs are supported ... yes

checking if 32-bit ioctls are supported ... no

checking if mmap_*_read is supported ... no

checking if mm.h is available ... yes

checking if for_each_process is exported ... yes

checking if task_struct has a parent field... yes

checking which type of remap to use ... remap_pfn_range

checking if read_trylock is available ... yes

checking if write_trylock is available ... yes

checking if set_user_nice is available ... yes

checking if msecs_to_jiffies is available ... yes

checking for kernel symbol file ... /boot/System.map-2.6.26-1-amd64

checking if kernel exports CPU frequency ... yes

checking if kernel profile hooks exist ... yes

checking if tasklist_lock is exported ... no

checking if on_each_cpu has retry parameter ... yes

checking how to access task information ...find_task_by_pid

rm -f vtune.o random.o pcg.o per_cpu_buffer.o os_dependent.o user_status.o plugin.o utility.o vtune.o random.o pcg.o per_cpu_buffer.o os_dependent.o user_status.o plugin.o utility.o vtlib32_64.o vtxsys32_64.o apic32_64.o vtlibcommon32.o profile_hooks.o .*.cmd built-in.o .*.o.d vtune_drv.o vtune_drv.ko vtune_drv.mod.* Module*.symvers Module*.markers modules.order

rm -rf .tmp_versions

rm -f vtune_drv-x32_64-2.6.26-1-amd64smp.ko

/usr/bin/make "V=0" -C /lib/modules/2.6.26-1-amd64/build SUBDIRS=/opt/intel/vtune/vdk/src modules

make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-amd64'

CC /opt/intel/vtune/vdk/src/vtune.o

CC /opt/intel/vtune/vdk/src/random.o

CC /opt/intel/vtune/vdk/src/pcg.o

CC /opt/intel/vtune/vdk/src/per_cpu_buffer.o

CC /opt/intel/vtune/vdk/src/os_dependent.o

CC /opt/intel/vtune/vdk/src/user_status.o

CC /opt/intel/vtune/vdk/src/plugin.o

CC /opt/intel/vtune/vdk/src/utility.o

CC /opt/intel/vtune/vdk/src/vtlib32_64.o

AS /opt/intel/vtune/vdk/src/vtxsys32_64.o

CC /opt/intel/vtune/vdk/src/apic32_64.o

CC /opt/intel/vtune/vdk/src/vtlibcommon32.o

CC /opt/intel/vtune/vdk/src/profile_hooks.o

LD /opt/intel/vtune/vdk/src/vtune_drv.o

Building modules, stage 2.

MODPOST 1 modules

CC /opt/intel/vtune/vdk/src/vtune_drv.mod.o

LD /opt/intel/vtune/vdk/src/vtune_drv.ko

make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-amd64'

Renamed vtune_drv.ko to vtune_drv-x32_64-2.6.26-1-amd64smp.ko .

Directory to install sampling driver: [ /opt/intel/vtune/vdk/src ] ..

Installed sampling driver to /opt/intel/vtune/vdk/vtune_drv-x32_64-2.6.26-1-amd64smp.ko .


When I type the command ./insmod-vtune, there is this error :

ERROR: incompatible kernel!

The kernel that sampling driver vtune_drv-x32_64-2.6.26-1-amd64smp.ko

was built against does not match kernel /boot/vmlinuz-2.6.26-1-amd64 .

Please see driver README for instructions on building a driver

for your kernel.


I don't understand why the command insmod-vtune return ths error, the driver seems good.

If any body have clue what is going on please help.

regards, nico

0 Kudos
1 Reply
Highlighted
Beginner
39 Views

I solve my problem, I has not use the same compiler for the kernel and the driver.
I has not read the README of /vdk/src/ :

Requirements for building the VTune Performance Analyzer sampling driver:

- a Linux* system with an IA32 processor (with or without Intel Extended

Memory 64 Technology) or with an Itanium processor

- system must have GCC compiler version 2.96 or higher installed

- same compiler used to build the kernel should be used to build the driver

- system must have GLIBC version 2.2.2 or higher installed

- system must have development environment (e.g., glibc-devel*.rpm) installed

0 Kudos