Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#65489 - [agda] Fails to check a file

Attached to Project: Community Packages
Opened by Elkin (helq) - Thursday, 13 February 2020, 20:16 GMT
Last edited by freswa (frederik) - Thursday, 13 February 2020, 20:45 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 3
Private No

Details

Description:

Agda is failing to check any file.

Additional info:
* package version: 2.6.0.1.20191219-9

Steps to reproduce:

$ touch empty.agda
$ agda empty.agda
/usr/share/agda/lib/_build: createDirectory: permission denied
(Permission denied)
This task depends upon

Comment by Konstantin Nisht (knisht) - Saturday, 29 February 2020, 21:46 GMT
I have the same issue.

Here is the line that helped me:

$ sudo rm -rf /usr/share/agda/lib/_build

It followed by complete recheck of agda standard library, and then everything worked fine.
Comment by Catalin Hritcu (catalin_hritcu) - Monday, 06 April 2020, 14:09 GMT
@Konstantin: This still fails for me with agda 2.6.1-12 and agda-stdlib 1.3-1:
/usr/share/agda/lib/_build: createDirectory: permission denied
(Permission denied)

Tried your rm command, but I'm a complete noob (never installed agda before) so didn't know how to do a "complete recheck of agda standard library". Can you advise please?
Comment by Konstantin Nisht (knisht) - Monday, 06 April 2020, 14:33 GMT
@Catalin
Linux somehow sets wrong access permission to agda lib dir, and thats why agda can't create temporary directory for built source code.

So I suggest you to change owner for this lib dir by the following command (I double checked, this one should work):
$ sudo chown -R $USER /usr/share/agda/lib

By complete recheck I mean that agda will compile all standard library source code. It will be done automatically at your first attempt to check some agda file, for example, when you type commands from this ticket description.
Comment by Catalin Hritcu (catalin_hritcu) - Monday, 06 April 2020, 14:40 GMT
@Konstantin: Your chown command helped, thank you. Not sure it's good security-wise, but I'm on a single-user laptop, so I don't care that much.
Comment by Catalin Hritcu (catalin_hritcu) - Monday, 06 April 2020, 16:01 GMT
And this similar to another open bug report, by the way:
https://bugs.archlinux.org/task/61904

Loading...