Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haskell install fails from ubuntu package in chroot #2551

Open
vmcj opened this issue May 14, 2024 · 0 comments
Open

Haskell install fails from ubuntu package in chroot #2551

vmcj opened this issue May 14, 2024 · 0 comments

Comments

@vmcj
Copy link
Member

vmcj commented May 14, 2024

When you install ghc and try to run a submission we get a COMPILER-ERROR with this error: ghc-9.4.7: can't find a package database at /usr/lib/ghc/lib/package.conf.d.

The ghc package requires the /var to be available as the package database is stored there, by altering the run script to follow the path we get this:

+ ls -atrl /usr/lib/ghc/lib
total 60
-rw-r--r--  1 root root  6579 Feb 19 16:12 template-hsc.h
-rw-r--r--  1 root root  1909 Feb 19 16:12 settings
lrwxrwxrwx  1 root root    27 Feb 19 16:12 package.conf.d -> /var/lib/ghc/package.conf.d

Possible solutions would be to either also mount /var or copy the files into the /etc and document that. I don't like either of those options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant