Hello,
I am encountering errors while compiling the Linux kernel 4.14 and 4.14-rt from the following repositories:
I am using the following toolchain versions:
Initially, I encountered the following error:
In file included from scripts/selinux/genheaders/genheaders.c:19:
./security/selinux/include/classmap.h:247:2: error: #error New address family defined, please update secclass_map.
247 | #error New address family defined, please update secclass_map.
| ^~~~~
I resolved this by following the suggestion from this forum post: New address family defined, please update secclass_map.
After updating the recommended files and recompiling using the following command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs LOADADDR=0x80008000 -j4
I encountered a new set of errors:
/tmp/cc8KpNfC.s: Assembler messages:
/tmp/cc8KpNfC.s:74: Error: selected processor does not support dmb ish' in ARM mode /tmp/cc8KpNfC.s:85: Error: selected processor does not support isb ’ in ARM mode
/tmp/cc8KpNfC.s:88: Error: selected processor does not support mrrc p15,1,r4,r5,c14' in ARM mode /tmp/cc8KpNfC.s:104: Error: selected processor does not support dmb ish’ in ARM mode
…
make[1]: *** [scripts/Makefile.build:327: arch/arm/vdso/vgettimeofday.o] Error 1
make[1]: *** Waiting for unfinished jobs…
make: *** [Makefile:1039: arch/arm/vdso] Error 2
…
make[1]: *** [scripts/Makefile.build:326: init/main.o] Error 1
make[1]: *** Waiting for unfinished jobs…
…
make[1]: *** [scripts/Makefile.build:326: arch/arm/kernel/ptrace.o] Error 1
make: *** [Makefile:1039: arch/arm/kernel] Error 2
The errors indicate that the selected processor does not support several ARM mode instructions such as dmb ish, isb, and others.
Could anyone please assist me in resolving these issues?
Thank you for your help.