Re: virtualbox-host-dkms: Compile only for GCC kernels: module freezes clang kernels
Reply #7 –
Since I do not have gremlins activated in my repository, and I fear conflicts if I do, I did as follows:git clone 'https://gitea.artixlinux.org/packages/virtualbox.git'
cd virtualbox
[ Edit `PKGBUILD` to only package `virtualbox-host-dkms` ]
makepkg -sfi
[ installed make dependencies ]
[ ... building ... ]
[ confirm "Y" to install package ]
It successfully builds the module only for gcc compiled kernels::: Running post-transaction hooks...
(1/4) Install DKMS modules
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.10-xanmod-customconfig-gcc
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.10-xanmod-customconfig-clang
Warning: The /var/lib/dkms/vboxhost/7.1.4_OSE/6.11.10-xanmod-customconfig-clang/x86_64/dkms.conf
for module vboxhost includes a BUILD_EXCLUSIVE directive
which does not match this kernel/arch/config.
This indicates that it should not be built.
==> WARNING: `dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.10-xanmod-customconfig-clang' exited 77
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.10-vanilla-customconfig-clang
Warning: The /var/lib/dkms/vboxhost/7.1.4_OSE/6.11.10-vanilla-customconfig-clang/x86_64/dkms.conf
for module vboxhost includes a BUILD_EXCLUSIVE directive
which does not match this kernel/arch/config.
This indicates that it should not be built.
==> WARNING: `dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.10-vanilla-customconfig-clang' exited 77
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.12.1-artix1-1
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.10-vanilla-customconfig-gcc
==> depmod 6.12.1-artix1-1
==> depmod 6.11.10-xanmod-customconfig-gcc
==> depmod 6.11.10-vanilla-customconfig-gcc
So this seems to be resolved as soon as the change makes it to the production repository. Feel free to hit "Solve topic" then.
Regards and thanks!