"inplace/bin/ghc-stage2" reads default environment file?
(This may be a rare use case)
I was bootstrapping 8.8.4 with 8.6.5, while already having used 8.8.4 earlier. This breaks after a while with
...
make --no-print-directory -f ghc.mk phase=final all
"inplace/bin/ghc-stage2" ... -o utils/haddock/dist/build/Documentation/Haddock/Types.dyn_o
/home/waldmann/software/haskell/ghc-8.8.4/inplace/lib/bin/ghc-stage2: error while loading shared libraries: libHStidal
-1.6.1-70cfaac4b1e7f08729930f3876186cb901665ee20f17c48bddea1c1bdaa2a916-ghc8.8.4.so: cannot open shared object file: No such file or directory
make[1]: *** [utils/haddock/ghc.mk:20: utils/haddock/dist/build/Documentation/Haddock/Types.dyn_o] Error 127
make: *** [Makefile:128: all] Error 2
That name libHStidal
refers to a library that I did install sometime in the past, and that is mentioned in $HOME/.ghc/x86_64-linux-8.8.4/environments/default
(and that I can load fine with the ghc-8.8.4 that I already have)
I removed this environments/default
and built again (from the top) and it works.