Esp32 wt32 eth01 Cmake error

Hello, I’m getting Cmake error, a week ago it was working just fine and now I found I can’t upload anything anymore, just getting Cmake error "INFO ESPHome 2025.10.3
INFO Reading configuration /config/esphome/centrometal.yaml…
WARNING [ethernet] The ‘clk_mode’ option is deprecated and will be removed in ESPHome 2026.1. Please update your configuration to use ‘clk’ instead.
WARNING GPIO0 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See Frequently Asked Questions - ESPHome - Smart Home Made Simple
INFO Generating C++ source…
INFO Compiling app…
Processing centrometal (board: wt32-eth01; framework: arduino, espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)

INFO Package configuration completed successfully
INFO Package configuration completed successfully
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash

  • framework-arduinoespressif32 @ 3.2.1
  • framework-arduinoespressif32-libs @ 5.4.0+sha.858a988d6e
  • framework-espidf @ 3.50402.0 (5.4.2)
  • tool-cmake @ 3.30.2
  • tool-esp-rom-elfs @ 2024.10.11
  • tool-esptoolpy @ 5.0.2
  • tool-mklittlefs @ 3.2.0
  • tool-ninja @ 1.13.1
  • tool-scons @ 4.40801.0 (4.8.1)
  • toolchain-xtensa-esp-elf @ 14.2.0+20241119
    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).’
    – Building ESP-IDF components for target esp32
    NOTICE: Skipping optional dependency: espressif/esp-sr
    NOTICE: Skipping optional dependency: espressif/esp_hosted
    NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
    NOTICE: Skipping optional dependency: espressif/esp-sr
    NOTICE: Skipping optional dependency: espressif/esp_hosted
    NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
    NOTICE: Skipping optional dependency: espressif/esp-sr
    NOTICE: Skipping optional dependency: espressif/esp_hosted
    NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
    Processing 25 dependencies:
    [1/25] chmorgan/esp-libhelix-mp3 (1.0.3)
    [2/25] espressif/cbor (0.6.0~1)
    [3/25] espressif/esp-dsp (1.7.0)
    [4/25] espressif/esp-modbus (1.0.18)
    [5/25] espressif/esp-serial-flasher (0.0.11)
    [6/25] espressif/esp-zboss-lib (1.6.3)
    [7/25] espressif/esp-zigbee-lib (1.6.3)
    [8/25] espressif/esp_diag_data_store (1.0.2)
    [9/25] espressif/esp_diagnostics (1.2.1)
    [10/25] espressif/esp_insights (1.2.2)
    [11/25] espressif/esp_modem (1.4.1)
    [12/25] espressif/esp_rainmaker (1.5.2)
    [13/25] espressif/esp_rcp_update (1.2.0)
    [14/25] espressif/esp_schedule (1.2.0)
    [15/25] espressif/esp_secure_cert_mgr (2.7.0)
    [16/25] espressif/jsmn (1.1.0)
    [17/25] espressif/json_generator (1.1.2)
    [18/25] espressif/json_parser (1.0.3)
    [19/25] espressif/libsodium (1.0.20~2)
    [20/25] espressif/mdns (1.8.2)
    [21/25] espressif/network_provisioning (1.0.2)
    [22/25] espressif/qrcode (0.1.0~2)
    [23/25] espressif/rmaker_common (1.4.6)
    [24/25] joltwallet/littlefs (1.20.1)
    [25/25] idf (5.4.2)
    – DEBUG: Use esp-modbus component folder: /data/build/centrometal/managed_components/espressif__esp-modbus.
    NOTICE: Skipping optional dependency: espressif/esp-sr
    NOTICE: Skipping optional dependency: espressif/esp_hosted
    NOTICE: Skipping optional dependency: espressif/esp_wifi_remote
    – Project sdkconfig file /data/build/centrometal/sdkconfig.centrometal
    – 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).
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/kconfgen/main.py”, line 18, in
main()
File “/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/kconfgen/core.py”, line 717, in main
config = kconfiglib.Kconfig(args.kconfig, parser_version=parser_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/kconfiglib/core.py”, line 920, in init
self()
File “/root/.platformio/penv/.espidf-5.4.2/lib/python3.12/site-packages/kconfiglib/core.py”, line 928, in call
self._readline = open(join(self.srctree, self.filename), “r”, encoding=self._encoding).readline
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘/data/cache/platformio/packages/framework-espidf/Kconfig’
CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:209 (message):
Failed to run kconfgen
(/root/.platformio/penv/.espidf-5.4.2/bin/python;-m;kconfgen;–list-separator=semicolon;–kconfig;/data/cache/platformio/packages/framework-espidf/Kconfig;–sdkconfig-rename;/data/cache/platformio/packages/framework-espidf/sdkconfig.rename;–config;/data/build/centrometal/sdkconfig.centrometal;–env-file;/data/build/centrometal/.pioenvs/centrometal/config.env).
Error 1
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/build.cmake:691 (__kconfig_generate_config)
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:718 (idf_build_process)
CMakeLists.txt:3 (project)

========================= [FAILED] Took 15.00 seconds =========================" "esphome:
name: centrometal
esp32:
board: wt32-eth01
framework:
type: arduino

ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16

logger:

api:

ota:

  • platform: esphome
    password: “1f3e48ed0efb9779e48987f66166c73c”

I tried a lot of frameworks and lots of other thing but nothing worked, is whis something new or what, please help if you can

Did you clear the ESPHome cache before recompiling? Often there are artifacts left over, especially if you are swapping between Arduino and IDF ecosystems, and clearing them will allow for the latest to be freshly downloaded, and related dependancies updated.

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16