pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
196 stars 167 forks source link

Building firmware on Apple Silicone M1 #598

Open mortenhauan opened 2 years ago

mortenhauan commented 2 years ago

Hi

Trying to follow the instructions to build firmware on Apple M1 computer, but get this error when I run the cd mpy-cross && make clean && make && cd .. command:

> cd mpy-cross && make clean && make && cd ..
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f mpy-cross
rm -f mpy-cross.map
rm -rf build
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
mkdir -p build/genhdr
Generating build/genhdr/mpversion.h
GEN build/genhdr/qstr.i.last
../py/emitglue.c:635:2: error: mp_raw_code_save_file not implemented for this platform
#error mp_raw_code_save_file not implemented for this platform
 ^
1 error generated.
make: *** [build/genhdr/qstr.i.last] Error 1
make: *** Deleting file `build/genhdr/qstr.i.last'

Also tried installing Ubuntu in Parallels, and there I get this error when running the same command:

../py/nativeglue.c:226:5: error: ‘nlr_push’ undeclared here (not in a function)
  226 |     nlr_push,
      |     ^~~~~~~~
make: *** [../py/mkrules.mk:47: build/py/nativeglue.o] Error 1

Has anyone else successfully build pycom firmware on arm computer?