Article 4YB70 Virtualbox-addons 5.0.40 not building on 14.2 on two different systems.

Virtualbox-addons 5.0.40 not building on 14.2 on two different systems.

by
camorri
from LinuxQuestions.org on (#4YB70)
As the title says, I get a failure on building v-box addons package on a fully updated Slackware 64 bit system. I can build and install the other four packages for v-box and I have the latest acpica package installed.

I ran into this error after I upgraded my main PC to a new MB, a Gigabyte B540 Aorus Elite and a Ryzen 2600 cpu. On this box I have 3 drives, one with current, and two more drives with 14.2 64 bit systems.

After reading some threads on hardware Ryzen systems, I saw some people have some difficulties. I have resolved most of them, vbox was the main remaining problem. It took some time, I discovered v-box would not run because I did not have virtualization activated in the BIOS. BTW, I'm running this in compatibility mode, not UEFI mode. I removed v-box ( all 5 packages ) and tried to rebuild and install them. I fould a thread on another site that told me where to find the AMD-V option, its well hidden in the BIOS menus.

After activating AMD-v, v-box on my backup system came back to normal operation. I also install version 6 on my current system ( same hardware ), and it works.

Its not critical to get this working, since I have options on where I run v-box, I would just like to know why I can no longer build v-box addons on this system.

I also tried to build it on another box that is intel, not AMD. It fails there as well. There errors on both systems look the same to me, however I'm no expert.

Here are the last few lines from the sbopkg-build log.

Code:In file included from /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c:31:
/lib/modules/4.4.208/build/include/linux/mm.h:1221:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c:1086:18: error: too many arguments to function 'get_user_pages'
rc = get_user_pages(pTask, /* Task for fault accounting. */
^
In file included from /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c:31:
/lib/modules/4.4.208/build/include/linux/mm.h:1221:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
kmk: *** [/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/out/linux.amd64/release/obj/RuntimeGuestR0/r0drv/linux/memobj-r0drv-linux.o] Error 1
The failing command:
@gcc -c -O2 -fno-pie -nostdinc -iwithprefix include -include /lib/modules/4.4.208/build/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wstrict-prototypes -Wno-pointer-sign -Wno-sign-compare -fdiagnostics-show-option -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -include /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/include/VBox/VBoxGuestMangling.h -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables -funit-at-a-time -Wno-sign-compare -I/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux -I/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime -I/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/include -I/lib/modules/4.4.208/build/include -I/lib/modules/4.4.208/build/include/asm-i386/mach-default -I/lib/modules/4.4.208/build/include/asm-x86/mach-default -I/lib/modules/4.4.208/build/include/drm -I/lib/modules/4.4.208/build/arch/x86/include -I/lib/modules/4.4.208/build/arch/x86/include/asm/mach-default -I/lib/modules/4.4.208/build/arch/x86/include/uapi -I/lib/modules/4.4.208/build/arch/x86/include/generated -I/lib/modules/4.4.208/build/arch/x86/include/generated/uapi -I/lib/modules/4.4.208/build/include/uapi -I/lib/modules/4.4.208/build/include/generated/uapi -I/lib/modules/4.4.208/build/include -I/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/out/linux.amd64/release/obj/RuntimeGuestR0/dtrace -I/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/include -I/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D__KERNEL__ -DMODULE -DIN_GUEST -DIN_GUEST_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -DRT_NO_EXPORT_SYMBOL -DRT_NO_EXPORT_SYMBOL -DMODULE -DKBUILD_MODNAME=KBUILD_STR\(vboxdrv\) -DKBUILD_BASENAME=KBUILD_STR\(vboxdrv\) -DIN_SUP_R0 -Wp,-MD,/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/out/linux.amd64/release/obj/RuntimeGuestR0/r0drv/linux/memobj-r0drv-linux.o.dep -Wp,-MT,/tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/out/linux.amd64/release/obj/RuntimeGuestR0/r0drv/linux/memobj-r0drv-linux.o -Wp,-MP -o /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/out/linux.amd64/release/obj/RuntimeGuestR0/r0drv/linux/memobj-r0drv-linux.o /tmp/sbopkg.BkJ5w0/VirtualBox-5.0.40/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2For the record, from the system this started on:

Quote:
uname -a
Linux duelie 4.4.208 #2 SMP Wed Jan 8 15:24:28 CST 2020 x86_64 AMD Ryzen 5 2600 Six-Core Processor AuthenticAMD GNU/Linux
Any thoughts on how to get the build to work?latest?d=yIl2AUoC8zA latest?i=Q0d4HAM6vXc:Lu8dv_wASqI:F7zBnMy latest?i=Q0d4HAM6vXc:Lu8dv_wASqI:V_sGLiP latest?d=qj6IDK7rITs latest?i=Q0d4HAM6vXc:Lu8dv_wASqI:gIN9vFwQ0d4HAM6vXc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments