sles12 sp3 virtualbox tools build problem

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.

A common problem, particularly since I presume you just installed and
maybe applied patches, is around rebooting after doing anything with the
kernel. If you change the kernel suddenly the filesystem stuff is all
using kernel-new but, at least until you reboot, you are using kernel-old.
Be sure to reboot and that the output from ‘uname -a’ exactly matches the
kernel modules installed and used by whatever products needing to use or
compile kernel code or other modules.


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the
forum as I do not use the web interface often.

It’s not that old chestnut ab.

A virtualbox update to 5.1.28 fixed the issues I was having with the build on 5.1.26. At the time of release of SLES12 SP3, VB 5.1.26 was the latest - I updated to it before trying the install the first time. :slight_smile:

On 15/09/17 08:14, leh015 wrote:
[color=blue]

A virtualbox update to 5.1.28 fixed the issues I was having with the
build on 5.1.26. At the time of release of SLES12 SP3, VB 5.1.26 was the
latest - I updated to it before trying the install the first time. :)[/color]

Thanks for taking the time to report back.

Looking at the changelog for VirtualBox 5.1[1] I’m guessing it’s “Linux
hosts / guests: fixes for Linux 4.4 of openSUSE Leap 42.3 (bug #16966)”
that fixed it though your earlier comment “opensuse with roughly the
same kernel is working fine” makes me wonder whether perhaps you are
using a version of openSUSE with kernel <= 4.4.74? The linked bug[2]
suggests issue is with kernel >= 4.4.76.

HTH.

[1] https://www.virtualbox.org/wiki/Changelog
[2] https://www.virtualbox.org/ticket/16966

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Linux linux.suse 4.4.85-22-default #1 SMP Fri Sep 1 14:21:21 UTC 2017 (0c39a1f) x86_64 x86_64 x86_64 GNU/Linux

So I guess not. However I think the opensuse VM was running the Suse package of VB tools. I had not built them. Anyway, time to update its tools and patch it, now that I have actually turned it on to look for you.

On 18/09/17 01:44, leh015 wrote:
[color=blue]

Linux linux.suse 4.4.85-22-default #1 SMP Fri Sep 1 14:21:21 UTC 2017
(0c39a1f) x86_64 x86_64 x86_64 GNU/Linux

So I guess not. However I think the opensuse VM was running the Suse
package of VB tools. I had not built them. Anyway, time to update its
tools and patch it, now that I have actually turned it on to look for
you.[/color]

Well I guess not all bug descriptions are 100% accurate!

Thanks.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.