I just followed the build instruction on Linux build instructions
Except that I can't install glslang-tools(but I think it doesn't matter because it is used for 3D acceleration.)
And I also use lib32z1 instead of ia32-libs.
When I did
./configure --disable-harsening
source ./env .sh
Everything is ok just except this:
Checking for Open Watcom:
** Open Watcom was not found, using alternative BIOS sources!
Then I did kmk, error just happened.
In file included from ./include/linux/module.h:18:0,
from /home/winter/Downloads/VirtualBox-5.1.30/out/linux.amd64/release/obj/tstguest_mod/vboxguest/r0drv/linux/the-linux-kernel.h:88,
from /home/winter/Downloads/VirtualBox-5.1.30/out/linux.amd64/release/obj/tstguest_mod/vboxguest/VBoxGuest-linux.c:27:
/home/winter/Downloads/VirtualBox-5.1.30/out/linux.amd64/release/obj/tstguest_mod/vboxguest/VBoxGuest-linux.c35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
./include/linux/moduleparam.h:233:24: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get }; \
^
/home/winter/Downloads/VirtualBox-5.1.30/out/linux.amd64/release/obj/tstguest_mod/vboxguest/VBoxGuest-linux.c35: note: (near initialization for ‘__param_ops_log.set’)
module_param_call(log, vgdrvLinuxParamLogGrpSet, vgdrvLinuxParamLogGrpGet, NULL, 0664);
^
./include/linux/moduleparam.h:233:24: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get }; \
^
/home/winter/Downloads/VirtualBox-5.1.30/out/linux.amd64/release/obj/tstguest_mod/vboxguest/VBoxGuest-linux.c63: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
module_param_call(log, vgdrvLinuxParamLogGrpSet, vgdrvLinuxParamLogGrpGet, NULL, 0664);
^
./include/linux/moduleparam.h:233:37: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get }; \
^
/home/winter/Downloads/VirtualBox-5.1.30/out/linux.amd64/release/obj/tstguest_mod/vboxguest/VBoxGuest-linux.c63: note: (near initialization for ‘__param_ops_log.get’)
module_param_call(log, vgdrvLinuxParamLogGrpSet, vgdrvLinuxParamLogGrpGet, NULL, 0664);
^
./include/linux/moduleparam.h:233:37: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get }; \
I try to analyze the error message and only knew that maybe error was caused by my linux-header.
So anayone can help me? Please!
Linux ubuntu 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
how to build vbox on ubuntu16.04.1
Re: how to build vbox on ubuntu16.04.1
Sorry for my poor English.
And the error message is more than what I wrote but I don't know how to submit the log file.
And the error message is more than what I wrote but I don't know how to submit the log file.
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: how to build vbox on ubuntu16.04.1
If English is not your native language, please feel free to use your native language, and we can use browser translation.
Under the box where you type new posts, there is an Attachments tab. It can be used to post logs. It is best to zip the log first.
Under the box where you type new posts, there is an Attachments tab. It can be used to post logs. It is best to zip the log first.
Re: how to build vbox on ubuntu16.04.1
Thank you for your replay.
I found Attachments and just gave my log which logging the resultI.
configure.log log the result after I run the command ./configure --disable-hardening.
kmk.log log the result after I run the command kmk.
uname -a 's result is
Linux ubuntu 4.15.0-112-generic #113~16.04.1-Ubuntu SMP Fri Jul 10 04:37:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux.
Thank you again!
I found Attachments and just gave my log which logging the resultI.
configure.log log the result after I run the command ./configure --disable-hardening.
kmk.log log the result after I run the command kmk.
uname -a 's result is
Linux ubuntu 4.15.0-112-generic #113~16.04.1-Ubuntu SMP Fri Jul 10 04:37:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux.
Thank you again!
- Attachments
-
- log.zip
- (42.83 KiB) Downloaded 212 times
Re: how to build vbox on ubuntu16.04.1
I submit the log (which is got by ">>").
Thank you for helping me to solve this problem.
And, I tried to build VirtualBox6.1.48 on ubuntu20.04(Linux server3 5.15.0-91-generic #101~20.04.1-Ubuntu SMP Thu Nov 16 14:22:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux). It worked!
So building Vbox5.1.30 on ubuntu16.04 just confused me. Why did it fail after I did all the instructions?
Thank you again!
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: how to build vbox on ubuntu16.04.1
If you're talking about Linux build instructions, the instructions on that webpage have changed over the years, just like the VirtualBox sources. Perhaps you have to follow an older version of it, but that's just an educated guess.
Re: how to build vbox on ubuntu16.04.1
I tried building vbox on ubuntu16.04.1 with kernel version 4.8.0.It worked.fth0 wrote: ↑26. Dec 2023, 00:47If you're talking about Linux build instructions, the instructions on that webpage have changed over the years, just like the VirtualBox sources. Perhaps you have to follow an older version of it, but that's just an educated guess.
So weird.
I also found that error occured in making modules. And error isinitialization from incompatible pointer type.
But 4.15.0-142 > 4.8.0(which is in corresponding vbox source),It should not has error.