Skip to content

PlatformIO compile filed with "xtensa-esp32-elf-as: unrecognized option '-x'" #2

@mrkeuz

Description

@mrkeuz

Hi, first of all, thanks for your effort! 🚀

I have a question. We have idea (early WIP) tried to integrate and build project (ESPHome) with your library, but unfortunately, compile filed with xtensa-esp32-elf-as: unrecognized option '-x' error.
PlatformIO upgraded and latest version (5.2.0)

Could you help to find a way to fix this issue?
Thanks in advance.

My config (I tried on fresh project):

[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
framework = arduino
lib_deps = ciniml/WireGuard-ESP32 @ ~0.1.2

Here output of error

export LC_ALL=C    platformio run -t upload          
Processing esp-wrover-kit (platform: espressif32; board: esp-wrover-kit; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-kit.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP-WROVER-KIT
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 3.10006.210326 (1.0.6) 
 - tool-esptoolpy 1.30100.210531 (3.1.0) 
 - tool-mkspiffs 2.230.0 (2.30) 
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <WireGuard-ESP32> 0.1.2
Building in release mode
Compiling .pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/cortex_m0_mpy121666.s.o
Compiling .pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/cortex_m0_reduce25519.s.o
xtensa-esp32-elf-as: unrecognized option '-x'
Compiling .pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/mul.s.o
xtensa-esp32-elf-as: unrecognized option '-x'
xtensa-esp32-elf-as: unrecognized option '-x'
*** [.pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/cortex_m0_mpy121666.s.o] Error 1
Compiling .pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/sqr.s.o
*** [.pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/mul.s.o] Error 1
*** [.pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/cortex_m0_reduce25519.s.o] Error 1
xtensa-esp32-elf-as: unrecognized option '-x'
*** [.pio/build/esp-wrover-kit/libca3/WireGuard-ESP32/crypto/cortex/sqr.s.o] Error 1
============================================================================== [FAILED] Took 0.83 seconds ==============================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions