Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Building firmware on Apple Silicone M1 #598

Open
mortenhauan opened this issue Jun 1, 2022 · 0 comments
Open

Building firmware on Apple Silicone M1 #598

mortenhauan opened this issue Jun 1, 2022 · 0 comments

Comments

@mortenhauan
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant