VirtualBox

Opened 22 months ago

Closed 20 months ago

Last modified 14 months ago

#21450 closed defect (fixed)

Cannot build Guest Additions 7.0.6 for CentOS Stream 9 kernel 5.14.0-239.el9.x86_64 => fixed in svn

Reported by: Steven Barre Owned by:
Component: guest additions Version: VirtualBox-7.0.6
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

In file included from /tmp/vbox.1/vboxvideo_guest.h:34,
                 from /tmp/vbox.1/modesetting.c:27:
/tmp/vbox.1/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.1/hgsmi_base.c:27:
/tmp/vbox.1/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
make[2]: *** [scripts/Makefile.build:321: /tmp/vbox.1/hgsmi_base.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:321: /tmp/vbox.1/modesetting.o] Error 1
make[1]: *** [Makefile:1915: /tmp/vbox.1] Error 2
make: *** [/tmp/vbox.1/Makefile-footer.gmk:133: vboxvideo] Error 2

Attachments (2)

vboxadd-setup.log (6.0 KB ) - added by Steven Barre 22 months ago.
MCS-2023-01-31-14-50-39.log (94.3 KB ) - added by Steven Barre 22 months ago.

Download all attachments as: .zip

Change History (6)

by Steven Barre, 22 months ago

Attachment: vboxadd-setup.log added

by Steven Barre, 22 months ago

Attachment: MCS-2023-01-31-14-50-39.log added

comment:1 by MichaelGoldshteyn, 22 months ago

I am experiencing similar issues with kernel 5.14.0-252-el9.x86_64 on CentOS Stream 9 when trying to install the Guest Additions that come with VirtualBox 7.0.6.

For starters, there are errors at the top of the /var/log/vboxadd-setup.log file:

Building the main Guest Additions 7.0.6 module for kernel 5.14.0-252.el9.x86_64.
Building the shared folder support module.
Building the graphics driver module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.14.0-252.el9.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j18 modules
make[1]: warning: -j18 forced in submake: resetting jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 \
single-build= \
need-builtin=1 need-modorder=1
...

Then, later in the log file, we have the first batch off compilation errors:

In file included from /tmp/vbox.0/vboxvideo_guest.h:34,
                 from /tmp/vbox.0/vbva_base.c:27:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.0/vboxvideo_guest.h:34,
                 from /tmp/vbox.0/modesetting.c:27:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.0/vbox_drv.c:35:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.0/hgsmi_base.c:27:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.0/vbox_main.c:31:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.0/vbox_mode.c:35:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~
In file included from /tmp/vbox.0/vbox_irq.c:30:
/tmp/vbox.0/vbox_drv.h:378:32: error: field ‘base’ has incomplete type
  378 |         struct drm_framebuffer base;
      |                                ^~~~

comment:2 by galitsyn, 22 months ago

Summary: Cannot build Guest Additions 7.0.6 for CentOS Stream 9 kernel 5.14.0-239.el9.x86_64Cannot build Guest Additions 7.0.6 for CentOS Stream 9 kernel 5.14.0-239.el9.x86_64 => fixed in svn

This issue should now be fixed on development branch. Could you please give it a try to Guest Additions from "Development snapshots" on https://www.virtualbox.org/wiki/Testbuilds?

Last edited 22 months ago by galitsyn (previous) (diff)

comment:3 by Steven Barre, 21 months ago

Confirmed working on 7.0.7 r156262

Also confirmed the newer kernel of 5.14.0-285.el9.x86_64

Thanks!

comment:4 by galitsyn, 20 months ago

Resolution: fixed
Status: newclosed

Hi guys,

New VirtualBox versions 6.1.44 and 7.0.8 were just released and available at https://www.virtualbox.org/wiki/Downloads. This issue should be fixed there. Could you please give it a try?

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette