Hello - I have been attempting to set up my ESP32 build environment using FreeRTOS, by following this Getting Started doc: Getting started with the Espressif ESP32-DevKitC and the ESP-WROVER-KIT - FreeRTOS
- Dev platform: Windows 10
- Cmake version 3.17.2
- Python version 2.7.14
- xtensa-esp32-elf-gcc --version: 5.20
Everything has gone fine up until the step “Build FreeRTOS on Windows”. I run the following command in the FreeRTOS directory as instructed:
cmake -DVENDOR=espressif -DBOARD=esp32_wrover_kit -DCOMPILER=xtensa-esp32 -GNinja -S . -B build
And I get the following output:
– Submodule update
– Checking Python dependencies…
Python requirements from C:/Project Workspace/ESP32_FreeRTOS_AWS/amazon-freertos/vendors/espressif/esp-idf\requirements.txt are satisfied.
– Building for target esp32
CMake Error at vendors/espressif/esp-idf/tools/cmake/scripts/expand_requirements.cmake:144 (list):
list GET given empty list
Call Stack (most recent call first):
vendors/espressif/esp-idf/tools/cmake/scripts/expand_requirements.cmake:199 (filter_components_list)CMake Error at vendors/espressif/esp-idf/tools/cmake/idf_functions.cmake:338 (message):
Failed to expand component requirements
Call Stack (most recent call first):
vendors/espressif/boards/esp32/CMakeLists.txt:494 (idf_import_components)
CMakeLists.txt:70 (include)– Configuring incomplete, errors occurred!
See also “C:/Project Workspace/ESP32_FreeRTOS_AWS/amazon-freertos/build/CMakeFiles/CMakeOutput.log”.
See also “C:/Project Workspace/ESP32_FreeRTOS_AWS/amazon-freertos/build/CMakeFiles/CMakeError.log”.
CMakeError.log:
Compiling the C compiler identification source file “CMakeCCompilerId.c” failed.
Compiler: C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/xtensa-esp32-elf-gcc.exe
Build flags: -mlongcalls
Id flags:The output was:
1
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lsim
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lhandlers-sim
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lhal
collect2.exe: error: ld returned 1 exit statusCompiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.
Compiler: C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/xtensa-esp32-elf-g++.exe
Build flags: -mlongcalls
Id flags:The output was:
1
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lsim
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lhandlers-sim
c:/program files/espressif/esp-idf tools/tools/bin/…/lib/gcc/xtensa-esp32-elf/5.2.0/…/…/…/…/xtensa-esp32-elf/bin/ld.exe: cannot find -lhal
collect2.exe: error: ld returned 1 exit status
CMakeOutput.log:
The target system is: Generic - -
The host system is: Windows - 10.0.18362 - AMD64
Compiling the C compiler identification source file “CMakeCCompilerId.c” succeeded.
Compiler: C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/xtensa-esp32-elf-gcc.exe
Build flags: -mlongcalls
Id flags: -cThe output was:
0Compilation of the C compiler identification source “CMakeCCompilerId.c” produced “CMakeCCompilerId.o”
The C compiler identification is GNU, found in “C:/Project Workspace/ESP32_FreeRTOS_AWS/amazon-freertos/build/CMakeFiles/3.17.2/CompilerIdC/CMakeCCompilerId.o”
Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” succeeded.
Compiler: C:/Program Files/Espressif/ESP-IDF Tools/tools/bin/xtensa-esp32-elf-g++.exe
Build flags: -mlongcalls
Id flags: -cThe output was:
0Compilation of the CXX compiler identification source “CMakeCXXCompilerId.cpp” produced “CMakeCXXCompilerId.o”
The CXX compiler identification is GNU, found in “C:/Project Workspace/ESP32_FreeRTOS_AWS/amazon-freertos/build/CMakeFiles/3.17.2/CompilerIdCXX/CMakeCXXCompilerId.o”
Checking whether the ASM compiler is GNU using “–version” matched “(GNU assembler)|(GCC)|(Free Software Foundation)”:
xtensa-esp32-elf-gcc.exe (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I am not able to follow the errors to any reasonable understanding of the problem. Does anybody have possible insights or further troubleshooting steps?
Thank you!
-Tony