[s390x] staged ghc-9.2.3 built with Hadrian fails: Could not load module ‘Prelude’
Summary
Something seems to be wrong (at least with the Fedora ghc9.2 package of) ghc-9.2.3.
This only only happens on s390x with Fedora 35 and 36 builds, that ghc hello.hs
fails to load the Prelude.
Steps to reproduce
Building ghc9.2 on Fedora Linux s390x, this test fails to compile:
+ rm -rf testghc
+ mkdir testghc
+ echo 'main = putStrLn "Foo"'
+ /builddir/build/BUILDROOT/ghc9.2-9.2.3-10.fc36.s390x/usr/lib64/ghc-9.2.3/bin/g
hc testghc/foo.hs -o testghc/foo
[1 of 1] Compiling Main ( testghc/foo.hs, testghc/foo.o )
testghc/foo.hs:1:1: error:
Could not load module ‘Prelude’
It is a member of the package ‘base-4.16.2.0’
which is unusable due to cyclic dependencies:
ghc-bignum-1.2 ghc-prim-0.8.0 rts-1.0.2
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
1 | main = putStrLn "Foo"
| ^
This originally came up in #21671 (closed).
Expected behavior
Should like on other archs.
Environment
- GHC version used: ghc-8.10.5 boot
Optional:
- Operating System: Fedora Linux 35 and 36
- System Architecture: s390x
I do hope it is not some mistake on my part: like the above linking bug this was working for ghc-9.2.2.