mmakaay / esphome-xiaomi_bslamp2

ESPHome integration for the Xiaomi Mijia Bedside Lamp v2.
Other
219 stars 51 forks source link

[BUG] Can't compile on esphome 11.0 #122

Closed szymucha94 closed 1 year ago

szymucha94 commented 1 year ago

Can't update lamps on esphome 11.0.

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/lr-bedside-lamp/.pioenvs/lr-bedside-lamp/CMakeFiles/CMakeTmp

Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_9361e && [1/2] Building C object CMakeFiles/cmTC_9361e.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_9361e
FAILED: cmTC_9361e 
: && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address   CMakeFiles/cmTC_9361e.dir/testCCompiler.c.obj  -o cmTC_9361e   && :
xtensa-esp32-elf-gcc: internal compiler error: Segmentation fault signal terminated program collect2

I've also tried adding this to lamp's yaml:

esp32: board: esp32doit-devkit-v1 framework: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y

but it didn't make any difference.

szymucha94 commented 1 year ago

Also created bug report against esphome as it doesn't have to be related to this project. https://github.com/esphome/issues/issues/5129

szymucha94 commented 1 year ago

fixed by reinstalling esphome...