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

Building firmware on Apple Silicone M1 #598

@mortenhauan

Description

@mortenhauan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions