Skip to content

Fatal Error on compile with ESPHome 2025.8.x for athom-smart-plug-v3 #61

@wmrato

Description

@wmrato

Unable to Compile firmware for athom-smart-plug-v3, since ESPHome 2025.8.x,
have retried & failed to re-compile up to 2025.8,.2.

Done some research & possibly error is when framework: type: esp-idf is used.
Compile has issues with platformio library not found.

Have tried:-

  • Checked the file system via SSH & can see no platformio folder.
    Online fix stated delete platformio folder & reboot to make ESPHome rebuild platformio library.
  • Tried Clean Build Files before compiling.
  • Restarted ESPHome Addon & rebooted HA OS.

Compiled on:
OS: Home Assistant OS 2025.8.3
HW: ODROID-N2+ 4GB, 64GB

Compile Error
`
Install athom-smart-plug-v3.yaml
INFO ESPHome 2025.8.2
INFO Reading configuration /config/esphome/athom-smart-plug-v3.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing athom-smart-plug-v3 (board: esp32-c3-devkitm-1; framework: 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: ESP32C3 160MHz, 320KB RAM, 4MB Flash

  • 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-esp32ulp @ 2.35.0-20220830
  • toolchain-riscv32-esp @ 14.2.0+20241119
    Reading CMake configuration...
    -- Found Git: /usr/bin/git (found version "2.39.5")
    -- 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).'
    -- The C compiler identification is unknown
    -- The CXX compiler identification is unknown
    -- The ASM compiler identification is unknown
    -- Found assembler: riscv32-esp-elf-gcc
    -- Warning: Did not find file Compiler/-ASM
    -- 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/framework-espidf/tools/cmake/project.cmake:571 (__project):
The CMAKE_C_COMPILER:

riscv32-esp-elf-gcc

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)

CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):
The CMAKE_CXX_COMPILER:

riscv32-esp-elf-g++

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)

CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):
The CMAKE_ASM_COMPILER:

riscv32-esp-elf-gcc

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)

========================== [FAILED] Took 3.24 seconds ==========================
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions