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.
When you install
ghc
and try to run a submission we get aCOMPILER-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 therun
script to follow the path we get this: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.