Compiling error on ESP8266

Morning All

I have been running ESPHome with these devices for coming up to 2 years without a single hiccup.
However since I think 2023.8 I’ve been getting an error during the compile phase of an update that only effects my ESP8266 based devices, but not my ESP32 based devices and I am at a bit of a loss how to resolve it.
The error is at the last stage of the update:

Linking /data/office1aqm/.pioenvs/office1aqm/firmware.elf
/data/cache/platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/lib/libm.a: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status

I’ve tried removing and readding them to ESPHome, I’ve tried a “clean build files” (Not sure what it’s supposed to do but tried it anyway) but they still just give the same error.

Can anyone point me in the right direction?

Pete

The reason why our home almost exclusively got esphome nodes! The “just works :tm:” is something other commercial technologies still need to invent :joy:

You cleaned the build files already which would have been my first take too :thinking:

Now, another try would be to change the framework version (maybe to latest) in your esp82xx yaml and try to compile it - just to see if it makes a difference.

In case that didn’t do the trick might be helpful to paste your full yaml in this thread :wink:

Thanks for that.

I didn’t have a seperate esp8266 section so I amended my yaml and added the framework… no dice.

My original yaml is the same for all 4 devices, only the devicename and description is different:

substitutions:
  devicename: bedroom2aqm
  description: Bedroom 2 - AQM

esphome:
  name: $devicename
  comment: $description
  platform: ESP8266
  board: d1_mini
  
button:
  - platform: restart
    name: "Restart"

wifi:
  ssid: !secret wifi_not_ssid
  password: !secret wifi_password
  fast_connect: on
  domain: !secret domain

  ap:
    ssid: "$devicename"
    password: !secret wifi_password
    
logger:
  level: DEBUG

api:
  encryption: 
    key: !secret esphome_api_key

ota:
  password: !secret password

uart:
  rx_pin: D4
  baud_rate: 9600

i2c:
  sda: SCL
  scl: SDA

sensor:
  - platform: pm1006
    pm_2_5:
      name: "$description - PM2.5"
      accuracy_decimals: 2
      filters:
        - offset: 0
        - sliding_window_moving_average:
            window_size: 100
            send_every: 10
            
  - platform: ccs811
    eco2:
      name: "$description - eCO2"
      filters:
        - sliding_window_moving_average:
            window_size: 10
            send_every: 2
    tvoc:
      name: "$description - TVOC"
      filters:
        - sliding_window_moving_average:
            window_size: 10
            send_every: 2
    address: 0x5A
    update_interval: 30 seconds

I amended the esphome section to

esphome:
  name: $devicename
  comment: $description

esp8266:  
  board: d1_mini
  framework:
    version: latest
  

I also tried version “recommended” with the same error.

I missed the obvious - I uninstalled and reinstalled the ESPHome add-in and I’m back in business!

1 Like