Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,832
    • Issues 4,832
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 450
    • Merge requests 450
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #16379

Closed
Open
Created Mar 02, 2019 by Jens Petersen@juhpReporter

JuicyPixels build panics on s390x ghc-8.4.4

When I try to build JuicyPixels-3.2.9.5 on Fedora s390x Linux, ghc-8.4.4 panics:

[ 9 of 30] Compiling Codec.Picture.ColorQuant ( src/Codec/Picture/ColorQuant.hs, dist/build/Codec/Picture/ColorQuant.o )
BUILDSTDERR: src/Codec/Picture/ColorQuant.hs:123:26: warning: [-Woverflowed-literals]
BUILDSTDERR:     Literal 256 is out of the GHC.Word.Word8 range 0..255
BUILDSTDERR:     |
BUILDSTDERR: 123 |       (PixelRGB8 (r .&. (256 - dr)) (g .&. (256 - dg)) (b .&. (256 - db)))
BUILDSTDERR:     |                          ^^^
BUILDSTDERR: src/Codec/Picture/ColorQuant.hs:123:45: warning: [-Woverflowed-literals]
BUILDSTDERR:     Literal 256 is out of the GHC.Word.Word8 range 0..255
BUILDSTDERR:     |
BUILDSTDERR: 123 |       (PixelRGB8 (r .&. (256 - dr)) (g .&. (256 - dg)) (b .&. (256 - db)))
BUILDSTDERR:     |                                             ^^^
BUILDSTDERR: src/Codec/Picture/ColorQuant.hs:123:64: warning: [-Woverflowed-literals]
BUILDSTDERR:     Literal 256 is out of the GHC.Word.Word8 range 0..255
BUILDSTDERR:     |
BUILDSTDERR: 123 |       (PixelRGB8 (r .&. (256 - dr)) (g .&. (256 - dg)) (b .&. (256 - db)))
BUILDSTDERR:     |                                                                ^^^
BUILDSTDERR: ghc: panic! (the 'impossible' happened)
BUILDSTDERR:   (GHC version 8.4.4 for s390x-ibm-linux):
BUILDSTDERR: 	pprStatics: float
BUILDSTDERR:   F32
BUILDSTDERR:   F32
BUILDSTDERR:   I32
BUILDSTDERR:   Call stack:
BUILDSTDERR:       CallStack (from HasCallStack):
BUILDSTDERR:         callStackDoc, called at compiler/utils/Outputable.hs:1150:37 in ghc:Outputable
BUILDSTDERR:         pprPanic, called at compiler/cmm/PprC.hs:525:5 in ghc:PprC
BUILDSTDERR: Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

I would test on ghc-8.6.3 too, but I haven't been able to build ghc-8.6 yet on s390x (unregisterized on unregisterized): see issue 15913.

Edited Mar 10, 2019 by Jens Petersen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking