Skip to content

ghc-8.8.1-rc1 fails to build on s390x

Summary

ghc 8.8.1 RC1 build (using ghc-8.4.4) on s390x Linux fails while building ghctags.

Steps to reproduce

Build on Fedora s390x

Actual results

BUILDSTDERR: utils/check-api-annotations/Main.hs:128:32: error:
BUILDSTDERR:     • GHC internal error: ‘GenericQ’ is not in scope during type checking, but it passed the renamer
BUILDSTDERR:       tcl_env of environment: [ahK2 :-> Type variable ‘r’ = r :: k0]
BUILDSTDERR:     • In the type signature:
BUILDSTDERR:         everything :: (r -> r -> r) -> GenericQ r -> GenericQ r
BUILDSTDERR:     |
BUILDSTDERR: 128 | everything :: (r -> r -> r) -> GenericQ r -> GenericQ r
BUILDSTDERR:     |                                ^^^^^^^^
BUILDSTDERR: make[1]: *** [utils/check-api-annotations/ghc.mk:18: utils/check-api-annotations/dist-install/build/Main.dyn_o] Error 1
BUILDSTDERR: make[1]: *** Waiting for unfinished jobs....
BUILDSTDERR: utils/ghctags/Main.hs:61:26: error:
BUILDSTDERR:     • GHC internal error: ‘FileName’ is not in scope during type checking, but it passed the renamer
BUILDSTDERR:       tcl_env of environment: [rF7M :-> ATcTyCon FileData :: *,
BUILDSTDERR:                                rF7N :-> APromotionErr RecDataConPE,
BUILDSTDERR:                                rF7O :-> ATcTyCon FoundThing :: *,
BUILDSTDERR:                                rF7P :-> APromotionErr RecDataConPE]
BUILDSTDERR:     • In the type ‘FileName’
BUILDSTDERR:       In the definition of data constructor ‘FileData’
BUILDSTDERR:       In the data declaration for ‘FileData’
BUILDSTDERR:    |
BUILDSTDERR: 61 | data FileData = FileData FileName [FoundThing] (Map Int String)
BUILDSTDERR:    |                          ^^^^^^^^
BUILDSTDERR: make[1]: *** [utils/ghctags/ghc.mk:18: utils/ghctags/dist-install/build/Main.dyn_o] Error 1
BUILDSTDERR: make: *** [Makefile:128: all] Error 2

Expected behavior

No build failure

Environment

  • GHC version used: ghc-8.4.4

Optional:

  • Operating System: Fedora Linux
  • System Architecture: s390x
Edited by Jens Petersen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information