Page 1 of 1

el7: drivers do not compile with kernel 4.15.0

Posted: 3. Feb 2018, 16:43
by cparg
OS: CentOS 7
Kernel: 4.15.0-1.el7.elrepo.x86_64

Symptom: /var/log/vbox-install.log:

Code: Select all

make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.15.0-1.el7.elrepo.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
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 ./scripts/Makefile.build obj=/tmp/vbox.0
make[2]: *** No rule to make target `/tmp/vbox.0/linux/SUPDrv-linux.o', needed by `/tmp/vbox.0/vboxdrv.o'.  Stop.
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxdrv] Error 2
installed kernel-ml rpms:
  • kernel-ml-tools-4.15.0-1.el7.elrepo.x86_64
  • kernel-ml-tools-libs-4.15.0-1.el7.elrepo.x86_64
  • kernel-ml-devel-4.15.0-1.el7.elrepo.x86_64
  • kernel-ml-headers-4.15.0-1.el7.elrepo.x86_64
  • kernel-ml-4.15.0-1.el7.elrepo.x86_64

Code: Select all

[root@crusty vboxhost]# cd /usr/src/kernels/4.15.0-1.el7.elrepo.x86_64/
[root@crusty 4.15.0-1.el7.elrepo.x86_64]# make oldconfig && make prepare
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
make[1]: *** No rule to make target `arch/x86/entry/syscalls/syscall_32.tbl', needed by `arch/x86/include/generated/asm/syscalls_32.h'.  Stop.
make: *** [archheaders] Error 2

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 5. Feb 2018, 23:18
by cparg
... same with Kernel 4.15.1

Any advise where the missing rules supposed to come from ?
Is there more than the kernel-headers needed to build the modules ?

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 10. Feb 2018, 12:23
by cparg
... same with 4.15.2

... no advise ?

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 10. Feb 2018, 20:17
by markd89
Does 4.14 work?

Edit: Yes. I just tried it.

Is there documentation somewhere which shows the latest supported Kernel version?

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 11. Feb 2018, 03:26
by socratis
Just out of curiosity, have you checked the dates?
Please explain to me why you would expect 5.2.6 to be working with (a future) Linux 4.15... If support is added for a feature, usually it's documented in the changelog.

If you want to use the latest version for your host/guests, you should also consider doing the same for VirtualBox. Download the latest VirtualBox. If that doesn't work you should try the latest test builds, especially with all the Spectre/Meltdown patches coming in from all sides.

Even more cutting edge? Check the timeline of what's being checked in the source tree, look at the patches, see if anything related has been checked in. You might want to clear the "Opened and closed tickets" flag...


PS. Neither of you mentioned which VirtualBox version you were using, so I assumed the latest official release.

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 12. Feb 2018, 11:33
by Thorfin
I get the same error and log output as the OP when trying to build against kernel 4.15.2-1.el7 (Host Machine)

I have tried VirtualBox 5.2.6 and also 5.2.7 (Test Build) and neither work with this Kernel.

I can see a bug has been raised, ticket:17517 so am following that, but if anyone has any pointers that can get me back up and running it would be appreciated.

Also interestingly ticket:17456 seems to suggest this bug was fixed in 5.2.6...

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 12. Feb 2018, 12:11
by socratis
Thorfin wrote:Also interestingly ticket:17456 seems to suggest this bug was fixed in 5.2.6...
In #17456 it says to follow ticket #17320...

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 15. Feb 2018, 11:11
by Thorfin
For anyone following this thread, or who come across it on a search...

My issue was fixed by upgrading the Kernel to 4.15.3-1.el7

Now VirtualBox 5.2.6 works without upgrading on the VBox side.

Thankyou for all support on this.

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 15. Feb 2018, 12:35
by socratis
So, let me get this straight; 5.2.6 doesn't work with 4.15.2-1.el7, but it does work with the later edition of 4.15.3-1.el7?

That's got to be a first...

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 15. Feb 2018, 12:45
by Thorfin
Yes, that is correct in my situation.

another thing of interest is that within three days I upgraded my Kernel (as they were release by the repo) from 4.15.0 to 4.15.1 then 4.15.2 and finally this morning to 4.15.3... seems a lot of Kernel updates in a short period of time to me?

Re: el7: drivers do not compile with kernel 4.15.0

Posted: 15. Feb 2018, 12:54
by socratis
Have you heard of Spectre/Meltdown and that patches that keep on trying to address the issues, but kind of can't? I'd expect microcode, kernel and app updates to keep on coming from all over the place for at least a couple of months, if not more...