I'm trying to compile default example (hello_world) and getting error during compile.
My setup:
1) win10;
2) idf version v3.3-rc-8-gbeb34b539
got this one from release/v3.3 brach with command:
Code: Select all
$ git clone --recursive https://github.com/espressif/esp-idf.git --branch release/v3.3
got this one from this link:
https://docs.espressif.com/projects/esp ... hain-setup
Code: Select all
$ xtensa-esp32-elf-gcc --version
xtensa-esp32-elf-gcc.exe (crosstool-NG esp32-2019r1) 8.2.0
Error log:
Code: Select all
CC build/app_trace/app_trace_util.o
CC build/app_trace/gcov/gcov_rtio.o
AR build/app_trace/libapp_trace.a
Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
App "hello-world" version: 1
CC build/app_update/esp_app_desc.o
CC build/app_update/esp_ota_ops.o
AR build/app_update/libapp_update.a
CXX build/asio/asio/asio/src/asio.o
In file included from c:\esp32\tools\msys32_esp32-2019r1\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\cstdlib:75,
from c:\esp32\tools\msys32_esp32-2019r1\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\ext\string_conversions.h:41,
from c:\esp32\tools\msys32_esp32-2019r1\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\bits\basic_string.h:6391,
from c:\esp32\tools\msys32_esp32-2019r1\opt\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.2.0\string:52,
from C:/ESP32/TOOLS/esp-idf/components/asio/asio/asio/include/asio/impl/error.ipp:19,
from C:/ESP32/TOOLS/esp-idf/components/asio/asio/asio/include/asio/impl/src.hpp:22,
from C:/ESP32/TOOLS/esp-idf/components/asio/asio/asio/src/asio.cpp:11:
c:\esp32\tools\msys32_esp32-2019r1\opt\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\stdlib.h:155:44: error: expected initializer before '__result_use_check'
void *reallocarray(void *, size_t, size_t) __result_use_check __alloc_size(2)
^~~~~~~~~~~~~~~~~~
c:\esp32\tools\msys32_esp32-2019r1\opt\xtensa-esp32-elf\xtensa-esp32-elf\sys-include\stdlib.h:340:52: error: expected initializer before '__alloc_align'
void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1)
^~~~~~~~~~~~~
make[1]: *** [/c/ESP32/TOOLS/esp-idf/make/component_wrapper.mk:290: asio/asio/src/asio.o] Error 1
make: *** [C:/ESP32/TOOLS/esp-idf/make/project.mk:552: component-asio-build] Error 2
I want to use STABLE branch of IDF with GCC compiler. What versions of compiler do I need to use?