I am familiar with the process to build a kernel module on x86 UNIX/Linux platforms and have questions regarding how to begin with Rocky 9.2 on AltArch (Raspberry Pi 4)
Codeready rpms are not available nor is there a CRB enabled repository.
The build process crashes out with stdarg.h not found.
[root@highroller aarch64-rl9-raspi]# make
make: [Makefile:7: all] Error 1 (ignored)
make[1]: Entering directory ‘/usr/src/kernels/6.1.31-v8.1.el9.altarch’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
You are using: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
CC [M] /home/jo…/…Kernel/aarch64-rl9-raspi/thor.o
In file included from /home/jo…/…/Kernel/aarch64-rl9-raspi/controller.h:4,
from /home/jo…/…/Kernel/aarch64-rl9-raspi/thor.c:11:
/home/jo…/…/Kernel/aarch64-rl9-raspi/logger.h:5:10: fatal error: stdarg.h: No such file or directory
5 | #include <stdarg.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:250: /home/jo…/…/Kernel/aarch64-rl9-raspi/thor.o] Error 1
make[1]: *** [Makefile:2012: /home/jo…/…/Kernel/aarch64-rl9-raspi] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/6.1.31-v8.1.el9.altarch’
make: *** [Makefile:9: all] Error 2