Skip to content

PlatformIO [email protected] linker error  #743

@trysten

Description

@trysten

Newest PlatformIO platform package will not build homie-esp8266 (on linux) with:

Linking .pio/build/nodemcuv2/firmware.elf
.pio/build/nodemcuv2/libFrameworkArduino.a(core_esp8266_postmortem.cpp.o): in function `__wrap_system_restart_local':
core_esp8266_postmortem.cpp:(.text.__wrap_system_restart_local+0x2): dangerous relocation: j: cannot encode: (.text.postmortem_report+0x88)
collect2: error: ld returned 1 exit status
*** [.pio/build/nodemcuv2/firmware.elf] Error 1

platformio.ini:

[env:nodemcuv2]
; 4.2.0 is newest at time of writing, locking version for clarity
platform = [email protected] 
framework = arduino
board = nodemcuv2
lib_deps = git+https://github.com/homieiot/homie-esp8266.git#develop 

platformio pkg list:

Resolving nodemcuv2 dependencies...
Platform espressif8266 @ 4.2.0 (required: espressif8266 @ 4.2.0)
├── framework-arduinoespressif8266 @ 3.30102.0 (required: platformio/framework-arduinoespressif8266 @ ~3.30102.0)
├── tool-esptool @ 1.413.0 (required: platformio/tool-esptool @ <2)
├── tool-esptoolpy @ 1.30000.201119 (required: platformio/tool-esptoolpy @ ~1.30000.0)
└── toolchain-xtensa @ 2.100300.220621 (required: platformio/toolchain-xtensa @ ~2.100300.0)

Libraries
└── Homie @ 3.0.1+sha.e0347c0 (required: git+https://github.com/homieiot/homie-esp8266.git#develop)
│   ├── ArduinoJson @ 6.11.5 (required: ArduinoJson @ ~6.11.4)
│   ├── AsyncMqttClient @ 0.8.2 (required: AsyncMqttClient @ ^0.8.0)
│   │   └── ESPAsyncTCP @ 1.2.0 (required: ESPAsyncTCP @ 1.2.0)
│   ├── Bounce2 @ 2.71.0 (required: Bounce2 @ ^2.1.0)
│   └── ESP Async WebServer @ 1.2.3 (required: ESP Async WebServer)

Current workaround is downgrading platform to platform = [email protected]

I don't know what this error is about. Yet. We need to lock platform version for stable because right now a new install from PlatformIO will not build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions