Compile issue: unrecognized option
When building SD8G2 target:
Error: unrecognized option -march=armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2
cc1: error: unknown value 'armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2' for '-march'
cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a
cc1: error: unknown value 'armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2' for '-march'
cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a
Assembler messages:
Error: unknown architecture `armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2'
make[2]: *** [CMakeFiles/native_pass0.dir/build.make:102: CMakeFiles/native_pass0.dir/src/dynarec/arm64/dynarec_arm64_emit_logic.c.o] Error 1
Error: unrecognized option -march=armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2
make[2]: *** [CMakeFiles/native_pass0.dir/build.make:115: CMakeFiles/native_pass0.dir/src/dynarec/arm64/dynarec_arm64_emit_shift.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:177: CMakeFiles/native_pass0.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
What compiler version are youi using? I suspect it's too old for those options. (Use some other SD if you cannot upgrade the compiler)
What compiler version are youi using? I suspect it's too old for those options. (Use some other SD if you cannot upgrade the compiler)
It's gcc-9, I also tried gcc-10 with the same error. I didn't get this error a week ago
What compiler version are youi using? I suspect it's too old for those options. (Use some other SD if you cannot upgrade the compiler)
It's gcc-9, I also tried gcc-10 with the same error. I didn't get this error a week ago
Nothing changed on that front last week. That's odd. I built using this profile on a Arch linux with gcc-12 not too long ago without issue.
You need at least GCC 12 for those compiler options.
https://gcc.gnu.org/gcc-12/changes.html