Bug 5564

Summary: akmod-VirtualBox errors on build
Product: Fedora Reporter: Ivan Molodetskikh <yalterz>
Component: VirtualBox-kmodAssignee: Sérgio Basto <sergio>
Status: RESOLVED FIXED    
Severity: normal CC: ericbasil.rabi, xrootware
Priority: P1    
Version: f31   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: Build log on F32 Beta

Description Ivan Molodetskikh 2020-03-17 14:18:23 CET
The VirtualBox akmod gives an error during build:

└─ sudo akmods
Checking kmods exist for 5.5.8-200.fc31.x86_64             [  OK  ]
Building and installing VirtualBox-kmod                    [FAILED]
Building rpms failed; see /var/cache/akmods/VirtualBox/6.0.14-2-for-5.5.8-200.fc31.x86_64.failed.log for details

In the log:

2020/03/17 16:11:32 akmodsbuild: Building modules, stage 2.
2020/03/17 16:11:32 akmodsbuild: MODPOST 1 modules
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTStrPrintf" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTErrConvertToErrno" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTErrConvertFromErrno" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTLogLoggerEx" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTLogRelGetDefaultInstanceEx" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTStrToUInt32" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTR0Term" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!
2020/03/17 16:11:32 akmodsbuild: ERROR: "VBoxHost_RTR0Init" [/tmp/akmodsbuild.b93fWth0/BUILD/VirtualBox-kmod-6.0.14/_kmod_build_5.5.8-200.fc31.x86_64/vboxnetadp/vboxnetadp.ko] undefined!

└─ dnf list installed | grep VirtualBox
VirtualBox.x86_64                                  6.0.14-1.fc31                          @rpmfusion-free                                        
VirtualBox-kmodsrc.noarch                          6.0.14-1.fc31                          @rpmfusion-free                                        
VirtualBox-server.x86_64                           6.0.14-1.fc31                          @rpmfusion-free                                        
akmod-VirtualBox.x86_64                            6.0.14-2.fc31                          @rpmfusion-free                                        
kmod-VirtualBox.x86_64                             6.0.14-2.fc31                          @rpmfusion-free
Comment 1 Sérgio Basto 2020-03-17 16:19:42 CET
virtualbox-6.1.4 is available on updates
Comment 2 Ivan Molodetskikh 2020-03-17 17:36:10 CET
It could not be installed because if I'm not mistaken virtualbox-guest-additions are at version 6.1.2 and not 6.1.4. That's why I used 6.0.14.
Comment 3 Sérgio Basto 2020-03-17 20:28:10 CET
dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-609f2b37e9

[1] should be fixed , you want install server or virtualbox-guest-additions ?

 

[1]

https://bodhi.fedoraproject.org/updates/FEDORA-2020-609f2b37e9
Comment 4 Ivan Molodetskikh 2020-03-18 07:16:15 CET
I wanted to install just VirtualBox and got that error.

Well, anyhow, I upgraded to F32 Beta and now it's a different error.

└─ dnf list installed | grep VirtualBox
VirtualBox.x86_64                                  6.1.4-2.fc32                           @rpmfusion-free                                        
VirtualBox-kmodsrc.noarch                          6.1.4-2.fc32                           @rpmfusion-free                                        
VirtualBox-server.x86_64                           6.1.4-2.fc32                           @rpmfusion-free                                        
akmod-VirtualBox.x86_64                            6.1.4-1.fc32                           @rpmfusion-free

└─ sudo akmods
Checking kmods exist for 5.6.0-0.rc5.git0.2.fc32.x86_64    [  OK  ]
Building and installing VirtualBox-kmod                    [FAILED]
Building rpms failed; see /var/cache/akmods/VirtualBox/6.1.4-1-for-5.6.0-0.rc5.git0.2.fc32.x86_64.failed.log for details

I will attach the log.
Comment 5 Ivan Molodetskikh 2020-03-18 07:16:44 CET
Created attachment 2162 [details]
Build log on F32 Beta
Comment 6 Sérgio Basto 2020-03-18 13:30:58 CET
6.1.4-1-for- kernel 5.6.0-0.rc5.git0.2, I wasn't aware of kernel update to 5.6 , 

yes I need to fix it , thanks for the report
Comment 7 Sérgio Basto 2020-03-18 13:34:27 CET
*** Bug 5566 has been marked as a duplicate of this bug. ***
Comment 8 Rootware 2020-03-20 10:21:54 CET
Hello i was fix it manually by applying a patch from this thread from developer's site. https://www.virtualbox.org/ticket/19312

I applyied timetl patch to headers from installed binary package, and manually replace oremap_nocache to ioremap_cache() in memobj-r0drv-linux.c

I think this information can be useful.
Comment 9 Rootware 2020-03-20 12:27:54 CET
All works fine on VMBox 6.1.4 kernel 5.6.0.0 rc5 fc32
Comment 10 Basil Eric Rabi 2020-03-21 00:12:01 CET
Works now with the latest update.
Comment 11 Rootware 2020-03-21 07:24:45 CET
(In reply to Sérgio Basto from comment #6)
> 6.1.4-1-for- kernel 5.6.0-0.rc5.git0.2, I wasn't aware of kernel update to
> 5.6 , 
> 
> yes I need to fix it , thanks for the report

Dear Sergio, i try learn programming with learning some technologies. I it's important to me, cause i try. My information about code fixing was useful? It's was useful your team?
Comment 12 Ivan Molodetskikh 2020-03-21 10:55:31 CET
Confirming latest update works fine on F32 Beta.
Comment 13 Sérgio Basto 2020-03-21 13:33:55 CET
(In reply to Rootware from comment #8)
> Hello i was fix it manually by applying a patch from this thread from
> developer's site. https://www.virtualbox.org/ticket/19312
> 
> I applyied timetl patch to headers from installed binary package, and
> manually replace oremap_nocache to ioremap_cache() in memobj-r0drv-linux.c
> 
> I think this information can be useful.

I did the same I add https://build.opensuse.org/package/view_file/Virtualization/virtualbox/fixes_for_5.5.patch?expand=1 to VirtualBox-6.1.4-3 [1]



[1]
http://koji.rpmfusion.org/koji/packageinfo?packageID=260
Comment 14 Rootware 2020-03-21 17:55:55 CET
Great
Comment 16 Sérgio Basto 2020-03-26 01:02:39 CET
Fixed with 6.1.4-3