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

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

Open
gmawdsley1 opened this issue Apr 20, 2024 · 2 comments

Comments

@gmawdsley1
Copy link

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
Copy link
Member

ssieb commented Apr 20, 2024

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

@gmawdsley1
Copy link
Author

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

  • toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
    Dependency Graph
    |-- AsyncTCP-esphome @ 2.1.3
    |-- WiFi @ 2.0.0
    |-- FS @ 2.0.0
    |-- Update @ 2.0.0
    |-- ESPAsyncWebServer-esphome @ 3.1.0
    |-- DNSServer @ 2.0.0
    |-- ESPmDNS @ 2.0.0
    |-- Wire @ 2.0.0
    |-- ArduinoJson @ 6.18.5
    Compiling .pioenvs/environmental/src/esphome/components/api/api_connection.cpp.o
    sh: 1: riscv32-esp-elf-g++: not found
    Compiling .pioenvs/environmental/src/esphome/components/api/api_frame_helper.cpp.o
    sh: 1: riscv32-esp-elf-g++: not found
    Compiling .pioenvs/environmental/src/esphome/components/api/api_pb2.cpp.o
    sh: 1: riscv32-esp-elf-g++: not found
    *** [.pioenvs/environmental/src/esphome/components/api/api_connection.cpp.o] Error 127
    Compiling .pioenvs/environmental/src/esphome/components/api/api_pb2_service.cpp.o
    *** [.pioenvs/environmental/src/esphome/components/api/api_frame_helper.cpp.o] Error 127
    *** [.pioenvs/environmental/src/esphome/components/api/api_pb2.cpp.o] Error 127
    sh: 1: riscv32-esp-elf-g++: not found
    *** [.pioenvs/environmental/src/esphome/components/api/api_pb2_service.cpp.o] Error 127
    ========================= [FAILED] Took 34.97 seconds =========================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants