FS#54252 - [virtualbox-host-dkms] Can't load VirtualBox host modules, builded by gcc-7
Attached to Project:
Community Packages
Opened by Natrio (natrio) - Thursday, 01 June 2017, 09:13 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 04 July 2017, 12:38 GMT
Opened by Natrio (natrio) - Thursday, 01 June 2017, 09:13 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 04 July 2017, 12:38 GMT
|
Details
Description:
After gcc update from 6th to 7th branch, rebuilded VirtualBox host modules isn't working anymore: # vboxreload Unloading modules: Loading modules: modprobe: ERROR: could not insert 'vboxnetadp': Unknown symbol in module, or unknown parameter (see dmesg) modprobe: ERROR: could not insert 'vboxnetflt': Unknown symbol in module, or unknown parameter (see dmesg) modprobe: ERROR: could not insert 'vboxpci': Unknown symbol in module, or unknown parameter (see dmesg) modprobe: ERROR: could not insert 'vboxdrv': Unknown symbol in module, or unknown parameter (see dmesg) # dmesg ... [13026.141871] vboxdrv: Unknown symbol __udivmoddi4 (err 0) [13026.156710] vboxdrv: Unknown symbol __udivmoddi4 (err 0) [13026.194403] vboxdrv: Unknown symbol __udivmoddi4 (err 0) [13026.214177] vboxdrv: Unknown symbol __udivmoddi4 (err 0) This bug taking place on both kernels (ARCH and LTS) with "virtualbox-host-dkms" package, and pre-builded modules from "virtualbox-host-modules-arch" package too. |
This task depends upon
Closed by Christian Hesse (eworm)
Tuesday, 04 July 2017, 12:38 GMT
Reason for closing: Fixed
Additional comments about closing: virtualbox 5.1.22-3
virtualbox-guest-modules-arch 5.1.22-5
Tuesday, 04 July 2017, 12:38 GMT
Reason for closing: Fixed
Additional comments about closing: virtualbox 5.1.22-3
virtualbox-guest-modules-arch 5.1.22-5
vboxguest: Unknown symbol __udivmoddi4 (err 0)
So this is definitely a 32-bit issue.
I rebuilt the dkms guest modules, adding a slightly modified udivmoddi4.c (snatched from the host source and modified to use the 'quad' types) and that - temporarily - fixed the problem. At least I could boot up again. So, for some reason, __udivmoddi4 is missing from something - either the compiler environment or virtualbox. I've attached the udivmoddi4.c file I used to get it running.
I'm currently running linux-4.11.3 with gcc 7.1.1 and virtualbox-5.1.22. The previous combination did not have this issue - linux-4.11.2 + gcc-6.x.x + virtualbox-5.1.22, so I suspect that this may actually be a gcc problem that was manifested in the 6.x.x -> 7.x.x update.
I would like to know whose issue this is...
vboxguest: Unknown symbol __udivmoddi4 (err 0)
So this is definitely a 32-bit issue.
I rebuilt the dkms guest modules, adding a slightly modified udivmoddi4.c (snatched from the host source and modified to use the 'quad' types) and that - temporarily - fixed the problem. At least I could boot up again. So, for some reason, __udivmoddi4 is missing from something - either the compiler environment or virtualbox. I've attached the udivmoddi4.c file I used to get it running.
I'm currently running linux-4.11.3 with gcc 7.1.1 and virtualbox-5.1.22. The previous combination did not have this issue - linux-4.11.2 + gcc-6.x.x + virtualbox-5.1.22, so I suspect that this may actually be a gcc problem that was manifested in the 6.x.x -> 7.x.x update.
I would like to know whose issue this is...
The added udivmoddi4.c file is not from a third-party source - it's your own code originating from the host source tree.
Attached is a tar.gz file of the source files I changed/added. I did not create a patch.
The full, modified source archive (VirtualBox-5.1.22.tar.bz2) can be found at the above url (it's still uploading at the moment, but should be there soon).
Is there any?
$ svn diff -r 67289:67291 http://www.virtualbox.org/svn/vbox/ > 009.patch
The patches mentioned in the bug report fortunately they are a continuous series
$ svn diff -r 67291:67298 http://www.virtualbox.org/svn/vbox/ > 010.patch
Patches apply without error no further testing attempted hope that helps.
Edit:
Second command should be
$ svn diff -r 67292:67298 http://www.virtualbox.org/svn/vbox/ > 010.patch