<div dir="ltr">Not necessarily filesystem; also check GHC_PACKAGE_PATH in the environment.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 27, 2021 at 4:51 PM Norman Ramsey <<a href="mailto:nr@cs.tufts.edu">nr@cs.tufts.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I've traced some troubles to a problem with GHC's response<br>
to the -clear-package-db and -package-db flags.  I would very much<br>
like to know if others can duplicate this issue.<br>
<br>
All that is needed is for you to try the following commands, or<br>
whatever variations may be appropriate for whatever ghc versions you<br>
have installed on your system:<br>
<br>
  ghc-pkg init /tmp/empty-package-db<br>
  ghc        -clear-package-db -package-db /tmp/empty-package-db/ -v<br>
  ghc-9.0.1  -clear-package-db -package-db /tmp/empty-package-db/ -v<br>
  ghc-8.10.7 -clear-package-db -package-db /tmp/empty-package-db/ -v<br>
<br>
On my system at this present moment, ghc-8.10.7 respects the commands,<br>
but ghc-9.0.1 does not.  The output from the `-v` options show what's<br>
happening: if GHC finds any packages that are *not* "wired-in," then<br>
something is broken.  As examples, I attach the sample outputs from my<br>
own system.<br>
<br>
I think the issue is being caused by something mysterious in my filesystem.<br>
Last Friday, ghc 9.0.1 was respecting those flags.  But today it is not.<br>
Before I try to figure out what is going on, I would *very* much<br>
appreciate learning if anyone else can duplicate the issue.<br>
<br>
Please try running GHC with an empty package database and let me know<br>
what happens.<br>
<br>
<br>
Norman<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>