[armv7hl] ghc-9.2.5 fails on Fedora 36: Development.Shake.cmd '_build/bindist/ghc-9.2.5-arm-unknown-linux/bin/ghc-pkg recache' failed
Summary
SSIA it all really.
BTW make builds also fail, but differently with an earlier compilation error: I can open a separate bug for that (there are example build logs in the downstream bug linked below).
Steps to reproduce
Try to build ghc-9.2.5 on Fedora 36 armv7hl with Hadrian
:
| Copy directory: _build/stage1/lib => _build/bindist/ghc-9.2.5-arm-unknown-linux
| Copy directory: _build/stage1/lib/arm-linux-ghc-9.2.5/rts-1.0.2/include => _build/bindist/ghc-9.2.5-arm-unknown-linux
# ghc-pkg (for binary-dist-dir)
Error when running Shake build system:
at want, called at src/Main.hs:104:30 in main:Main
* Depends on: binary-dist-dir
at cmd_, called at src/Rules/BinaryDist.hs:204:9 in main:Rules.BinaryDist
* Raised the exception:
Development.Shake.cmd, system command failed
Command line: _build/bindist/ghc-9.2.5-arm-unknown-linux/bin/ghc-pkg recache
Exit code: -11
Stderr:
see https://src.fedoraproject.org/rpms/ghc9.2/tree/ed44187c581eb8a67ae5c2c0d03eb0f55bbef514 for the rpm spec file used.
More build failure and log can be seen on the downstream bug for this: https://bugzilla.redhat.com/show_bug.cgi?id=2142238
Expected behavior
Build to complete like it did with ghc-9.2.4.
Environment
- GHC version used: 9.2.4 booting with 8.10.5
Optional:
- Operating System: Fedora Linux 36
- System Architecture: armv7hl
For now I am going to "workaround" it by disabling armv7hl for Fedora ghc9.2 (like ghc9.4).