Linux 5.9-1 guest-additions build fails so it looks like applying the same patch is needed by the guest-additions package. Error from vboxadd-setup.log
In file included from /tmp/vbox.0/VBoxGuest-linux.c:36:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:141:11: fatal error: linux/smp_lock.h: No such file or directory
141 | # include <linux/smp_lock.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
The 021-kernel-5.9.patch looks like it should have addressed this, maybe this can be adapted to the guest-additions package produced during the build?
The crux is this, the src file installed on the host in /usr/src/vboxhost-6.1.14_non_OSE/ are patched for 5.9.1, the files that get installed on the guest to /opt/VBoxGuestAdditions-6.1.14/src/vboxgues-6.1.14/ are not (they are still dated Sept. 4, 2020). So guest additions fail to build on Arch guests.
Pinned Comments
dbermond commented on 2022-10-21 19:08 (UTC)
Notice:
To avoid crashes when upgrading Guest Additions from version 6.x to 7.x on Windows guests, uninstall the old Guest Additions first, then reboot, and then install the new ones. It's recommended to do all these operations in Safe Mode. See this upstream bug ticket for more details.