← index #11298Issue #5866
Off-topic · high · value 6.744
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

Error when building nRF PCA10059 (nRF52840 dongle)

openby scttnlsnopened 2020-04-05updated 2020-04-20
port-nrf

From within the ports/nrf directory I'm running:

make BOARD=pca10059

And getting the following error:

Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build-pca10059/genhdr
Create build-pca10059/genhdr/pins.h
GEN build-pca10059/genhdr/mpversion.h
GEN build-pca10059/genhdr/moduledefs.h
make: *** No rule to make target 'lib/tinyusb/src/portable/nordic/nrf5x/hal_nrf5x.c', needed by 'build-pca10059/genhdr/qstr.i.last'.  Stop.

Building other targets (i.e. pca10028) works fine. Any ideas?

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