NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.46k stars 12.96k forks source link

Build failure: vboxvideo for VirtualBox-GuestAdditions in VirtualBox 7.0.14 #290466

Open Thatoo opened 4 months ago

Thatoo commented 4 months ago

Install fails in Virtualbox when it comes to installing VirtualBox-GuestAdditions. It tries to install VirtualBox-GuestAdditions-7.0.10-6.5.9 whereas the version of my VirtualBox is 7.0.14 r161095 So 7.0.10 is not the expected version 7.0.14. Here are the logs of the install :

=== nixos-install Log ===
warning: creating lock file '/tmp/icicle/etc/nixos/flake.lock'
building the flake in path:/tmp/icicle/etc/nixos?lastModified=1708536682&narHash=sha256-4W1aEVCvjsy04%2B5BlwaIXCrF9svKJluTPcV9dokrDhU%3D...
trace: warning: The option `services.xserver.layout' defined in `/nix/store/jhahr492436cbmhx02cdhgjfj4jz871k-s078z95r2cy12q7v6g2s9cfxchj8h3xi-source/systems/x86_64-linux/snowflakeos/default.nix' has been renamed to `services.xserver.xkb.layout'.
error: builder for '/nix/store/np6vn5birk09428q6b5z0y2wxlv1anlp-VirtualBox-GuestAdditions-7.0.10-6.5.9.drv' failed with exit code 2;
       last 25 log lines:
       > make V= CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /nix/store/7abz1jy0kja2jam7lsrpcqzn6l7d1iab-linux-6.5.9-dev/lib/modules/6.5.9/build M=/build/install/src/vboxguest-7.0.10/vboxvideo SRCROOT=/build/install/src/vboxguest-7.0.10/vboxvideo -j2 modules
       > make[2]: Entering directory '/nix/store/7abz1jy0kja2jam7lsrpcqzn6l7d1iab-linux-6.5.9-dev/lib/modules/6.5.9/build'
       >   CC [M]  /build/install/src/vboxguest-7.0.10/vboxvideo/hgsmi_base.o
       >   CC [M]  /build/install/src/vboxguest-7.0.10/vboxvideo/modesetting.o
       >   CC [M]  /build/install/src/vboxguest-7.0.10/vboxvideo/vbox_drv.o
       >   CC [M]  /build/install/src/vboxguest-7.0.10/vboxvideo/vbox_fb.o
       > /build/install/src/vboxguest-7.0.10/vboxvideo/vbox_fb.c:195:24: error: 'drm_fb_helper_sys_fillrect' undeclared here (not in a function); did you mean 'drm_fb_helper_lastclose'?
       >   195 |         .fb_fillrect = drm_fb_helper_sys_fillrect,
       >       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
       >       |                        drm_fb_helper_lastclose
       > /build/install/src/vboxguest-7.0.10/vboxvideo/vbox_fb.c:196:24: error: 'drm_fb_helper_sys_copyarea' undeclared here (not in a function); did you mean 'drm_fb_helper_set_par'?
       >   196 |         .fb_copyarea = drm_fb_helper_sys_copyarea,
       >       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
       >       |                        drm_fb_helper_set_par
       > /build/install/src/vboxguest-7.0.10/vboxvideo/vbox_fb.c:197:25: error: 'drm_fb_helper_sys_imageblit' undeclared here (not in a function)
       >   197 |         .fb_imageblit = drm_fb_helper_sys_imageblit,
       >       |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
       > make[4]: *** [/nix/store/7abz1jy0kja2jam7lsrpcqzn6l7d1iab-linux-6.5.9-dev/lib/modules/6.5.9/source/scripts/Makefile.build:243: /build/install/src/vboxguest-7.0.10/vboxvideo/vbox_fb.o] Error 1
       > make[4]: *** Waiting for unfinished jobs....
       > make[3]: *** [/nix/store/7abz1jy0kja2jam7lsrpcqzn6l7d1iab-linux-6.5.9-dev/lib/modules/6.5.9/source/Makefile:2034: /build/install/src/vboxguest-7.0.10/vboxvideo] Error 2
       > make[2]: *** [/nix/store/7abz1jy0kja2jam7lsrpcqzn6l7d1iab-linux-6.5.9-dev/lib/modules/6.5.9/source/Makefile:234: __sub-make] Error 2
       > make[2]: Leaving directory '/nix/store/7abz1jy0kja2jam7lsrpcqzn6l7d1iab-linux-6.5.9-dev/lib/modules/6.5.9/build'
       > make[1]: *** [/build/install/src/vboxguest-7.0.10/vboxvideo/Makefile-footer.gmk:133: vboxvideo] Error 2
       > make[1]: Leaving directory '/build/install/src/vboxguest-7.0.10/vboxvideo'
       > make: *** [Makefile:73: vboxvideo] Error 1
       For full logs, run 'nix log /nix/store/np6vn5birk09428q6b5z0y2wxlv1anlp-VirtualBox-GuestAdditions-7.0.10-6.5.9.drv'.
error: 1 dependencies of derivation '/nix/store/3k1ynmadc0zpgbcsxgmvlkz9kwykxwp6-kernel-modules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2g903jf7w1qiqd33qli442cj5gslz7bl-linux-6.5.9-modules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h0yjhqimy128m8c0p9fxshzqjbchvmgc-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wxp9jsna8l9ck8m1k2sz9ajspwcwf4z0-unit-virtualbox.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vrvkl0zksqlpn2kmy55ggq8szdysr4h6-xsession-wrapper.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9kgppi507i863yqknya320i7jdpxddcs-nixos-system-snowflakeos-24.05.20240221.0e74ca9.drv' failed to build
=== End of nixos-install Log ===
badk commented 4 months ago

I had to install gcc-12 first, and now i have the same issue.

edit: I got it somehow working. drag&drop is still not working but at least copy&paste works https://www.wpdiaries.com/virtualbox-for-web-development/#guest-additions