esphome / issues

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

raspberry pi4 produces yaml compile errors #698

Closed Spackstor closed 4 years ago

Spackstor commented 4 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

ESP (ESP32/ESP8266, Board/Sonoff):

LolinV3 **Affected component:** No component affected Please add the link to the documentation at https://esphome.io/index.html of the component in question. -->

Description of problem: very simple basic esphomeyaml fails to compile

Problem-relevant YAML-configuration entries:

PASTE YAML FILE HERE
esphomeyaml:
  name: garage
  platform: ESP8266
  board: nodemcuv2
  build_path: garage
  arduino_version: espressif8266@1.8.0
  esphomelib_version:
    repository: https://github.com/OttoWinter/esphomelib.git
    tag: v1.10.1
  use_custom_code: false
wifi:
  domain: .local
  networks:
  - password: 
    ssid: 
logger:
  baud_rate: 115200
api:
  password: ''
  port: 6053
ota:
  safe_mode: true

Logs (if applicable):

PASTE DEBUG LOG HERE
INFO Reading configuration...
INFO Generating C++ source...
INFO Compiling app...
INFO Running:  platformio run -d config/garage
WARNING ********************************************************************************
WARNING A new version of esphomeyaml is available: 1.13.6 (this is 1.10.1)
WARNING Changelog: https://esphomelib.com/esphomeyaml/changelog/index.html
WARNING Update Instructions: https://esphomelib.com/esphomeyaml/guides/faq.html#how-do-i-update-to-the-latest-version
WARNING ********************************************************************************
Processing garage (board: nodemcuv2; framework: arduino; platform: espressif8266@1.8.0)
-----------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 1.8.0 > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 1.40802.2 (4.8.2), tool-esptool 1.413.0 (4.13), framework-arduinoespressif8266 2.20402.4 (2.4.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS>
|   |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncTCP> 1.1.3
|   |-- <ESP8266WiFi> 1.0
|-- <Hash> 1.0
|-- <esphomelib> 1.10.1
|   |-- <AsyncMqttClient> 0.8.2
|   |   |-- <ESPAsyncTCP> 1.1.3
|   |   |   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoJson-esphomelib> 5.13.3
|   |-- <ESP Async WebServer> 1.1.1
|   |   |-- <ESPAsyncTCP> 1.1.3
|   |   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <Hash> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ArduinoJson-esphomelib> 5.13.3
|   |-- <FastLED> 3.2.0
|   |   |-- <EspSoftwareSerial> 3.4.1
|   |-- <NeoPixelBus> 2.4.1
|   |   |-- <SPI> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESPAsyncTCP> 1.1.3
|   |   |-- <ESP8266WiFi> 1.0
|   |-- <ArduinoOTA> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|   |   |-- <ESP8266mDNS>
|   |   |   |-- <ESP8266WiFi> 1.0
|   |-- <Wire> 1.0
|   |-- <ESP8266mDNS>
|   |   |-- <ESP8266WiFi> 1.0
Compiling .pio/build/garage/lib502/FastLED_ID126/FastLED.cpp.o
Compiling .pio/build/garage/lib502/FastLED_ID126/bitswap.cpp.o
Compiling .pio/build/garage/lib502/FastLED_ID126/colorpalettes.cpp.o
Compiling .pio/build/garage/lib502/FastLED_ID126/colorutils.cpp.o
as: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
xtensa-lx106-elf-g++: internal compiler error: Aborted (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** [.pio/build/garage/lib502/FastLED_ID126/bitswap.cpp.o] Error 4
as: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
xtensa-lx106-elf-g++: internal compiler error: Aborted (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** [.pio/build/garage/lib502/FastLED_ID126/colorpalettes.cpp.o] Error 4
as: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
xtensa-lx106-elf-g++: internal compiler error: Aborted (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** [.pio/build/garage/lib502/FastLED_ID126/FastLED.cpp.o] Error 4
as: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
xtensa-lx106-elf-g++: internal compiler error: Aborted (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
*** [.pio/build/garage/lib502/FastLED_ID126/colorutils.cpp.o] Error 4
============================================================ [FAILED] Took 5.41 seconds ============================================================

Additional information and things you've tried: ill try loading from windows

brandond commented 4 years ago

Duplicate of #518

Easy fix seems to be export LANG=en_US before compiling. You can also try ensuring that you have the correct locale data available for whatever language you're using but that may involve more steps.

Spackstor commented 4 years ago

Thanks Brandon It gave an error from my mosquitto mqtt so I used the locale option in raspi-config for a global change. That fixed that. Now It does compile but upload (plugged in USB - have right device selected) is not cooperating. Download binary is also giving me grief. Getting an error 500, no such file or directory on the HTTP GET command.

Feels like progress. Ill check the posted errors.

Thanks again

From: Brandon Davidson notifications@github.com Sent: September 27, 2019 11:09 AM To: esphome/issues issues@noreply.github.com Cc: Spackstor msoublie@cogeco.ca; Author author@noreply.github.com Subject: Re: [esphome/issues] raspberry pi4 produces yaml compile errors (#698)

Closed #698https://github.com/esphome/issues/issues/698.

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/esphome/issues/issues/698?email_source=notifications&email_token=AEHID6JRHRVFKG4ML4WV6D3QLYOZJA5CNFSM4I3HEY2KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOT4KYSNY#event-2668988727, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEHID6PROQE6UMC7KD3SMCTQLYOZJANCNFSM4I3HEY2A.