<div dir="ltr"><div class="gmail_default" style="font-family:monospace">DHi Simon,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">It seems that GHC is "helpfully" adding flags to your invocation see <a href="https://ghc.gitlab.haskell.org/ghc/doc/users_guide/packages.html#package-environments" target="_blank">https://ghc.gitlab.haskell.org/ghc/doc/users_guide/packages.html#package-environments</a><br><br>You can see exactly what is being added by inspecting the environment file /home/simonpj/.ghc/x86_64-linux-9.5.20220628/environments/default.<br><br>You can safely delete .ghc/x86_64-linux-9.5.20220628/environments/default. Although without knowing how it got there, it may re-appear.<br><br>You can set `export GHC_ENVIRONMENT=-` or pass `-package-env -` on your command line to disable the reading of environment files.<br><br>Regards,</div><div class="gmail_default" style="font-family:monospace">Douglas Wilson</div><div class="gmail_default" style="font-family:monospace"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 12, 2022 at 1:24 PM Simon Peyton Jones <<a href="mailto:simon.peytonjones@gmail.com" target="_blank">simon.peytonjones@gmail.com</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"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">I'm in a GHC tree, built with Hadrian, I'm getting this red problem.  But compilation has got way past compiling base.  </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">why is it looking in my .ghc/... directory?   It should be looking in my build tree.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Simon</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default"><span style="font-family:monospace">bash$ ~/code/HEAD-1/_build/ghc-stage1 -c Foo.hs<br>Loaded package environment from /home/simonpj/.ghc/x86_64-linux-9.5.20220628/environments/default<br><span style="color:rgb(255,0,0)"><command line>: cannot satisfy -package-id base-4.17.0.0</span><br>    (use -v for more information)</span></div><div class="gmail_default"><span style="font-family:monospace"><br></span></div><div class="gmail_default"><span style="font-family:monospace">bash$ cat ~/code/HEAD-1/_build/ghc-stage1<br>"/home/simonpj/code/HEAD-1/_build/stage0/bin/ghc" "-no-global-package-db" "-package-db /home/simonpj/code/HEAD-1/_build/stage1/lib/package.conf.d" "$@"</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br> </div></div>
_______________________________________________<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>