please help with ghc package-db flags

Sylvain Henry sylvain at haskus.fr
Tue Sep 28 08:28:42 UTC 2021


Hi,

Could you try with `-package-env -` to disable package environment 
misfeature. Especially with Asterius as it may mix packages for the host 
with target packages that use WebAssembly... (I have been bitten by this 
2 years ago IIRC).

Sylvain


On 27/09/2021 22:50, Norman Ramsey wrote:
> I've traced some troubles to a problem with GHC's response
> to the -clear-package-db and -package-db flags.  I would very much
> like to know if others can duplicate this issue.
>
> All that is needed is for you to try the following commands, or
> whatever variations may be appropriate for whatever ghc versions you
> have installed on your system:
>
>    ghc-pkg init /tmp/empty-package-db
>    ghc        -clear-package-db -package-db /tmp/empty-package-db/ -v
>    ghc-9.0.1  -clear-package-db -package-db /tmp/empty-package-db/ -v
>    ghc-8.10.7 -clear-package-db -package-db /tmp/empty-package-db/ -v
>
> On my system at this present moment, ghc-8.10.7 respects the commands,
> but ghc-9.0.1 does not.  The output from the `-v` options show what's
> happening: if GHC finds any packages that are *not* "wired-in," then
> something is broken.  As examples, I attach the sample outputs from my
> own system.
>
> I think the issue is being caused by something mysterious in my filesystem.
> Last Friday, ghc 9.0.1 was respecting those flags.  But today it is not.
> Before I try to figure out what is going on, I would *very* much
> appreciate learning if anyone else can duplicate the issue.
>
> Please try running GHC with an empty package database and let me know
> what happens.
>
>
> Norman
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20210928/4c7b0da7/attachment.html>


More information about the ghc-devs mailing list