question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toolchain is missed for aarch64

See original GitHub issue

I tried to compile program for esp32 on aarch64 environment (Ubuntu 18.04.3 64bit on Raspberry Pi 3B+) but it was failed for not found tool chain.

Error log:

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) 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: toolchain-xtensa32 2.50200.80 (5.2.0), framework-arduinoespressif32 2.10004.191002 (1.0.4), tool-esptoolpy 1.20600.0 (2.6.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 26 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pio/build/esp32dev/src/main.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
Generating partitions .pio/build/esp32dev/partitions.bin
Archiving .pio/build/esp32dev/libFrameworkArduinoVariant.a
sh: 1: xtensa-esp32-elf-ar: not found
*** [.pio/build/esp32dev/src/main.cpp.o] Error 127
*** [.pio/build/esp32dev/libFrameworkArduinoVariant.a] Error 127
Compiling .pio/build/esp32dev/FrameworkArduino/Esp.cpp.o
sh: 1: xtensa-esp32-elf-g++: not found
*** [.pio/build/esp32dev/FrameworkArduino/Esp.cpp.o] Error 127

I found a similar problem on issue thread of esphome( https://github.com/esphome/issues/issues/594 ) and a solution on the thread solved my problem. I replaced tool chain like this.

mv ~/.platformio/packages/toolchain-xtensa32 /tmp
curl -sSL -o ./toolchain-xtensa32.tar.gz https://github.com/esphome/esphome-docker-base/releases/download/v1.4.0/toolchain-xtensa32.tar.gz
tar -xzvf ./toolchain-xtensa32.tar.gz -C /home/${USER}/.platformio/packages/
rm ./toolchain-xtensa32.tar.gz

The difference of package.json of each tool chain was number of system.

package.json of new toolchain

{
    "description": "GCC for SoC Xtensa L108",
    "name": "toolchain-xtensa32",
    "system": [
        "linux_aarch64"
    ],
    "url": "https://github.com/espressif/esp-idf",
    "version": "2.50200.80"
}

package.json of old replaced toolchain

{
    "description": "GCC for SoC Xtensa L108",
    "name": "toolchain-xtensa32",
    "system": [
        "linux_armv7l",
        "linux_armv8l",
        "linux_aarch64"
    ],
    "url": "https://github.com/espressif/esp-idf",
    "version": "2.50200.80"
}

Is it possible to download tool chain only for aaruch64 on aarch64 environment to prevent the error about “not found”?

Thank you.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jpsutercommented, Nov 7, 2020

the link for download is dead. Have you an other ? Please make a new version to make the instal in aarch64 easier !

1reaction
asukiaaacommented, Feb 7, 2020

I understand that there is no commit. Thank you for updating that and sharing the information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header files are missing in arm32 cross compiler toolchain ...
I can successfully compile for aarch64 but I have problems doing arm32. I received an error like some header files missing.
Read more >
Unable to compile with ARM( or Linaro) aarch64 toolchain ...
I can't build mesa for aarch64 using ARM-toolchain 11 ... YES Compiler for C supports arguments -Werror=missing-prototypes: YES Compiler for ...
Read more >
How to install the aarch64 toolchain for armv8 cortex-a53 on ...
As for building, it looks like you might be missing some tools - does apt-get build-dep binutils-arm-none-eabi (or other relevant package) pull in...
Read more >
Simple? Linking issue when cross-compiling for AArch64 on ...
The remaining error seems to be caused by the fact that my system's GCC toolchain only provides libgcc.a and no libgcc.o, but I...
Read more >
How to Cross-Compile Arm NN on x86_64 for arm64
xz -C tflite-toolchains mkdir -p tflite/build cd tflite/build ARMCC_PREFIX=$HOME/armnn-devenv/tflite-toolchains/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found