
DHi Simon, It seems that GHC is "helpfully" adding flags to your invocation see https://ghc.gitlab.haskell.org/ghc/doc/users_guide/packages.html#package-env... You can see exactly what is being added by inspecting the environment file /home/simonpj/.ghc/x86_64-linux-9.5.20220628/environments/default. You can safely delete .ghc/x86_64-linux-9.5.20220628/environments/default. Although without knowing how it got there, it may re-appear. You can set `export GHC_ENVIRONMENT=-` or pass `-package-env -` on your command line to disable the reading of environment files. Regards, Douglas Wilson On Tue, Jul 12, 2022 at 1:24 PM Simon Peyton Jones < simon.peytonjones@gmail.com> wrote:
I'm in a GHC tree, built with Hadrian, I'm getting this red problem. But compilation has got way past compiling base.
why is it looking in my .ghc/... directory? It should be looking in my build tree.
Simon
bash$ ~/code/HEAD-1/_build/ghc-stage1 -c Foo.hs Loaded package environment from /home/simonpj/.ghc/x86_64-linux-9.5.20220628/environments/default <command line>: cannot satisfy -package-id base-4.17.0.0 (use -v for more information)
bash$ cat ~/code/HEAD-1/_build/ghc-stage1 "/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" "$@"
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs