Hi,
With Jean-Marc Lacroix, we encountered an error during the compilation process. When CONFIG_RSBAC_REG_SAMPLES is activated, the following occurs when building the kernel :
$ make [...] CC rsbac/adf/reg/reg_main.o AR rsbac/adf/reg/built-in.a CC [M] rsbac/adf/reg/reg_sample1.o rsbac/adf/reg/reg_sample1.o: error: objtool: init_module(): Magic init_module() function name is deprecated, use module_init(fn) instead make[5]: *** [scripts/Makefile.build:287: rsbac/adf/reg/reg_sample1.o] Error 255 make[5]: *** Deleting file 'rsbac/adf/reg/reg_sample1.o' make[4]: *** [scripts/Makefile.build:544: rsbac/adf/reg] Error 2 make[3]: *** [scripts/Makefile.build:544: rsbac/adf] Error 2 make[2]: *** [scripts/Makefile.build:544: rsbac] Error 2 make[1]: *** [/home/user/linux-6.18/Makefile:2029: .] Error 2 make: *** [Makefile:248: __sub-make] Error 2
Disabling CONFIG_RSBAC_REG_SAMPLES effectively allows to build the kernel. The .config is appended. I am using gcc 14.2.0 and kernel version 6.18.25. (The error also happens with 6.18.7 at least.)
Regards, Terence Gomez
Hi Terence,
this should have been fixed some time ago, here the modules compile without problems.
Amon.
Am 30.04.26 um 10:44 schrieb GOMEZ, Terence:
With Jean-Marc Lacroix, we encountered an error during the compilation process. When CONFIG_RSBAC_REG_SAMPLES is activated, the following occurs when building the kernel :
$ make [...] CC rsbac/adf/reg/reg_main.o AR rsbac/adf/reg/built-in.a CC [M] rsbac/adf/reg/reg_sample1.o rsbac/adf/reg/reg_sample1.o: error: objtool: init_module(): Magic init_module() function name is deprecated, use module_init(fn) instead make[5]: *** [scripts/Makefile.build:287: rsbac/adf/reg/reg_sample1.o] Error 255 make[5]: *** Deleting file 'rsbac/adf/reg/reg_sample1.o' make[4]: *** [scripts/Makefile.build:544: rsbac/adf/reg] Error 2 make[3]: *** [scripts/Makefile.build:544: rsbac/adf] Error 2 make[2]: *** [scripts/Makefile.build:544: rsbac] Error 2 make[1]: *** [/home/user/linux-6.18/Makefile:2029: .] Error 2 make: *** [Makefile:248: __sub-make] Error 2
Disabling CONFIG_RSBAC_REG_SAMPLES effectively allows to build the kernel. The .config is appended. I am using gcc 14.2.0 and kernel version 6.18.25. (The error also happens with 6.18.7 at least.)
Regards, Terence Gomez
Amon.