Error: ‘MP_QSTR_asm_xtensa’ undeclared

Hi, everyone:

I’m trying to re-build OpenMV from source today, but met the following weird ERROR messages:

CC ../py/compile.c
../py/compile.c: In function ‘compile_built_in_decorator’:
../py/compile.c:863:24: error: ‘MP_QSTR_asm_xtensa’ undeclared (first use in this function); did you mean ‘MP_QSTR_asm_thumb’?
  863 |     } else if (attr == MP_QSTR_asm_xtensa) {
      |                        ^~~~~~~~~~~~~~~~~~
      |                        MP_QSTR_asm_thumb
../py/compile.c:863:24: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [../py/ ....../openmv/src/build/micropython/py/compile.o] Error 1
make[1]: *** [../../py/ ../../mpy-cross/mpy-cross] Error 2
make: *** [omv/ports/stm32/ FIRMWARE_OBJS] Error 2

Can anybody help to take a look?


Did you pass the right target?