Page 1 of 1

Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Posted: 24. Jul 2018, 02:06
by hal858
I run

Code: Select all

lsb_release -rd
	Description:    openSUSE Leap 15.0
	Release:        15.0

uname -rm
	4.17.9-lp150.3.g059e5b8-default x86_64
kernel's prepped as usual,

Code: Select all

cd /usr/src/linux
pwd
	/usr/src/linux-4.17.9-lp150.3.g059e5b8
make V=1 oldconfig
make V=1 prepare
make V=1 modules_prepare

I upgraded to latest VBox rpm,

Code: Select all

d.v.o/virtualbox/5.2.16/VirtualBox-5.2-5.2.16_123759_openSUSE150-1.x86_64.rpm

rpm -qa | grep -i virtualbox
	VirtualBox-5.2-5.2.16_123759_openSUSE150-1.x86_64
non-verbose exec of setup appears ok,

Code: Select all

sh /usr/lib/virtualbox/vboxdrv.sh setup
	vboxdrv.sh: Stopping VirtualBox services.
	vboxdrv.sh: Starting VirtualBox services.
	vboxdrv.sh: Building VirtualBox kernel modules.

lsmod | grep -i vbox
	vboxpci                28672  0
	vboxnetadp             28672  0
	vboxnetflt             32768  0
	vboxdrv               483328  3 vboxpci,vboxnetadp,vboxnetflt
But, closer, verbose inspection of the build with, reports ERRORs; multiple instances of,

Code: Select all

sh -x /usr/lib/virtualbox/vboxdrv.sh setup
	...
	make -C /usr/src/linux-4.17.9-lp150.3.g059e5b8-obj/x86_64/default KBUILD_SRC=/usr/src/linux-4.17.9-lp150.3.g059e5b8 \
	-f /usr/src/linux-4.17.9-lp150.3.g059e5b8/Makefile modules_install
	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 /lib/modules/4.17.9-lp150.3.g059e5b8-default/misc
	...
, despite the prior, successfful kernel prep.

It doesn't appear to affect the app. Vbox launches on Desktop, and VMs launch & function as usual.

Is this build-script noise? Or a real build issue?

Re: Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Posted: 24. Jul 2018, 08:51
by andyp73
If you read the script properly you will see that the lines starting from "test -e" all the way to "/bin/false) are all part of the same command. Those that start with "echo" only get executed if the test command fails.

-Andy.

Re: Multiple "ERROR: Kernel configuration is invalid" in VBox/OpensuseLeap15 rpm's 'setup'

Posted: 24. Jul 2018, 19:01
by hal858
> If you read the script properly

Yep, that'd be a good start! pebkac. thx.