Code Monkey home page Code Monkey logo

Comments (11)

lanwin avatar lanwin commented on September 13, 2024

@mbo18 thank you for your report. What do you mean by ESP-IDF? Can you post an example yaml I can use to recreate that?

from esphome_samsung_ac.

mbo18 avatar mbo18 commented on September 13, 2024

ESP-IDF is the new framework from Espressif for ESP32. See ESPHome doc here: https://esphome.io/components/esp32#esp32-espidf-framework

By default, the current framework is 'arduino':

esp32:
  board: m5stack-atom
  framework:
    type: arduino

but you can change it with esp-idf (which will become the default somewhere in the future):

esp32:
  board: m5stack-atom
  framework:
    type: esp-idf

from esphome_samsung_ac.

lanwin avatar lanwin commented on September 13, 2024
See also "/config/.esphome/build/esp32-test-bug/.pioenvs/esp32-test-bug/CMakeFiles/CMakeOutput.log".
See also "/config/.esphome/build/esp32-test-bug/.pioenvs/esp32-test-bug/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 /config/.esphome/platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/config/.esphome/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: /config/.esphome/build/esp32-test-bug/.pioenvs/esp32-test-bug/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/config/.esphome/platformio/packages/tool-ninja/ninja cmTC_8a11e && [1/2] Building C object CMakeFiles/cmTC_8a11e.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_8a11e
    FAILED: cmTC_8a11e 
    : && /config/.esphome/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address   CMakeFiles/cmTC_8a11e.dir/testCCompiler.c.obj  -o cmTC_8a11e   && :
    /config/.esphome/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /config/.esphome/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /config/.esphome/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):
  /config/.esphome/platformio/packages/framework-espidf/tools/cmake/project.cmake:298 (__project)
  CMakeLists.txt:3 (project)

Can you please check that again? I get a different error when comping.

from esphome_samsung_ac.

mbo18 avatar mbo18 commented on September 13, 2024

Did you clean the build files before changing to esp-idf and click install ?

from esphome_samsung_ac.

lanwin avatar lanwin commented on September 13, 2024

Yes I did and it didnt change anything.

from esphome_samsung_ac.

mbo18 avatar mbo18 commented on September 13, 2024

Strange, redid all and still the same log here: logs_bureau-hvac_compile.txt

I'm using the ESPHome add-on from HAOS.

Yaml is:

esphome:
  name: bureau-hvac
  friendly_name: Bureau HVAC
  comment: "Climatisation de gauche"

esp32:
  board: m5stack-atom
  framework:
    type: esp-idf

uart:
  tx_pin: GPIO19
  rx_pin: GPIO22
  baud_rate: 9600
  parity: EVEN

external_components:
  - source: github://lanwin/esphome_samsung_ac@main
    components: [samsung_ac]
    refresh: 0s

samsung_ac:
  debug_log_messages_raw: false
  debug_log_messages: false
  devices:
    - address: "20.00.00"
      climate:
        name: None
      room_temperature:
        name: "Temperature"
      room_humidity:
        name: "Humidity"

wifi:
  networks:
    - ssid: !secret wifi_ssid
      password: !secret wifi_password
    - ssid: !secret wifi_ssid_live
      password: !secret wifi_password_live
  ap:
    password: !secret api_ota_pwd

captive_portal:

web_server:
  port: 80
  auth:
    username: admin
    password: !secret api_ota_pwd

logger:

api:
  encryption:
    key: !secret esphome_enc_key

ota:
  password: !secret api_ota_pwd

from esphome_samsung_ac.

lanwin avatar lanwin commented on September 13, 2024

Witch ESPHome version you are on? I am on 2023.12.5

from esphome_samsung_ac.

mbo18 avatar mbo18 commented on September 13, 2024

Same (first line in the log). I’m using HAOS 11.2 with HA 2023.12.3 and the stable release of the ESPHome addon (2023.12.5).
Maybe something on your side with dependencies?

from esphome_samsung_ac.

mbo18 avatar mbo18 commented on September 13, 2024

I just found this: "try to delete folder /home/xxxx/.platformio/packages/toolchain-xtensa32 and run your project again."
from https://community.platformio.org/t/cmake-error-while-building/15692/9

from esphome_samsung_ac.

lanwin avatar lanwin commented on September 13, 2024

I think I stumbled across this problem esphome/issues#3076 the suggestions is to switch over to type: arduino ^^

from esphome_samsung_ac.

mbo18 avatar mbo18 commented on September 13, 2024

Ah… not fun. Seems to be an issue on RPi. I’m running HAOS on a Nuc.

from esphome_samsung_ac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.