hadrian: New untracked dependencies after ghc-internal patch?
Summary
I got one of these errors that sounds like we try to load an interface file before it's compiled because hadrian doesn't track the dependencies correctly.
Steps to reproduce
hadrian/build -j6 (for me anyway).
This was the end of the output:
Command line: _build/stage0/bin/ghc -Wall -Wcompat -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -hide-all-packages -no-user-package-db '-package-env -' '-package-db _build/stage1/inplace/package.conf.d' '-this-unit-id base-4.19.0.0-inplace' '-this-package-name base' '-package-id ghc-internal-0.1.0.0-inplace' -i -i/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/libraries/base/build -i/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/libraries/base/build/autogen -i/home/andi/ghc_expose_overloaded_unfoldings/libraries/base/src -Irts/include -I_build/stage1/libraries/base/build -I/home/andi/ghc_expose_overloaded_unfoldings/libraries/ghc-internal/include -I/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/libraries/ghc-internal/build/include -I/home/andi/ghc_expose_overloaded_unfoldings/libraries/ghc-bignum/include/ -I/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/libraries/ghc-bignum/build/include/ -I/home/andi/ghc_expose_overloaded_unfoldings/rts/include -I/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/rts/build/include -optP-include -optP_build/stage1/libraries/base/build/autogen/cabal_macros.h -outputdir _build/stage1/libraries/base/build -fdiagnostics-color=always -this-unit-id base -XHaskell2010 -no-global-package-db -package-db=/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/inplace/package.conf.d -ghcversion-file=rts/include/ghcversion.h -ghcversion-file=rts/include/ghcversion.h -Wnoncanonical-monad-instances -optc-Wno-error=inline -c libraries/base/src/Data/Char.hs -o _build/stage1/libraries/base/build/Data/Char.p_o -O2 -H32m -haddock -Wno-deprecated-flags -Wno-trustworthy-safe
===> Command failed with error code: 1
/home/andi/ghc_expose_overloaded_unfoldings/_build/stage1/inplace/../libraries/ghc-internal/build/GHC/Err.p_hi
Declaration for errorWithoutStackTrace
Unfolding of errorWithoutStackTrace:
SomeException ErrorWithoutFlag
Failed to load interface for ‘GHC.Exception.Type’.
Perhaps you haven't installed the profiling libraries for package ‘ghc-internal-0.1.0.0’?
Use -v to see a list of the files searched for.
Cannot continue after interface file error
Command failed
Build failed.
Expected behavior
No errors.
Environment
- GHC version used:
Optional:
- Operating System:
- System Architecture: