I have:
# lsb_release -a
No LSB modules are available.
Distributor ID:Ubuntu
Description:Ubuntu 17.10
Release:17.10
Codename:artful
# uname -a
Linux e7240 4.13.0-17-generic #20-Ubuntu SMP Mon Nov 6 10:04:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
And the following fails:
Code: Select all
# dkms build -m veeamsnap -v 1.0.1.364
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.13.0-17-generic -C /lib/modules/4.13.0-17-generic/build M=/var/lib/dkms/veeamsnap/1.0.1.364/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.13.0-17-generic (x86_64)
Consult /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log for more information.
Code: Select all
# cat /var/lib/dkms/veeamsnap/1.0.1.364/build/make.log
DKMS make.log for veeamsnap-1.0.1.364 for kernel 4.13.0-17-generic (x86_64)
Thu Dec 7 13:24:22 CET 2017
make: Entering directory '/usr/src/linux-headers-4.13.0-17-generic'
AR /var/lib/dkms/veeamsnap/1.0.1.364/build/built-in.o
CC [M] /var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o
CC [M] /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_array_1lv.o
CC [M] /var/lib/dkms/veeamsnap/1.0.1.364/build/container.o
CC [M] /var/lib/dkms/veeamsnap/1.0.1.364/build/sparse_bitmap.o
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c: In function ‘dbg_kmalloc_huge’:
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: error: ‘__GFP_REPEAT’ undeclared (first use in this function); did you mean ‘__GFP_RECLAIM’?
ptr = dbg_kmalloc( max_size, flags | __GFP_NOWARN | __GFP_REPEAT);
^~~~~~~~~~~~
__GFP_RECLAIM
/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.c:138:55: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:302: recipe for target '/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o' failed
make[1]: *** [/var/lib/dkms/veeamsnap/1.0.1.364/build/mem_alloc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1546: recipe for target '_module_/var/lib/dkms/veeamsnap/1.0.1.364/build' failed
make: *** [_module_/var/lib/dkms/veeamsnap/1.0.1.364/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.13.0-17-generic'