ERROR: modpost: missing MODULE_LICENSE() in /tmp/akmodsbuild.qbwum82l/BUILD/nvidia-kmod-515.65.01/_kmod_build_5.19.9-300.fc37.x86_64/nvidia.o

Fedora 37 beta, can’t install:

odule.symvers -e -i Module.symvers -T -
ERROR: modpost: missing MODULE_LICENSE() in /tmp/akmodsbuild.qbwum82l/BUILD/nvidia-kmod-515.65.01/_kmod_build_5.19.9-300.fc37.x86_64/nvidia.o
ERROR: modpost: missing MODULE_LICENSE() in /tmp/akmodsbuild.qbwum82l/BUILD/nvidia-kmod-515.65.01/_kmod_build_5.19.9-300.fc37.x86_64/nvidia-uvm.o
make[2]: *** [scripts/Makefile.modpost:128: /tmp/akmodsbuild.qbwum82l/BUILD/nvidia-kmod-515.65.01/_kmod_build_5.19.9-300.fc37.x86_64/Module.symvers] Error 1
make[1]: *** [Makefile:1764: modules] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.19.9-300.fc37.x86_64’
make: *** [Makefile:82: modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.yzD3Tl (%build)

RPM build warnings:
user mockbuild does not exist - using root
group mock does not exist - using root
user mockbuild does not exist - using root
group mock does not exist - using root

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.yzD3Tl (%build)
2022/09/20 15:07:23 akmodsbuild: * Rebuilding /usr/src/akmods/nvidia-kmod.latest for kernel(s) 5.19.9-300.fc37.x86_64: warning: user mockbuild does not exist - using root

Update: compilation worked when I switched back from mold to regular ld!

I still had issues with running it (had to import the certificate for secure boot, etc., but now it works!