Hi All,
SP2 was working fine. opensuse with roughly the same kernel is working fine, although ships with the tools. Am I missing something? Errors look like this:
grep: /lib/modules/4.4.82-6.3-default/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.82-6.3-default/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
make -C /usr/src/linux-4.4.82-6.3-obj/x86_64/default KBUILD_SRC=/usr/src/linux-4.4.82-6.3 \
-f /usr/src/linux-4.4.82-6.3/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run ‘make oldconfig && make prepare’ on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f /usr/src/linux-4.4.82-6.3/scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/…
BUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(memobj_r0drv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/r0drv/linux/.tmp_memobj-r0drv-linux.o
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ÂrtR0MemObjNativeLockUserÂ:
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 1 of Âget_user_pages makes integer from pointer without a cast [enabled by default]
papVMAs); /* vmas */
^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âlong unsigned int but argument is of type Âstruct task_struct Â
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 2 of Âget_user_pages makes integer from pointer without a cast [enabled by default]
papVMAs); / vmas */
^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âlong unsigned int but argument is of type Âstruct mm_struct Â
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 4 of Âget_user_pages makes pointer from integer without a cast [enabled by default]
papVMAs); / vmas */
^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âstruct page *Â but argument is of type ÂintÂ
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 5 of Âget_user_pages makes pointer from integer without a cast [enabled by default]
papVMAs); / vmas */
^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âstruct vm_area_struct *Â but argument is of type ÂintÂ
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: error: too many arguments to function Âget_user_pagesÂ
papVMAs); / vmas */
^
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,
^
/usr/src/linux-4.4.82-6.3/scripts/Makefile.build:259: recipe for target ‘/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o’ failed
make[4]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
/usr/src/linux-4.4.82-6.3/Makefile:1431: recipe for target ‘module/tmp/vbox.0’ failed
make[3]: *** [module/tmp/vbox.0] Error 2
Makefile:150: recipe for target ‘sub-make’ failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target ‘__sub-make’ failed
make[1]: *** [__sub-make] Error 2
/tmp/vbox.0/Makefile.include.footer:85: recipe for target ‘vboxguest’ failed
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.