Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Compiling Error -- The C compiler identification is unknown -- The CXX compiler identification is unknown #2432

Open
morpheus-pl opened this issue Dec 12, 2024 · 3 comments
Labels
Bug Identifies an issue where the system is not functioning as expected.

Comments

@morpheus-pl
Copy link

TFT Version

4.3.11

Firmware Version

2024.11.3

Blueprint Version

4.3.11

Panel Model

US (Landscape)

What is the bug?

I cannot compile any of the ESP versions bigger than 2024.11.3.
All new firmwares during the compiling process - even after clean build - shows the faults:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
What shall I do to overcome the compile error.

Steps to Reproduce

During compilation for firmware update installation.

Your Panel's YAML

substitutions:
  # Settings - Editable values
  device_name: "nspanel-sypialniaesp" 
  wifi_ssid: !secret wifi_ssid
  wifi_password: !secret wifi_pass
  nextion_update_url: "http://homeassistant.local:8123/local/nspanelusland.tft"  # Optional
  # Add-on configuration (if needed)
  # heater_relay: "1"  # Possible values: "1" or "2"

# Customization area
##### My customization - Start #####
wifi:
  # ...
  manual_ip:
    # Set this to the IP of the ESP
    static_ip: 192.168.xxx.107
    # Set this to the IP address of the router. Often ends with .1
    gateway: 192.168.xxx.1
    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.255.0
    dns1: 192.168.xxx.1
    dns2: 8.8.8.8
##### My customization - End #####

# Core and optional configurations
packages:
  remote_package:
    url: https://github.com/Blackymas/NSPanel_HA_Blueprint
    ref: main
    refresh: 300s
    files:
      - nspanel_esphome.yaml # Basic package
      # Optional advanced and add-on configurations
      #- nspanel_esphome_advanced.yaml
      # - nspanel_esphome_addon_climate_cool.yaml
      # - nspanel_esphome_addon_climate_heat.yaml
      # - nspanel_esphome_addon_climate_dual.yaml
esphome:
  compile_process_limit: 1
esp32:
  framework:
    type: esp-idf
# Enable wireless updates
ota:
  platform: esphome
  password: "xxx"
##### My customization - Start #####
##### My customization - End #####

ESPHome Logs

No response

Home Assistant Logs

No response

@morpheus-pl morpheus-pl added the Bug Identifies an issue where the system is not functioning as expected. label Dec 12, 2024
@Volvox0815
Copy link

Think I run into the same issue. Any ideas?
Using the default yaml configuration in the HowTo with no changes.
Running HomeAssistant OS on a RaspberryPi

INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/daniel-wohnung-nspanel.yaml...
INFO Detected timezone 'Europe/Berlin'
INFO Generating C++ source...
INFO Updating https://github.com/espressif/[email protected]
INFO Compiling app...
Processing danielwohnungnspanel (board: esp32dev; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32.git#51.03.07)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - framework-espidf @ 3.50105.0 (5.1.5) 
 - tool-cmake @ 3.21.3 
 - tool-esptoolpy @ 4.8.1 
 - tool-mklittlefs @ 3.2.0 
 - tool-ninja @ 1.10.2 
 - tool-riscv32-esp-elf-gdb @ 12.1.0+20221002 
 - tool-xtensa-esp-elf-gdb @ 12.1.0+20221002 
 - toolchain-esp32ulp @ 2.35.0-20220830 
 - toolchain-xtensa-esp32 @ 12.2.0+20230208
Reading CMake configuration...
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- The C compiler identification is unknown
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- 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/danielwohnungnspanel/.pioenvs/danielwohnungnspanel/CMakeFiles/CMakeOutput.log".
See also "/data/build/danielwohnungnspanel/.pioenvs/danielwohnungnspanel/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.21/Modules/CMakeTestCCompiler.cmake:69 (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/danielwohnungnspanel/.pioenvs/danielwohnungnspanel/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_682ea && [1/2] Building C object CMakeFiles/cmTC_682ea.dir/testCCompiler.c.obj
    FAILED: CMakeFiles/cmTC_682ea.dir/testCCompiler.c.obj 
    /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc   -mlongcalls -Wno-frame-address -o CMakeFiles/cmTC_682ea.dir/testCCompiler.c.obj -c /data/build/danielwohnungnspanel/.pioenvs/danielwohnungnspanel/CMakeFiles/CMakeTmp/testCCompiler.c
    xtensa-esp32-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
    compilation terminated.
    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:505 (__project)
  CMakeLists.txt:3 (project)



========================= [FAILED] Took 18.11 seconds =========================

@edwardtfn
Copy link
Collaborator

You probably got out of resources in your RPi to build this.
Trying "Restart the Host System" (just restarting HA won't restart the ESPHome builder) to free-up some memory and then try to compile from a fresh system.

@plasterer41
Copy link

plasterer41 commented Dec 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Identifies an issue where the system is not functioning as expected.
Projects
None yet
Development

No branches or pull requests

4 participants