Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on s390x and mips64el #168

Open
LocutusOfBorg opened this issue Nov 6, 2018 · 4 comments
Open

Build failure on s390x and mips64el #168

LocutusOfBorg opened this issue Nov 6, 2018 · 4 comments

Comments

@LocutusOfBorg
Copy link

Hello, I'm not sure if really a ghc bug or not... any idea?
https://buildd.debian.org/status/fetch.php?pkg=haskell-juicypixels&arch=s390x&ver=3.2.9.5-3&stamp=1540808360&raw=0

[ 8 of 30] Compiling Codec.Picture.Png.Metadata ( src/Codec/Picture/Png/Metadata.hs, dist-ghc/build/Codec/Picture/Png/Metadata.o )
[ 9 of 30] Compiling Codec.Picture.ColorQuant ( src/Codec/Picture/ColorQuant.hs, dist-ghc/build/Codec/Picture/ColorQuant.o )

src/Codec/Picture/ColorQuant.hs:123:26: warning: [-Woverflowed-literals]
    Literal 256 is out of the GHC.Word.Word8 range 0..255
    |
123 |       (PixelRGB8 (r .&. (256 - dr)) (g .&. (256 - dg)) (b .&. (256 - db)))

    |                          ^^^

src/Codec/Picture/ColorQuant.hs:123:45: warning: [-Woverflowed-literals]
    Literal 256 is out of the GHC.Word.Word8 range 0..255
    |
123 |       (PixelRGB8 (r .&. (256 - dr)) (g .&. (256 - dg)) (b .&. (256 - db)))

    |                                             ^^^

src/Codec/Picture/ColorQuant.hs:123:64: warning: [-Woverflowed-literals]
    Literal 256 is out of the GHC.Word.Word8 range 0..255
    |
123 |       (PixelRGB8 (r .&. (256 - dr)) (g .&. (256 - dg)) (b .&. (256 - db)))

    |                                                                ^^^
ghc: panic! (the 'impossible' happened)
  (GHC version 8.4.3 for s390x-ibm-linux):
	pprStatics: float
  F32
  F32
  I32
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1150:37 in ghc:Outputable
        pprPanic, called at compiler/cmm/PprC.hs:525:5 in ghc:PprC

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

make: *** [/usr/share/cdbs/1/class/hlibrary.mk:147: build-ghc-stamp] Error 1
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
@LocutusOfBorg
Copy link
Author

the ghc bug is reported here:
https://ghc.haskell.org/trac/ghc/ticket/15853#ticket

@Twinside
Copy link
Owner

Twinside commented Nov 6, 2018

I should fix those warnings at least :/

@LocutusOfBorg
Copy link
Author

looks like compiling with "-O0" works... not sure how good it is...

@Twinside
Copy link
Owner

Twinside commented Nov 6, 2018

I think -O0 on Juicy.Pixels produce really, really slow code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants