You can chat about native SDK questions and issues here.

User avatar
By Alex Lux
#95535 Hello everyone!
I'm trying to build esp-at. I'm doing everything as said here:
https://docs.espressif.com/projects/esp ... ct-esp8266


But when i make ./build.py build got an error:
./build.py build
module_name WROOM-02-N
platform_name=ESP8266,module_name=WROOM-02-N
Setting IDF_PATH environment variable: /home/user/esp/esp-at/esp-idf
Checking Python dependencies...
Python requirements from /home/user/esp/esp-at/esp-idf/requirements.txt are satisfied.
Executing action: all (aliases: build)
Running ninja in directory /home/user/esp/esp-at/build
Executing "ninja all"...
[1/612] Building C object esp-idf/tcpip_adapter/CMakeFiles/__idf_tcpip_adapter.dir/esp_netif.c.obj
FAILED: esp-idf/tcpip_adapter/CMakeFiles/__idf_tcpip_adapter.dir/esp_netif.c.obj
/usr/bin/xtensa-lx106-elf-gcc -DUSING_IBUS_FASTER_GET -D__ESP_FILE__=__FILE__ -Iconfig -I../esp-idf/components/tcpip_adapter/include -I../esp-idf/components/newlib/platform_include -I../esp-idf/components/freertos/include -I../esp-idf/components/freertos/include/freertos -I../esp-idf/components/freertos/include/freertos/private -I../esp-idf/components/freertos/port/esp8266/include -I../esp-idf/components/freertos/port/esp8266/include/freertos -I../esp-idf/components/heap/include -I../esp-idf/components/heap/port/esp8266/include -I../esp-idf/components/log/include -I../esp-idf/components/lwip/include/apps -I../esp-idf/components/lwip/include/apps/sntp -I../esp-idf/components/lwip/lwip/src/include -I../esp-idf/components/lwip/port/esp8266/include -I../esp-idf/components/lwip/port/esp8266/include/arch -I../esp-idf/components/esp8266/include -I../esp-idf/components/esp8266/include/driver -I../esp-idf/components/esp_common/include -I../esp-idf/components/esp_event/include -I../esp-idf/components/vfs/include -mlongcalls -Wno-frame-address -DESP_AT_PROJECT_COMMIT_ID=\"5ba3083\" "-DFALLBACK_DNS_SERVER_ADDRESS(p)=ipaddr_aton(\"8.8.8.8\",(p))" -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -nostdlib -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v3.4-63-ge3348ac7\" -DGCC_NOT_5_2_0 -DESP_PLATFORM -DLWIP_OPEN_SRC -MD -MT esp-idf/tcpip_adapter/CMakeFiles/__idf_tcpip_adapter.dir/esp_netif.c.obj -MF esp-idf/tcpip_adapter/CMakeFiles/__idf_tcpip_adapter.dir/esp_netif.c.obj.d -o esp-idf/tcpip_adapter/CMakeFiles/__idf_tcpip_adapter.dir/esp_netif.c.obj -c ../esp-idf/components/tcpip_adapter/esp_netif.c
In file included from ../esp-idf/components/tcpip_adapter/include/esp_netif.h:17,
from ../esp-idf/components/tcpip_adapter/esp_netif.c:15:
/usr/lib/gcc/xtensa-lx106-elf/9.2.1/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
9 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.


As i understand problem is that xtensa couldn't be found. In what directory should it locate and where can i get suitable version of it?
Plese, help me to understand. Thx.