espressif / ESP8266_RTOS_SDK

Latest ESP8266 SDK based on FreeRTOS, esp-idf style.
http://bbs.espressif.com
Apache License 2.0
3.35k stars 1.57k forks source link

ESP8266 micropython does not build on MACOS (GIT8266O-820) #1243

Open xuancong84 opened 1 year ago

xuancong84 commented 1 year ago

If you build ESP8266 micropython (any version) on MACOS (any version) using toolchain downloaded from https://dl.espressif.com/dl/xtensa-lx106-elf-gcc8_4_0-esp-2020r3-macos.tar.gz , you will get the following error:

CC ../../extmod/machine_i2c.c
CC ../../extmod/machine_mem.c
CC ../../extmod/machine_pinbase.c
CC ../../extmod/machine_pulse.c
CC ../../extmod/machine_pwm.c
In file included from ../../py/mphal.h:33,
                 from ../../py/mpprint.c:33:
./esp_mphal.h:27:10: fatal error: user_interface.h: No such file or directory
 #include "user_interface.h"
          ^~~~~~~~~~~~~~~~~~
compilation terminated.

The header file user_interface.h (that is present at xtensa-lx106-elf/xtensa-lx106-elf/sysroot/usr/include/user_interface.h on Linux toolchain) is nowhere to be found in MACOS.