esphome / issues

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

Error compiling- error trying to exec 'as': execvp: No such file or directory #5715

Open gmawdsley1 opened 5 months ago

gmawdsley1 commented 5 months ago

The problem

Compiling .pioenvs/esphome-web-camera/src/esphome/components/api/api_pb2_service.cpp.o xtensa-esp32-elf-g++: error trying to exec 'as': execvp: No such file or directory *** [.pioenvs/esphome-web-camera/src/esphome/components/api/api_frame_helper.cpp.o] Error 1 xtensa-esp32-elf-g++: error trying to exec 'as': execvp: No such file or directory

Which version of ESPHome has the issue?

2024.4.0

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

2024.4.2

What platform are you using?

ESP32

Board

ESP32-cam

Component causing the issue

No response

Example YAML snippet

substitutions:
  name: esphome-web-camera
  friendly_name: esp-camera

esphome:
  name: ${name}
  friendly_name: ${friendly_name}
  name_add_mac_suffix: false
  project:
    name: esphome.web
    version: '1.0'

esp32:
  board: esp32dev
  framework:
    type: arduino

# Example configuration entry
esp32_camera:
  name: my-camera
  external_clock:
    pin: GPIO27
    frequency: 20MHz
  i2c_pins:
    sda: GPIO25
    scl: GPIO23
  data_pins: [GPIO17, GPIO35, GPIO34, GPIO5, GPIO39, GPIO18, GPIO36, GPIO19]
  vsync_pin: GPIO22
  href_pin: GPIO26
  pixel_clock_pin: GPIO21
  reset_pin: GPIO15
  resolution: 640x480
  jpeg_quality: 10

# Enable logging
logger:

# Enable Home Assistant API
api:

# Allow Over-The-Air updates
ota:

# Allow provisioning Wi-Fi via serial
improv_serial:

wifi:
  # Set up a wifi access point
  ap: {}

# In combination with the `ap` this allows the user
# to provision wifi credentials to the device via WiFi AP.
captive_portal:

dashboard_import:
  package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main
  import_full_config: true

# Sets up Bluetooth LE (Only on ESP32) to allow the user
# to provision wifi credentials to the device.
esp32_improv:
  authorizer: none

# To have a "next url" for improv serial
web_server:

Anything in the logs that might be useful for us?

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.4.2",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "America/Toronto",
    "os_name": "Linux",
    "os_version": "6.1.73-haos-raspi",
    "supervisor": "2024.04.0",
    "host_os": "Home Assistant OS 12.2",
    "docker_version": "25.0.5",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "infinitude_beyond": {
      "version": "2024.3.0",
      "requirements": []
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "smartthinq_sensors": {
      "version": "0.39.0",
      "requirements": [
        "pycountry>=23.0.0",
        "xmltodict>=0.13.0",
        "charset_normalizer>=3.2.0"
      ]
    }
  },
  "integration_manifest": {
    "domain": "esphome",
    "name": "ESPHome",
    "after_dependencies": [
      "zeroconf",
      "tag"
    ],
    "codeowners": [
      "@OttoWinter",
      "@jesserockz",
      "@kbx81",
      "@bdraco"
    ],
    "config_flow": true,
    "dependencies": [
      "assist_pipeline",
      "bluetooth"
    ],
    "dhcp": [
      {
        "registered_devices": true
      }
    ],
    "documentation": "https://www.home-assistant.io/integrations/esphome",
    "integration_type": "device",
    "iot_class": "local_push",
    "loggers": [
      "aioesphomeapi",
      "noiseprotocol",
      "bleak_esphome"
    ],
    "requirements": [
      "aioesphomeapi==23.2.0",
      "esphome-dashboard-api==1.2.3",
      "bleak-esphome==1.0.0"
    ],
    "zeroconf": [
      "_esphomelib._tcp.local."
    ],
    "is_built_in": true
  },
  "data": {
    "config": {
      "entry_id": "23e6b498f281561289fe1c914339a0d8",
      "version": 1,
      "minor_version": 1,
      "domain": "esphome",
      "title": "ESPHome Web 540d80",
      "data": {
        "host": "192.168.2.241",
        "port": 6053,
        "password": "",
        "noise_psk": "",
        "device_name": "esphome-web-540d80"
      },
      "options": {
        "allow_service_calls": true
      },
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "zeroconf",
      "unique_id": "a0:b7:65:54:0d:80",
      "disabled_by": null
    },
    "storage_data": {
      "device_info": {
        "uses_password": false,
        "name": "esphome-web-540d80",
        "friendly_name": "ESPHome Web 540d80",
        "mac_address": "**REDACTED**",
        "compilation_time": "Mar 26 2024, 07:25:13",
        "model": "esp32dev",
        "manufacturer": "Espressif",
        "has_deep_sleep": false,
        "esphome_version": "2024.3.0",
        "project_name": "esphome.web",
        "project_version": "1.0",
        "webserver_port": 80,
        "voice_assistant_version": 0,
        "legacy_bluetooth_proxy_version": 0,
        "bluetooth_proxy_feature_flags": 0,
        "suggested_area": ""
      },
      "services": [],
      "api_version": {
        "major": 1,
        "minor": 9
      }
    },
    "dashboard": "5c53de3b_esphome"
  }
}

Additional information

Is "as" in the PATH? This looks like https://community.home-assistant.io/t/esp32-wont-compile-xtensa-esp32-elf-g-internal-compiler-error-killed-program-cc1plus/490814

ssieb commented 5 months ago

It's not the same as that. Try re-creating the container.

gmawdsley1 commented 5 months ago

I have updated core and Supervisor. I tried loading the bare template, and had the same fail as above. I then teried the MHz19 install:

INFO ESPHome 2024.4.1 INFO Reading configuration /config/esphome/esphome-web-540d80.yaml... INFO Updating https://github.com/fornellas/esphome@mhz19_patches INFO Generating C++ source... INFO Compiling app... Processing environmental (board: esp32-c3-devkitm-1; framework: arduino; platform: platformio/espressif32@5.4.0)

HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash

sol3uk commented 4 months ago

I have the same issue with an ever so slightly different error message. I'm on HA 2024.5.5 Addon version: 2024.5.4 The error message is: riscv32-esp-elf-g++: error trying to exec 'cc1plus': execvp: No such file or directory

From doing a bit of reading online it seems like the addon is maybe missing a package gcc-c++ / g++? https://stackoverflow.com/questions/8878676/compile-error-g-error-trying-to-exec-cc1plus-execvp-no-such-file-or-dir

I'm not 100% sure, but I would rather not uninstall the addon and reinstall it, since I'm not sure what would happen to my existing devices. If anyone can help clarify what would happen on a reinstall and if my devices would need to be setup again in HA, then that would help me make a decision on where to go next or if to wait for a fix.

ssieb commented 4 months ago

Nothing happens if you do a re-install. The yaml files are in the HA common config area. And it has nothing to do with the devices being integrated in HA. You should of course be backing them up anyway.