Bug: Build Error on NRF Board, Undeclared Variable 'MP_QSTR___del___'
I encountered an error while building Micropython on the Nordic pca10056 nrf board. Below is the error message:
..\micropython\ports\nrf>make BOARD=pca10056
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
GEN build-pca10056/genhdr/mpversion.h
CC ../../py/gc.c
../../py/gc.c: In function 'gc_sweep':
../../py/gc.c:393:72: error: 'MP_QSTR___del__' undeclared (first use in this function); did you mean 'MP_QSTR___new__'?
393 | mp_load_method_maybe(MP_OBJ_FROM_PTR(obj), MP_QSTR___del__, dest);
| ^~~~~~~~~~~~~~~
| MP_QSTR___new__
../../py/gc.c:393:72: note: each undeclared identifier is reported only once for each function it appears in
See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: *** [../../py/mkrules.mk:83: build-pca10056/py/gc.o] Error 1
I'm using the following environment:
- micropython commit: b525f1c
- OS: Windows 10
- Python: Python 3.10.11
- Toolchain: GNU Arm Embedded Toolchain 10-2020-q4-major
- Board: pca10056 (nRF52840-DK)
Please let me know if you need any further information to resolve this issue. Thank you for your help!
cc3200 'MP_QSTR_sd' undeclared when "make BTARGET=application BTYPE=release BOARD=LAUNCHXL"
xxx@xxx:~/micropython/cc3200$ make BTARGET=application BTYPE=release BOARD=LAUNCHXL
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/LAUNCHXL/release/genhdr
.
.
CC mods/modpyb.c
CC mods/moduos.c
In file included from mods/moduos.c:33:0:
mods/moduos.c: In function 'os_listdir':
mods/moduos.c:154:58: error: 'MP_QSTR_sd' undeclared (first use in this function)
mp_obj_list_append(dir_list, MP_OBJ_NEW_QSTR(MP_QSTR_sd));
^
../py/obj.h:84:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 2) | 2))
^
mods/moduos.c:154:58: note: each undeclared identifier is reported only once for each function it appears in
mp_obj_list_append(dir_list, MP_OBJ_NEW_QSTR(MP_QSTR_sd));
^
../py/obj.h:84:56: note: in definition of macro 'MP_OBJ_NEW_QSTR'
#define MP_OBJ_NEW_QSTR(qst) ((mp_obj_t)((((mp_uint_t)(qst)) << 2) | 2))
^
make: *** [build/LAUNCHXL/release/mods/moduos.o] Error 1