Hadrian-built GHCi fails with "unknown symbol" while make-built one works
If I build using "quick" make flavor and "quickest" hadrian flavor, with make-built one GHCi.ObjLink.lookupSymbol
fails as expected:
./inplace/bin/ghc-stage2 --interactive
GHCi, version 8.11.0.20200416: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/omer/rcbackup/.ghci
λ:1> import GHCi.ObjLink
λ:2> lookupClosure "blah"
<interactive>: ^^ Could not load 'blah', dependency unresolved. See top entry above.
Nothing
But hadrian-built one fails with an "unknown symbol" error in one of the libraries:
./_build/stage1/bin/ghc --interactive
GHCi, version 8.11.0.20200415: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /home/omer/rcbackup/.ghci
λ:1> import GHCi.ObjLink
λ:2> lookupClosure "blah"
ghc: /home/omer/haskell/ghc/_build/stage1/lib/x86_64-linux-ghc-8.11.0.20200415/unix-2.7.2.2/HSunix-2.7.2.2.o: unknown symbol `mknod'
ghc: unable to load package `unix-2.7.2.2'