Skip to content

Broken support for esp32c2 on raspbian #2561

Open
@buttim

Description

@buttim

Describe the problem

compilation of a sketch for esp32c3 boards gives the following error:
Error during build: fork/exec /home/pi/.arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/riscv32-esp-elf-g++: no such file or directory

To reproduce

On a Raspberry Pi system running Raspbian create a (possibly empty) sketch and try to compile it with the command:
arduino-cli compile --fqbn esp32:esp32:esp32c3 sketch

Expected behavior

correct compilation

Arduino CLI version

Version: 0.35.3 Commit: 95cfd65 Date: 2024-02-19T13:24:25Z

Operating system

Linux

Operating system version

6.1.25-v8+ #1647 SMP PREEMPT Wed Apr 26 17:39:08 BST 2023 aarch64 GNU/Linux

Additional context

The referenced executable is not missing, so the error message is actually quite misleading.
Applying the file command to the executable gives the following output:
ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=8cd50729c808c5a7db52ee6de3635341ca83ea8b, stripped
The file /lib/ld-linux-aarch64.so.1 is missing, though; so I thinkc might cause the problem

Issue checklist

  • My report contains all necessary details
  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions