el7: drivers do not compile with kernel 4.15.0

Discussions related to using VirtualBox on Linux hosts.
Post Reply
cparg
Posts: 3
Joined: 3. Feb 2018, 16:37

el7: drivers do not compile with kernel 4.15.0

Post 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
Last edited by socratis on 4. Feb 2018, 15:01, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
cparg
Posts: 3
Joined: 3. Feb 2018, 16:37

Re: el7: drivers do not compile with kernel 4.15.0

Post 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 ?
cparg
Posts: 3
Joined: 3. Feb 2018, 16:37

Re: el7: drivers do not compile with kernel 4.15.0

Post by cparg »

... same with 4.15.2

... no advise ?
markd89
Posts: 34
Joined: 4. Sep 2016, 22:54

Re: el7: drivers do not compile with kernel 4.15.0

Post by markd89 »

Does 4.14 work?

Edit: Yes. I just tried it.

Is there documentation somewhere which shows the latest supported Kernel version?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: el7: drivers do not compile with kernel 4.15.0

Post 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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Thorfin
Posts: 3
Joined: 12. Feb 2018, 11:18

Re: el7: drivers do not compile with kernel 4.15.0

Post 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...
Last edited by socratis on 12. Feb 2018, 12:07, edited 1 time in total.
Reason: Added missing URL.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: el7: drivers do not compile with kernel 4.15.0

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Thorfin
Posts: 3
Joined: 12. Feb 2018, 11:18

Re: el7: drivers do not compile with kernel 4.15.0

Post 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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: el7: drivers do not compile with kernel 4.15.0

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Thorfin
Posts: 3
Joined: 12. Feb 2018, 11:18

Re: el7: drivers do not compile with kernel 4.15.0

Post 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?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: el7: drivers do not compile with kernel 4.15.0

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply