Compilation error for the ESP32 board

Solved
GECEHE Posted messages 27 Registration date   Status Membre Last intervention   -  
luckydu43 Posted messages 4489 Registration date   Status Membre Last intervention   -

Hello.

Four days ago, I posted on the French Arduino Forum. Unfortunately, I only received one response from Moineau, who suggested the following link: https://github.com/espressif/arduino-esp32/issues/961.

He then wished me "good luck."

From what I have started to look into, it's certain I'll need it.

I will delve deeper into the study of this response. I also think a second opinion wouldn't hurt.

**************************************************

Here is what I posted on the French Arduino Forum.

Hello.

I’m trying to use an ESP32 Wroom 32 board, but without any success; I always get the same error message, regardless of the card type I choose in the IDE.

The board types come from: https://dl.espressif.com/dl/package_esp32_index.json.

The first attempts were made with the board not connected to the PC. Then I thought maybe I should connect it, although I wasn't convinced because with an Arduino board type, you can verify the sketch without the physical board being plugged in. And the problem persists.

I am using Linux on a Raspberry Pi 400 with Bookworm 32bits, and the IDE is Arduino 1.8.19.

What is very strange is that the recommended board types do not work.

I must be forgetting something somewhere, a "setting" not done, ... who knows.

Here are the lines written in red at the end of the text on the console:

fork/exec /home/christian/.arduino15/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp32-elf-g++: no such file or directory

Compilation error for the ESP32 Dev Module card

I have checked from: /home/ …. to …. /xtensa-esp32-elf-g++, and everything seems apparently normal.

Here are the lines written in white on a green background at the bottom of the sketch window:

Arduino: 1.8.19 (Linux), Board: "ESP32 Dev Module, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None, Disabled, Disabled"

I entrust you with the problem.

Sincere regards.

**************************************************

I look forward to hearing from you. Sincere regards.

4 réponses

GECEHE Posted messages 27 Registration date   Status Membre Last intervention   2
 

Hello.

Since February 25th, I have tried to follow your advice to the letter, but I'm still facing the same difficulties!

So I used a "huge remedy."

I downloaded the new 64-bit version of Bookworm onto a new SD card.

From the official Arduino site, I retrieved the following archive: "arduino-1.8.19-linuxaarch64.tar.xz," which I installed using command lines; I also installed the boards for ESP32 and ESP8266.

So far, my initial attempts with these boards no longer pose any compilation problems.

Thanks again for your patience.

Best regards.

2
luckydu43 Posted messages 4489 Registration date   Status Membre Last intervention   1 177
 

Looking forward to it, thank you for your response.

I had already noticed that the target version of the firmware for the ESP32 was significantly overdue, with version 1.0.5-rc5 being released in 2021. Upgrading can only be beneficial, especially given the recent news.

0
luckydu43 Posted messages 4489 Registration date   Status Membre Last intervention   1 177
 

Hello,

That's convenient, I have one too that I would like to flash, so in principle, I would have marked the subject :-)

For your issue, if "2405/bin" contains files that are not compiled for ARM, it reproduces the error encountered.

In dl.espressif.com/dl/package_esp32_index.json, I looked into xtensa-esp32-elf-g returning 9 results, notably

  "version": "1.22.0-97-gc752ad5-5.2.0",           "systems": [             {               "host": "arm-linux-gnueabihf",               "url": "https://github.com/espressif/arduino-esp32/releases/download/1.0.5-rc5/xtensa-esp32-elf-linux-armel-1.22.0-97-gc752ad5-5.2.0.tar.gz",               "archiveFileName": "xtensa-esp32-elf-linux-armel-1.22.0-97-gc752ad5-5.2.0.tar.gz",               "checksum": "SHA-256:d70d550f88448fa476b29fa50ef5502ab497a16ac7fa9ca24c6d0a39bb1e681e",               "size": "50657803"             } 

The link points to this repo (link), I went to check the latest release to get its dev_index.json file (link) which, among the +100 references to xtensa-esp32-elf-g, gave me this link:

https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2-patch5/xtensa-esp32-elf-gcc8_4_0-esp-2021r2-patch5-linux-armel.tar.gz

Navigate inside, you will see the expected files. Be careful, the same files are present regardless of the architecture, so don't make a mistake when downloading. Move the 2405 folder elsewhere and replace its content with that of this archive (to respect the expected tree structure) and try again.

Otherwise, yes, I went through the Github issue, its comments, and the links mentioned. An internet access issue (DNS, VPN, firewall, antivirus) reproduces the error for some.

I based myself on this solution (link) (corrected links below) but this solution is for Windows.

1. Just Clone the repo (link)

3. Download the tar.gz file

Another lead, check the permissions of each directory from /home/christian/.arduino15 to /home/christian/.arduino15/packages/esp32/tools/esp-x32/2405/bin

Also check the permissions of the files, try a

sudo chmod -R 755 /home/christian/.arduino15/*

Keep me posted ;-)


The MAANGs have no oil but they have data!
Can you feel my Big Data?
Sacrifice a few freedoms for more security and you lose them ALL.
ALL YOUR DATABASE ARE BELONG TO US

0
GECEHE Posted messages 27 Registration date   Status Membre Last intervention   2
 

Hello.

After reviewing your response, I think I will reinstall the ESP32 board types in the Arduino IDE.

So in the preferences window, on the URL line, I will replace

https://dl.espressif.com/dl/package_esp32_index.json with

https://github.com/espressif/arduino-esp32/releases/download/1.0.5-rc5/xtensa-esp32-elf-linux-armel-1.22.0-97-gc752ad5-5.2.0.tar.gz

But I'm not sure about this move, because I'm really a bit lost; I'm not in my element.

Please let me know if this is correct.

Best regards.

0
luckydu43 Posted messages 4489 Registration date   Status Membre Last intervention   1 177
 

Hello

I can't confirm: I don't have the means to reproduce the environment and test right now.

You test! Put a copy somewhere else, copy the previous files elsewhere, revert if nothing changes... and keep me updated ;-)

0
GECEHE Posted messages 27 Registration date   Status Membre Last intervention   2
 

Good evening.

To make sure of what I am about to do, here are the actions I plan.

I have set aside the files contained in “/2405/bin/.”

I will empty “/bin/,” and place “https://github.com/espressif/arduino-esp32/releases/download/1.0.5-rc5/xtensa-esp32-elf-linux-armel-1.22.0-97-gc752ad5-5.2.0.tar.gz” there.

And then, I will decompress it.

So it should go well, but I would like to be sure.

Good or bad!

Thank you, Best regards.

0
luckydu43 Posted messages 4489 Registration date   Status Membre Last intervention   1 177
 

Hello,

That's it. Make sure that after decompressing, you end up with the same directory structure as before, without any intermediate folders.

The command

tail -n 10 /home/christian/.arduino15/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp32-elf-g++

should respond (it displays the last 10 lines of the file)

0