[Solved] GA build fails for Kernel 4.15.3-300

Discussions about using Linux guests in VirtualBox.
Post Reply
JeanR
Posts: 19
Joined: 3. Mar 2017, 18:52
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux(Fedora, CentOS)

[Solved] GA build fails for Kernel 4.15.3-300

Post by JeanR »

host: Mac HighSierra 10.13.3
guest: Fedora 27 newest Kernel update (4.15.3-300)
VBox Version: 5.2.6
GA-iso: 5.2.6 and 5.2.7 beta (https://www.virtualbox.org/download/tes ... 120528.iso)

Guest addition fails to build - due to at least 2 issues introduced by kernel header changes:

1) (see vboxadd-setup.log.3 attached)
/tmp/vbox.0/VBoxGuest-linux.c:1165:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
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 }; \
^~~~

succeeded to fix that by changing ./include/linux/moduleparam.h:233:24 to:
{ .flags = 0, .set = (void *)_set, .get =(void *) _get };

but this should be probably fixed elsewhere.

2) (see vboxadd-setup.log attached)
/tmp/vbox.0/vbox_mode.c: In function ‘vbox_best_single_encoder’:
/tmp/vbox.0/vbox_mode.c:400:43: warning: passing argument 2 of ‘drm_encoder_find’ makes pointer from integer without a cast [-Wint-conversion]
return drm_encoder_find(connector->dev, enc_id);
^~~~~~

it seems the underlying call drm_mode_object_find now requires an additional parameter file_priv:

static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
struct drm_file *file_priv,
uint32_t id)
{
struct drm_mode_object *mo;

mo = drm_mode_object_find(dev, file_priv, id, DRM_MODE_OBJECT_ENCODER);

return mo ? obj_to_encoder(mo) : NULL;
}

couldn't figure out how to fix that yet.
Attachments
vboxadd-setup.log.zip
(10.12 KiB) Downloaded 34 times
Last edited by socratis on 19. Feb 2018, 11:25, edited 1 time in total.
Reason: Marked as [Solved].
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: GA build fails for Kernel 4.15.3-300

Post by socratis »

JeanR wrote: guest: Fedora 27 newest Kernel update (4.15.3-300)
GA-iso: 5.2.6 and 5.2.7 beta r120528
You need to keep up with VirtualBox. Neither 5.2.6 nor 5.2.7 r120528 came after 4.15.3. You should try the latest test builds, especially with all the Spectre/Meltdown patches coming in from all sides. And keep on checking the test builds for updates...
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.
JeanR
Posts: 19
Joined: 3. Mar 2017, 18:52
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux(Fedora, CentOS)

Re: GA build fails for Kernel 4.15.3-300

Post by JeanR »

Indeed: using the newest GAs fixes both problems. Point taken - should have looked there first..

Thanks socratis for the fast response, please mark this thread solved..
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: GA build fails for Kernel 4.15.3-300

Post by socratis »

Glad you got it going. Marking as [Solved].
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.
JEBjames
Posts: 58
Joined: 26. Jan 2017, 18:27
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Centos, Ubuntu, Debian, Various Windows
Contact:

Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by JEBjames »

Just wanted to add some thanks that 5.1.33_120670 works on the 4.15 kernel as well. :D
tim79
Posts: 4
Joined: 24. Sep 2015, 00:27

Regression?? Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by tim79 »

This problem (or something very similar) appears to be back with latest CentOS 7 updates

Kernel 3.10.0-957.1.3.el7.x86_64
VirtualBox 5.2.22 with latest available extensions

the end of the 'vboxadd-setup.log' file is...
/tmp/vbox.0/vbox_mode.c: In function 'vbox_best_single_encoder':
/tmp/vbox.0/vbox_mode.c:358:3: warning: passing argument 2 of 'drm_encoder_find' makes pointer from integer without a cast [enabled by default]
   return drm_encoder_find(connector->dev, enc_id);

   ^
In file included from /tmp/vbox.0/vbox_drv.h:89:0,
                 from /tmp/vbox.0/vbox_mode.c:35:
include/drm/drm_encoder.h:221:35: note: expected 'struct drm_file *' but argument is of type 'int'
 static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
                                   ^
/tmp/vbox.0/vbox_mode.c:358:3: error: too few arguments to function 'drm_encoder_find'
   return drm_encoder_find(connector->dev, enc_id);

   ^
In file included from /tmp/vbox.0/vbox_drv.h:89:0,
                 from /tmp/vbox.0/vbox_mode.c:35:
include/drm/drm_encoder.h:221:35: note: declared here
 static inline struct drm_encoder *drm_encoder_find(struct drm_device *dev,
                                   ^
make[2]: *** [/tmp/vbox.0/vbox_mode.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2
Last edited by socratis on 4. Dec 2018, 01:15, edited 1 time in total.
Reason: Enclosed the information in [quote][pre] tags for better readability
Change Nickname
Posts: 5
Joined: 4. Dec 2018, 04:25

Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by Change Nickname »

I just got that error as well.
I installed the test GA on VBoxGuestAdditions_5.2.23-126769.iso and all is well.
I'm running Version 5.2.22 r126460 (Qt5.6.2) VirtualBox on Windows 7, CentOS 3.10.0-957.1.3.el7.x86_64.
Hope that helps.

Update. All was not well. My setup now has mouse irregularities as has been reported in other threads.
The primary symptom is that only one app will receive mouse events. Clicking on another one does nothing.
Sometimes you can recover by right clicking to pull up a context menu, which seems to free up the assignment of mouse to app.
If that does not work the advice about killing the drag-and-drop processes did the job for me. Just Ctrl-Alt-F2 into a console window and kill VBoxClient --draganddrop. (there may be more than one)
Of course, if you need that feature you might be hurting.
See viewtopic.php?f=3&t=79034 and https://www.virtualbox.org/ticket/14903.
tim79
Posts: 4
Joined: 24. Sep 2015, 00:27

Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by tim79 »

thank you for that - I don't care about drag/drop, so hopefully this will allow me to do some instance upgrades without losing resize... now all I have to do is find the .23 GA iso and get it put in the right place... fun stuff...

so... help? where did you find the .23 iso?? I'm only finding the .22 that I already have (and earlier ones)
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: [Solved] GA build fails for Kernel 4.15.3-300

Post by socratis »

Change Nickname wrote:The primary symptom is that only one app will receive mouse events
Check the thread Mouse only usable within single application after mouse click on RHEL 7.6 (#18124), sounds fitting...
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.
Change Nickname
Posts: 5
Joined: 4. Dec 2018, 04:25

Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by Change Nickname »

tim79-

A post near the top mentions the test build download page https://www.virtualbox.org/wiki/Testbuilds. That's where I got .23.

Another useful but non-obvious site is http://download.virtualbox.org/virtualbox/. It has a lot of past releases and is one way to get your hands on older GAs should you need to.
Change Nickname
Posts: 5
Joined: 4. Dec 2018, 04:25

Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by Change Nickname »

socratis wrote:
Change Nickname wrote:The primary symptom is that only one app will receive mouse events
Check the thread Mouse only usable within single application after mouse click on RHEL 7.6 (#18124), sounds fitting...
I had run across that thread and have posted the draganddrop workaround that works for me there, since that thread has a more apropos title.
tim79
Posts: 4
Joined: 24. Sep 2015, 00:27

Re: [Solved] GA build fails for Kernel 4.15.3-300

Post by tim79 »

Installing the .23 version of the GA solved my problem - thank you!!
Post Reply