esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

ESP32-IDF Fails to build on dev branch #3272

Closed ciband closed 2 years ago

ciband commented 2 years ago

The problem

ESP32-IDF target does not compile with the latest dev branch codebase.

Which version of ESPHome has the issue?

2022.4.0

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

2021.12.10

What platform are you using?

ESP32-IDF

Board

nodemcu

Component causing the issue

PIO Build

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Processing esp32-idf (board: esp32dev; platform: platformio/espressif32 @ 3.5.0; framework: espidf)
--------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.5.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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.40302.0 (4.3.2)
 - tool-cmake 3.16.4
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - tool-ninja 1.7.1
 - toolchain-esp32ulp 1.22851.191205 (2.28.51)
 - toolchain-riscv32-esp 8.4.0+2021r2-patch2
 - toolchain-xtensa-esp32 8.4.0+2021r2-patch2
 - toolchain-xtensa-esp32s2 8.4.0+2021r2-patch2
Warning: the 'src_filter' option cannot be used with ESP-IDF. Select source files to build in the project CMakeLists.txt file.

Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- 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: /home/homeassistant/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/homeassistant/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/homeassistant/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/homeassistant/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/homeassistant/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/homeassistant/repos/esphome/.temp/sdkconfig-esp32-idf
Loading defaults file /home/homeassistant/repos/esphome/sdkconfig.defaults...
-- Configuring incomplete, errors occurred!
See also "/home/homeassistant/repos/esphome/.pio/build/esp32-idf/CMakeFiles/CMakeOutput.log".

fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
  File "/home/homeassistant/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py", line 637, in <module>
    main()
  File "/home/homeassistant/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py", line 324, in main
    update_if_changed(temp_file, filename)
  File "/home/homeassistant/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py", line 614, in update_if_changed
    with open(destination, 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/homeassistant/repos/esphome/.temp/sdkconfig-esp32-idf'
CMake Error at /home/homeassistant/.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:228 (message):
  Failed to run confgen.py
  (/srv/homeassistant/bin/python3;/home/homeassistant/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py;--kconfig;/home/homeassistant/.platformio/packages/framework-espidf/Kconfig;--sdkconfig-rename;/home/homeassistant/.platformio/packages/framework-espidf/sdkconfig.rename;--config;/home/homeassistant/repos/esphome/.temp/sdkconfig-esp32-idf;--defaults;/home/homeassistant/repos/esphome/sdkconfig.defaults;--env-file;/home/homeassistant/repos/esphome/.pio/build/esp32-idf/config.env).
  Error 1
Call Stack (most recent call first):
  /home/homeassistant/.platformio/packages/framework-espidf/tools/cmake/build.cmake:457 (__kconfig_generate_config)
  /home/homeassistant/.platformio/packages/framework-espidf/tools/cmake/project.cmake:399 (idf_build_process)
  CMakeLists.txt:3 (project)

====================================== [FAILED] Took 6.77 seconds ======================================

Environment      Status    Duration
---------------  --------  ------------
esp8266-arduino  SUCCESS   00:13:14.411
esp32-arduino    SUCCESS   00:12:14.432
esp32-idf        FAILED    00:00:06.770
================================ 1 failed, 2 succeeded in 00:25:35.613 ================================

Additional information

No response

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.