About two esphome updates ago I notinced that I cannot update my ESP32-C3 devices. I kinds ashugged it off as I was happy with what was working, now I want to make changes I get thi s error:
‘’’
Using Python 3.12.10 environment at: /root/.platformio/penv/.espidf-5.5.4
Reading CMake configuration…
– git rev-parse returned ‘fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).’
– Minimal build - OFF
– The C compiler identification is unknown
– The CXX compiler identification is unknown
– The ASM compiler identification is GNU
– Found assembler: /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc
– Detecting C compiler ABI info
– Detecting C compiler ABI info - failed
– Check for working C compiler: /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc
– Check for working C compiler: /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc - broken
– Configuring incomplete, errors occurred!
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/tool-cmake/share/cmake-4.0/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/data/build/dogbowl/.pioenvs/dogbowl/CMakeFiles/CMakeScratch/TryCompile-uWrb2X'
Run Build Command(s): /data/cache/platformio/packages/tool-ninja/ninja -v cmTC_b629c
[1/2] /data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc @"/data/build/dogbowl/.pioenvs/dogbowl/toolchain/cflags" -o CMakeFiles/cmTC_b629c.dir/testCCompiler.c.obj -c /data/build/dogbowl/.pioenvs/dogbowl/CMakeFiles/CMakeScratch/TryCompile-uWrb2X/testCCompiler.c
FAILED: [code=1] CMakeFiles/cmTC_b629c.dir/testCCompiler.c.obj
/data/cache/platformio/packages/toolchain-riscv32-esp/bin/riscv32-esp-elf-gcc @"/data/build/dogbowl/.pioenvs/dogbowl/toolchain/cflags" -o CMakeFiles/cmTC_b629c.dir/testCCompiler.c.obj -c /data/build/dogbowl/.pioenvs/dogbowl/CMakeFiles/CMakeScratch/TryCompile-uWrb2X/testCCompiler.c
Assembler messages:
Fatal error: invalid -march= option: `rv32imafdc_zicsr_zifencei'
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:601 (__project)
CMakeLists.txt:3 (project)
========================== [FAILED] Took 4.30 seconds ==========================
‘’’
Here is the first few lines of my yaml:
esphome:
name: dogbowl
friendly_name: dogbowl
esp32:
board: esp32-c3-devkitm-1
framework:
type: esp-idf
I cleaned the build files
I changed to arduino
Tried to force it to a specific version 5.1.4
Tried these commands from Claude
rm -rf /data/cache/platformio/packages/toolchain-riscv32-esp
rm -rfrm -rf /data/build/dogbowl
rm -rf /data/cache/platformio
All with the same result. Is there a fix for this??? I only have two of these little guys but I want to use them for future projects.
Thanks for any ideas!
Blockquote