CC ../py/obj.c
CC ../py/objarray.c
../py/nativeglue.c:226:5: error: 'nlr_push' undeclared here (not in a function); did you mean 'nlr_jump'?
nlr_push,
^~~~~~~~
nlr_jump
It fails to build on x86 with a segfault:
MPY modules/upip.py
make: *** [../../py/mkrules.mk:114: build/frozen_mpy/upip.mpy]
Segmentation fault (core dumped)
This makes it possible to provide armv7 as additional architecture in
Alpine, next to armhf. See the discussion in this ML thread:
<https://lists.alpinelinux.org/alpine-devel/6271.html>
It's done by adding armv7 next to armhf in the arch line and also
!armv7 where the arch line said !armhf. The following script was used:
micropython-cross provides mpy-cross, which allows compiling python
code to micropython bytecode. This is particularly useful to
unburden MCUs from the task to compile python scripts.
../py/persistentcode.c:397:2: error: #error mp_raw_code_save_file not
implemented for this platform
#error mp_raw_code_save_file not implemented for this platform
^~~~~
use only python3