Error: Bad return status for module build on kernel: 4.9.0-2-amd64 (x86_64)

552 views
Skip to first unread message

faber

unread,
Mar 11, 2017, 10:29:15 AM3/11/17
to qubes...@googlegroups.com
I'm trying to adopt the kernel image 4.9.0-2-amd64 on my Debian 9
TemplateVM.

After installing the image and its headers, I do the following command:

--------------------------------------
sudo dkms autoinstall -k 4.9.0-2-amd64
--------------------------------------

And get the following output:


-------------------------------------------------------------------------
Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=4.9.0-2-amd64 KVERSION=4.9.0-2-amd64...(bad exit
status: 2)
Error! Bad return status for module build on kernel: 4.9.0-2-amd64 (x86_64)
Consult /var/lib/dkms/digimend/6/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j2 KERNELRELEASE=4.9.0-2-amd64 -C /lib/modules/4.9.0-2-amd64/build
M=/var/lib/dkms/u2mfn/3.2.3/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.9.0-2-amd64 (x86_64)
Consult /var/lib/dkms/u2mfn/3.2.3/build/make.log for more information.
-------------------------------------------------------------------------



And the output of /var/lib/dkms/u2mfn/3.2.3/build/make.log is:


-------------------------------------------------------------------------
DKMS make.log for u2mfn-3.2.3 for kernel 4.9.0-2-amd64 (x86_64)
Sat Mar 11 16:13:29 CET 2017
make: Entering directory '/usr/src/linux-headers-4.9.0-2-amd64'
LD /var/lib/dkms/u2mfn/3.2.3/build/built-in.o
CC [M] /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o
/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c: In function ‘u2mfn_ioctl’:
/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:80:23: error: passing argument 5
of ‘get_user_pages’ from incompatible pointer type
[-Werror=incompatible-pointer-types]
(data, 1, 1, 0, &user_page, 0);
^
In file included from /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:26:0:
/usr/src/linux-headers-4.9.0-2-common/include/linux/mm.h:1302:6: note:
expected ‘struct vm_area_struct **’ but argument is of type ‘struct page **’
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:79:9: error: too many arguments
to function ‘get_user_pages’
ret = get_user_pages
^~~~~~~~~~~~~~
In file included from /var/lib/dkms/u2mfn/3.2.3/build/u2mfn.c:26:0:
/usr/src/linux-headers-4.9.0-2-common/include/linux/mm.h:1302:6: note:
declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-2-common/scripts/Makefile.build:304: recipe
for target '/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o' failed
make[3]: *** [/var/lib/dkms/u2mfn/3.2.3/build/u2mfn.o] Error 1
/usr/src/linux-headers-4.9.0-2-common/Makefile:1507: recipe for target
'_module_/var/lib/dkms/u2mfn/3.2.3/build' failed
make[2]: *** [_module_/var/lib/dkms/u2mfn/3.2.3/build] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-4.9.0-2-amd64'
-------------------------------------------------------------------------



Any idea?

Thanks in advance

Nick Darren

unread,
Mar 12, 2017, 5:13:27 AM3/12/17
to faber, qubes...@googlegroups.com
This has happened because 'qubes-kernel-vm-support' package using the outdated 'u2mfn.c'.

Refer to this issue: https://github.com/QubesOS/qubes-issues/issues/2691

At the moment, you can simply fix this by copy the updated 'u2mfn.c' and replace your old one here: https://github.com/QubesOS/qubes-linux-utils/blob/master/kernel-modules/u2mfn/u2mfn.c

or just edit your 'u2mfn.c' and add the related lines from here: https://github.com/QubesOS/qubes-linux-utils/commit/e01745f66fd2b4b0035ce7e064f340faeb997675

Hope this help :)


signature.asc
Reply all
Reply to author
Forward
0 new messages