AdaCore / gnatstudio

GNAT Studio is a powerful and lightweight IDE for Ada and SPARK.
399 stars 52 forks source link

Continuous Release 20240506 app image fails to create a directory due to the mount point being read-only. #172

Open kevlar700 opened 4 months ago

kevlar700 commented 4 months ago

When the appimage is ran rather than extracted. clicking the button "build target: clean all" results in the following error.

alr -d --non-interactive --no-color --no-tty -q clean -- -XELOGS_LIBRARY_TYPE=static -XLIBRARY_TYPE=static -XSTM32U599_HAL_LIBRARY_TYPE=static -XADAFLAGS=
stderr: GNATCOLL.VFS.VFS_DIRECTORY_ERROR
stderr: creation of new directory "/tmp/.mount_GNAT_SH1xKUt/usr/etc/alire" failed
stderr: raised GNATCOLL.VFS.VFS_DIRECTORY_ERROR : creation of new directory "/tmp/.mount_GNAT_SH1xKUt/usr/etc/alire" failed
[/usr/local/bin/alr]
0xf24272 Gnatcoll.Vfs.Make_Dir at gnatcoll-vfs.adb:1566
0x541f03 Alr.Commands.Create_Alire_Folders at alr-commands.adb:223
0x54560c Alr.Commands.Execute at alr-commands.adb:531
0x436183 Alr.Main at alr-main.adb:13
0x438de1 Main at b__alr-main.adb:2257
[/lib/x86_64-linux-gnu/libc.so.6]
0x766484f95248
0x766484f95303
[/usr/local/bin/alr]
0x43601c _start at ???
0xfffffffffffffffe

ERROR: creation of new directory "/tmp/.mount_GNAT_SH1xKUt/usr/etc/alire" failed
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0xf24272 Gnatcoll.Vfs.Make_Dir at gnatcoll-vfs.adb:1566
[2024-05-09 17:55:03] process exited with status 1, elapsed time: 00.51s

Using the following just moves the mount point so the alire directory still can't be created

env TMPDIR=/tmp/gnat_studio alr edit