Compilation error (ok on 1.8.19)

I'm working under Tuxedo OS 22.04 (IIRC based on Ubuntu 22.04).

I installed Arduino IDE 1.8.19 from repo and compiled the placeholder source code (just an empty setup and loop) for FireBeetle ESP8266 board (installed from http://download.dfrobot.top/boards/package_DFRobot_index.json).
I had a compilation error that I finally managed: on esptool call, there was a "no such file or directory" error. I did just not have the right interpreter for this executable file (I couldn't execute it from bash either).
Now it's working fine under Arduino IDE 1.8.19.

I wanted to try 2.1.1. I installed it through this command:
flatpak install flathub cc.arduino.IDE2

But now, I have the esptool error back!

/home/vincent/.arduino15/packages/DFRobot/tools/esptool/0.4.11/esptool -eo /home/vincent/.arduino15/packages/DFRobot/hardware/esp8266/2.3.3/bootloaders/eboot/eboot.elf -bo /home/vincent/.var/app/cc.arduino.IDE2/cache/arduino/sketches/CE7199FCEF22D8B5E5B4B97192206078/esp8266_scan_wifi.ino.bin -bm dio -bf 40 -bz 4M -bs .text -bp 4096 -ec -eo /home/vincent/.var/app/cc.arduino.IDE2/cache/arduino/sketches/CE7199FCEF22D8B5E5B4B97192206078/esp8266_scan_wifi.ino.elf -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec

Using library ESP8266WiFi at version 1.0 in folder: /home/vincent/.arduino15/packages/DFRobot/hardware/esp8266/2.3.3/libraries/ESP8266WiFi 
fork/exec /home/vincent/.arduino15/packages/DFRobot/tools/esptool/0.4.11/esptool: no such file or directory

Compilation error: fork/exec /home/vincent/.arduino15/packages/DFRobot/tools/esptool/0.4.11/esptool: no such file or directory

I can still execute esptool command from bash.
If I go back to 1.8.19, I can compile without issue. Here is the output:

"/home/vincent/.arduino15/packages/DFRobot/tools/esptool/0.4.11/esptool" -eo "/home/vincent/.arduino15/packages/DFRobot/hardware/esp8266/2.3.3/bootloaders/eboot/eboot.elf" -bo "/tmp/arduino_build_622550/esp8266_scan_wifi.ino.bin" -bm dio -bf 40 -bz 4M -bs .text -bp 4096 -ec -eo "/tmp/arduino_build_622550/esp8266_scan_wifi.ino.elf" -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec
Using library ESP8266WiFi at version 1.0 in folder: /home/vincent/.arduino15/packages/DFRobot/hardware/esp8266/2.3.3/libraries/ESP8266WiFi 
Sketch uses 226649 bytes (21%) of program storage space. Maximum is 1044464 bytes.
Global variables use 31840 bytes (38%) of dynamic memory, leaving 50080 bytes for local variables. Maximum is 81920 bytes.

I'm out of ideas! And my rubber duck isn't of any help :cry:

Vincent

Hi @vincentrg.

It is possible this could be a significant factor in the mysterious problem. I don't have any experience with using the 3rd party cc.arduino.IDE2 Arduino Flatpak package, but I believe these packages run in an isolated "sandbox" environment. So it might be that the IDE can't access the esptool executable even though it is present in your global environment.

This is only a hypothesis and certainly many users are able to work with this Flatpak package in general.

Something you could try is to see whether the problem still occurs if you use the official Arduino IDE package distributed by Arduino. The download links are listed here:

Indeed, using appimage runs fine!

As you said, running arduino ide installed using flatpak might not gives him permissions to run esptool (either by not accessing it or not accessing the interpreter to execute the binary).

Thank you!

You are welcome. I'm glad the AppImage package is working.

Maybe one of the forum members who has experience using the Flatpak package can provide some insight into the cause or solution to the problem. Even though I do use the package repositories for some applications, for myself I've always been satisfied to use the official distributions of Arduino IDE downloaded from the Software page so perhaps that will be a sufficient solution in the end.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.