AdaCore / AdaCore/gnatstudio

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

Open
#172 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
531
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure by running the Continuous Release 20240506 AppImage and selecting “build target: clean all”; the report includes the exact alr command and stack trace. Start by reading alr-commands.adb at Create_Alire_Folders and gnatcoll-vfs.adb at Make_Dir, then verify that the operation succeeds when the AppImage is run rather than extracted.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.