esphome / issues

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

Haos dependency causing a ESPidf compile to fail #4682

Open andylether opened 1 year ago

andylether commented 1 year ago

The problem

I am unable to compile a new Bluetooth proxy due to dependency problems.

This a new install starting from the Bluetooth proxy website.

Which version of ESPHome has the issue?

2023.6.5 and 2023.7.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.7.1

What platform are you using?

ESP32-IDF

Board

M5stack AtomU

Component causing the issue

Esphome latest version

Example YAML snippet

1st install after using the website https://esphome.github.io/bluetooth-proxies/site

Anything in the logs that might be useful for us?

INFO ESPHome 2023.6.5
INFO Reading configuration /config/esphome/atom-bluetooth-proxy-a26e34.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing atom-bluetooth-proxy-a26e34 (board: m5stack-atom; framework: espidf; platform: platformio/espressif32@5.3.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
esphome 2023.6.5 requires click==8.1.3, but you have click 8.1.4 which is incompatible.
esphome 2023.6.5 requires pyparsing>=3.0, but you have pyparsing 2.3.1 which is incompatible.
Successfully installed cachecontrol-0.13.1 certifi-2023.5.7 charset-normalizer-3.2.0 click-8.1.4 colorama-0.4.6 contextlib2-21.6.0 filelock-3.12.2 future-0.18.3 idf-component-manager-1.3.2 idna-3.4 msgpack-1.0.5 packaging-23.1 pyparsing-2.3.1 pyyaml-6.0 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.65.0 urllib3-1.26.16
Reading CMake configuration...
-- 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: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- broken
-- Configuring incomplete, errors occurred!
See also "/data/atom-bluetooth-proxy-a26e34/.pioenvs/atom-bluetooth-proxy-a26e34/CMakeFiles/CMakeOutput.log".
See also "/data/atom-bluetooth-proxy-a26e34/.pioenvs/atom-bluetooth-proxy-a26e34/CMakeFiles/CMakeError.log".

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-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /data/atom-bluetooth-proxy-a26e34/.pioenvs/atom-bluetooth-proxy-a26e34/CMakeFiles/CMakeTmp

    Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_3b1fa && [1/2] Building C object CMakeFiles/cmTC_3b1fa.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_3b1fa
    FAILED: cmTC_3b1fa 
    : && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address   CMakeFiles/cmTC_3b1fa.dir/testCCompiler.c.obj  -o cmTC_3b1fa   && :
    /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: cannot open shared object file: No such file or directory
    collect2: error: ld returned 1 exit status
    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:296 (__project)
  CMakeLists.txt:3 (project)
====[FAILED] Took 153.46 seconds

Additional information

using a 32bit HassOS system on a raspberry pi 3b

starryalley commented 11 months ago

Had this exact same issue with nodemcp-32s board, framework: espidf. It's a simple config using bluetooth proxy. I have 2023.7.1.

github-actions[bot] commented 7 months 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.