--with-system-ffi hadrian build fails with missing ffi.h
Summary
Building with hadrian and --with-system-ffi together seems to fail with missing ffi.h in rts/ error.
Steps to reproduce
./configure --with-system-ffi
hadrian
Expected behavior
Success build
Actual behavior
| Run Ghc CompileHs Stage0: utils/haddock/haddock-library/src/Documentation/Haddock/Markup.hs => _build/stage0/utils/haddock/build/Documentation/Haddock/Markup.o
/----------------------------------------------------------\
| Successfully built program 'ghc-bin' (Stage0). |
| Executable: _build/stage0/bin/ghc |
| Program synopsis: The Glorious Glasgow Haskell Compiler. |
\----------------------------------------------------------/
# cabal-configure (for _build/stage1/rts/setup-config)
# cabal-autogen (for _build/stage1/rts/build/autogen/cabal_macros.h)
Error when running Shake build system:
at action, called at src/Rules.hs:40:19 in main:Rules
at need, called at src/Rules.hs:62:5 in main:Rules
* Depends on: _build/stage1/lib/package.conf.d/ghc-prim-0.8.0.conf
at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.19.5-9pWeYQRoaoQ5ifRBjCBmLp:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (ContextDataKey (Context {stage = Stage1, package = Package {pkgType = Library, pkgName = "ghc-prim", pkgPath = "libraries/ghc-prim"}, way = v}))
at need, called at src/Hadrian/Oracles/Cabal/Rules.hs:54:9 in main:Hadrian.Oracles.Cabal.Rules
* Depends on: _build/stage1/libraries/ghc-prim/setup-config
at need, called at src/Rules/Library.hs:164:18 in main:Rules.Library
* Depends on: _build/stage1/rts/build/ffi.h
at &%>, called at src/Rules/Rts.hs:29:9 in main:Rules.Rts
* Depends on: _build/stage1/rts/build/ffi.h _build/stage1/rts/build/ffitarget.h
at need, called at src/Hadrian/Utilities.hs:319:5 in main:Hadrian.Utilities
* Depends on: ffi.h
at error, called at src/Development/Shake/Internal/Rules/File.hs:179:58 in shake-0.19.5-9pWeYQRoaoQ5ifRBjCBmLp:Development.Shake.Internal.Rules.File
* Raised the exception:
Error, file does not exist and no rule available:
ffi.h
Same result without and
with libffi-tarballs/
.
(These logs will expire after 2 weeks.)
Environment
-
GHC version used: ghc-8.10.5 to build 9.2.1
-
Operating System: Fedora Linux
-
System Architecture: x86_64
Edited by Jens Petersen