I tried to force compilation using platform = espressif32@5.3.0 and I got the errors herebelow. Does this help to figure out what is going wrong in my “backup” setup??
- Executing task in folder esp32_nat_router-master: platformio run
Warning! Ignore unknown configuration option monitor_flags
in section [env:esp32dev]
Processing esp32dev (platform: espressif32@5.3.0; framework: espidf; board: esp32dev)
Platform Manager: Installing espressif32 @ 5.3.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Platform Manager: espressif32@5.3.0 has been installed!
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: toolchain-xtensa-esp32@8.4.0+2021r2-patch5 has been installed!
Tool Manager: Installing platformio/framework-espidf @ ~3.40403.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Tool Manager: framework-espidf@3.40403.0 has been installed!
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (5.3.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-espidf @ 3.40403.0 (4.4.3)
- tool-cmake @ 3.16.4
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- tool-ninja @ 1.9.0
- toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Installing ESP-IDF’s Python dependencies
Collecting cryptography<35.0.0,>=2.1.4
Using cached cryptography-3.4.8-cp36-abi3-macosx_10_10_x86_64.whl (2.0 MB)
Collecting pyparsing<2.4.0,>=2.0.3
Using cached pyparsing-2.3.1-py2.py3-none-any.whl (61 kB)
Collecting kconfiglib==13.7.1
Using cached kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)
Collecting cffi>=1.12
Using cached cffi-1.15.1-cp39-cp39-macosx_10_9_x86_64.whl (179 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Installing collected packages: pyparsing, pycparser, kconfiglib, cffi, cryptography
Attempting uninstall: pyparsing
Found existing installation: pyparsing 3.0.9
Uninstalling pyparsing-3.0.9:
Successfully uninstalled pyparsing-3.0.9
Attempting uninstall: pycparser
Found existing installation: pycparser 2.21
Uninstalling pycparser-2.21:
Successfully uninstalled pycparser-2.21
Rolling back uninstall of pycparser
Moving to /Users/gabriele/.platformio/penv/lib/python3.9/site-packages/pycparser-2.21.dist-info/
from /Users/gabriele/.platformio/penv/lib/python3.9/site-packages/~ycparser-2.21.dist-info
Moving to /Users/gabriele/.platformio/penv/lib/python3.9/site-packages/pycparser/
from /Users/gabriele/.platformio/penv/lib/python3.9/site-packages/~ycparser
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘/Users/gabriele/.platformio/penv/lib/python3.9/site-packages/pycparser-2.21.dist-info/INSTALLER3phvcppi.tmp’
*** Error 1
Reading CMake configuration…
– Found Git: /usr/bin/git (found version “2.17.2 (Apple Git-113)”)
– The C compiler identification is GNU 8.4.0
– The CXX compiler identification is GNU 8.4.0
– The ASM compiler identification is GNU
– Found assembler: /Users/gabriele/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc
– Check for working C compiler: /Users/gabriele/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc
– Check for working C compiler: /Users/gabriele/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc – broken
– Configuring incomplete, errors occurred!
See also “/Users/gabriele/Documents/PlatformIO/Projects/esp32_nat_router-master/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log”.
See also “/Users/gabriele/Documents/PlatformIO/Projects/esp32_nat_router-master/.pio/build/esp32dev/CMakeFiles/CMakeError.log”.
fatal: not a git repository (or any of the parent directories): .git
CMake Error at /Users/gabriele/.platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/Users/gabriele/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/gabriele/Documents/PlatformIO/Projects/esp32_nat_router-master/.pio/build/esp32dev/CMakeFiles/CMakeTmp
Run Build Command(s):/Users/gabriele/.platformio/packages/tool-ninja/ninja cmTC_a7d7f && [1/2] Building C object CMakeFiles/cmTC_a7d7f.dir/testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_a7d7f.dir/testCCompiler.c.obj
/Users/gabriele/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address -o CMakeFiles/cmTC_a7d7f.dir/testCCompiler.c.obj -c testCCompiler.c
xtensa-esp32-elf-gcc: error: testCCompiler.c: No such file or directory
xtensa-esp32-elf-gcc: fatal error: no input files
compilation terminated.
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
/Users/gabriele/.platformio/packages/framework-espidf@3.40403.0/tools/cmake/project.cmake:296 (__project)
CMakeLists.txt:6 (project)
=================================== [FAILED] Took 180.63 seconds ===================================
- The terminal process “platformio ‘run’” terminated with exit code: 1.
- Terminal will be reused by tasks, press any key to close it.