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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs