← index #11298Issue #4333
Off-topic · high · value 3.520
QUERY · ISSUE

Bug: Build Error on NRF Board, Undeclared Variable 'MP_QSTR___del___'

openby nawalteropened 2023-04-19updated 2023-04-24
bug

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!

CANDIDATE · ISSUE

nrf build fails on latest - undefined reference to `mp_qstr_frozen_const_pool'

closedby pacmacopened 2018-12-02updated 2019-03-20
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -rf build-pca10040 
Cleaning up OSX system files...
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
LINK build-pca10056-s140/firmware.elf
/tmp/ccg5WZJZ.ltrans7.ltrans.o: In function `qstr_pool_info':
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/../../py/qstr.c:282: undefined reference to `mp_qstr_frozen_const_pool'
/tmp/ccg5WZJZ.ltrans11.ltrans.o: In function `mp_builtin_help.lto_priv.581':
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/../../py/builtinhelp.c:176: undefined reference to `mp_frozen_mpy_names'
/tmp/ccg5WZJZ.ltrans11.ltrans.o: In function `do_load':
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/../../py/builtinimport.c:236: undefined reference to `mp_frozen_mpy_names'
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/../../py/builtinimport.c:236: undefined reference to `mp_frozen_mpy_content'
/tmp/ccg5WZJZ.ltrans11.ltrans.o: In function `mp_import_stat':
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/main.c:272: undefined reference to `mp_frozen_mpy_names'
/tmp/ccg5WZJZ.ltrans12.ltrans.o: In function `mp_micropython_qstr_info.lto_priv.628':
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/../../py/modmicropython.c:105: undefined reference to `mp_qstr_frozen_const_pool'
/tmp/ccg5WZJZ.ltrans19.ltrans.o: In function `do_str':
/nfs/qnap/data/uPython/build/micropython/micropython/ports/nrf/main.c:86: undefined reference to `mp_qstr_frozen_const_pool'
collect2: error: ld returned 1 exit status
Makefile:302: recipe for target 'build-pca10056-s140/firmware.elf' failed
make: *** [build-pca10056-s140/firmware.elf] Error 1

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied