I have the same (probably) issue. I ran ./configure with no options and then make.
when I run ./configure I get
./configure flags:
at the end (yes, its empty after the colon)
then make outputs thousands of lines of warnings and errors.
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3371 warnings and 20 errors generated.
the last 5
wolfcrypt/src/sp_int.c:1321:32: error: expected compatible register, symbol or integer in range [0, 4095]
1321 | "add %[r], %[r], %[r]\n\t"
| ^
<inline asm>:15:16: note: instantiated into assembly here
15 | sub x12, x12, r8
| ^
wolfcrypt/src/sp_int.c:1322:30: error: invalid operand for instruction
1322 | "sub %[r], %[r], r8\n\t"
| ^
<inline asm>:16:6: note: instantiated into assembly here
16 | and r8, r8, r5
| ^
wolfcrypt/src/sp_int.c:1323:26: error: invalid operand for instruction
1323 | "and r8, r8, r5\n\t"
| ^
<inline asm>:17:7: note: instantiated into assembly here
17 | subs r9, r9, r8
| ^
wolfcrypt/src/sp_int.c:1324:27: error: invalid operand for instruction
1324 | "subs r9, r9, r8\n\t"
| ^
<inline asm>:18:6: note: instantiated into assembly here
18 | mov r4, #29
| ^
wolfcrypt/src/sp_int.c:1327:16: error: invalid operand for instruction
1327 | "\n1:\n\t"
| ^
<inline asm>:21:7: note: instantiated into assembly here
21 | movs r6, r6, lsl #1
I'll answer any questions you may have about my build environment.