I'm trying to compile the FusionIO drivers based on these instructions:
https://www.thomas-krenn.com/en/wiki/Fusion-io_ioDrive_use_with_Debian
But when I try to run dpkg-buildpackage, I get the following error:
Any idea how I can get this working?
https://www.thomas-krenn.com/en/wiki/Fusion-io_ioDrive_use_with_Debian
But when I try to run dpkg-buildpackage, I get the following error:
Code:
CC [M] /root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kscatter.o
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kfio.c: In function ‘kfio_bind_kthread_to_node’:
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kfio.c:1074:9: error: implicit declaration of function ‘cpus_weight’ [-Werror=implicit-function-declaration]
if (cpumask && cpus_weight(*cpumask))
^
CC [M] /root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/ktime.o
CC [M] /root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/sched.o
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.c: In function ‘kfio_vmalloc’:
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.c:645:5: error: implicit declaration of function ‘vmalloc’ [-Werror=implicit-function-declaration]
return vmalloc(size);
^
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.c:645:5: warning: return makes pointer from integer without a cast
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.c: In function ‘kfio_vfree’:
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.c:661:5: error: implicit declaration of function ‘vfree’ [-Werror=implicit-function-declaration]
vfree(ptr);
^
CC [M] /root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/cdev.o
CC [M] /root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kblock.o
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.o' failed
make[3]: *** [/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kmem.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kfio.o' failed
make[3]: *** [/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kfio.o] Error 1
In file included from /root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kblock.c:59:0:
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kblock.c: In function ‘kfio_dump_bio’:
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kblock.c:937:53: error: ‘const struct bio’ has no member named ‘bi_cnt’
msg, bio->bi_max_vecs, atomic_read(&bio->bi_cnt), bio->bi_io_vec,
^
/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/include/fio/port/dbgset.h:202:58: note: in definition of macro ‘infprint’
#define infprint(...) kfio_print(KERN_INFO "fioinf " AT __VA_ARGS__)
^
scripts/Makefile.build:258: recipe for target '/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kblock.o' failed
make[3]: *** [/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source/kblock.o] Error 1
Makefile:1398: recipe for target '_module_/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source' failed
make[2]: *** [_module_/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.2.2-1-pve'
Makefile:82: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/root/iodrive2/iomemory-vsl-3.2.11.1581/driver_source'
ERROR:
debian/rules:98: recipe for target 'build-arch-stamp' failed
make: *** [build-arch-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Any idea how I can get this working?