Error when compiling native modules ESP32

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
John12
Posts: 4
Joined: Thu Jun 10, 2021 8:41 pm

Error when compiling native modules ESP32

Post by John12 » Mon Jun 14, 2021 5:46 pm

Hello,

I tried to compile the example "factorial"
http://docs.micropython.org/en/latest/d ... atmod.html

The compilation succeed when using ARCH = x64 (the .mpy file was created)
but it failed when using ARCH = xtensawi

the error is :

Code: Select all

CC factorial.c
make: xtensa-esp32-elf-gcc: Command not found
../../../py/dynruntime.mk:129: recipe for target 'build/factorial.o' failed
make: *** [build/factorial.o] Error 127
Thank you for your help !

John12
Posts: 4
Joined: Thu Jun 10, 2021 8:41 pm

Re: Error when compiling native modules ESP32

Post by John12 » Tue Jun 15, 2021 6:03 pm

Solved !

i followed the steps mentioned in this tuto :

https://lemariva.com/blog/2020/03/tutor ... python-v20

Post Reply