New comment by wael444 on void-packages repository https://github.com/void-linux/void-packages/issues/37123#issuecomment-1179513018 Comment: currently i am trying (i have no deep knowledge of DKMS or void-packages) to package this and have no clue how to make it build the modules if it requests a existing kernel ``` [ nvidia ] CC ../common/uproc/os/libos-v2.0.0/debug/logdecode.c [ nvidia ] CC _out/Linux_x86_64/g_nvid_string.c [ nvidia ] LD _out/Linux_x86_64/nv-kernel.o [ nvidia ] OBJCOPY _out/Linux_x86_64/nv-kernel.o make[1]: Leaving directory '/builddir/open-gpu-kernel-modules-515.49.06/src/nvidia' cd kernel-open/nvidia/ && ln -sf ../../src/nvidia/_out/Linux_x86_64/nv-kernel.o nv-kernel.o_binary make -C kernel-open modules make[1]: Entering directory '/builddir/open-gpu-kernel-modules-515.49.06/kernel-open' make[2]: Entering directory '/builddir/open-gpu-kernel-modules-515.49.06/kernel-open' make[2]: *** /lib/modules/5.18.9_1/build: No such file or directory. Stop. make[2]: Leaving directory '/builddir/open-gpu-kernel-modules-515.49.06/kernel-open' make[1]: *** [Makefile:82: modules] Error 2 make[1]: Leaving directory '/builddir/open-gpu-kernel-modules-515.49.06/kernel-open' make: *** [Makefile:50: modules] Error 2 => ERROR: nvidia-open-515.49.06_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2 => ERROR: in do_build() at common/build-style/gnu-makefile.sh:14 ```