Not sure when this stopped working. I am currently on 2023.12.3 I want to create a bluetooth proxy ESP32 device. When it is initually adopted it uses the arduino framework, which the bluetooth proxy notes reccomend is changed to esp-idf.
This is the only change I make but it no longer compiles, output below.
Hardware is Raspberry Pi 4 running 11.2
Yaml file below :
esphome:
name: esphome-web-dfd104
friendly_name: ESPHome Web dfd104
esp32:
board: esp32dev
framework:
type: esp-idf
Enable logging
logger:
Enable Home Assistant API
api:
encryption:
key: “XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “Esphome-Web-Dfd104”
password: “XXXXXXXXXXXX”
captive_portal:
INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/esphome-web-dfd104.yaml…
INFO Generating C++ source…
INFO Compiling app…
Processing esphome-web-dfd104 (board: esp32dev; framework: espidf; platform: platformio/[email protected])
Removing unused dependencies…
Library Manager: Removing AsyncTCP-esphome @ 2.0.1
INFO Removing AsyncTCP-esphome @ 2.0.1
Library Manager: [email protected] has been removed!
INFO [email protected] has been removed!
Library Manager: Removing ESPAsyncWebServer-esphome @ 3.1.0
INFO Removing ESPAsyncWebServer-esphome @ 3.1.0
Library Manager: Removing dependencies…
INFO Removing dependencies…
Library Manager: [email protected] has been removed!
INFO [email protected] has been removed!
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- framework-espidf @ 3.40405.230623 (4.4.5)
- tool-cmake @ 3.16.9
- tool-ninja @ 1.10.2
- toolchain-esp32ulp @ 2.35.0-20220830
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Reading CMake configuration…
– Found Git: /usr/bin/git (found version “2.39.2”)
– 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/build/esphome-web-dfd104/.pioenvs/esphome-web-dfd104/CMakeFiles/CMakeOutput.log”.
See also “/data/build/esphome-web-dfd104/.pioenvs/esphome-web-dfd104/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/build/esphome-web-dfd104/.pioenvs/esphome-web-dfd104/CMakeFiles/CMakeTmp
Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_647d4 && [1/2] Building C object CMakeFiles/cmTC_647d4.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_647d4
FAILED: cmTC_647d4
: && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address CMakeFiles/cmTC_647d4.dir/testCCompiler.c.obj -o cmTC_647d4 && :
/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/[email protected]/tools/cmake/project.cmake:298 (__project)
CMakeLists.txt:3 (project)
========================== [FAILED] Took 9.80 seconds ==========================