Bug#933533: FTBFS on x32 (due to optimize-gmp=False): Variable not in scope: unsafeShiftL :: t -> Integer -> t

Laurence Parry greenreaper at gmail.com
Wed Jul 31 10:29:56 BST 2019


Source: haskell-cborg
Version: 0.2.0.0-1
Tags: ftbfs patch upstream fixed-upstream
Usertag: x32

>From the build log:
https://buildd.debian.org/status/fetch.php?pkg=haskell-cborg&arch=x32&ver=0.2.1.0-1&stamp=1564205257&raw=0
-----
...
Flags chosen: optimize-gmp=False
...
[ 9 of 14] Compiling Codec.CBOR.Magic ( src/Codec/CBOR/Magic.hs,
dist-ghc/build/Codec/CBOR/Magic.o )

src/Codec/CBOR/Magic.hs:479:34: error:
    Variable not in scope: unsafeShiftL :: t -> Integer -> t
    |
479 |         Just (w, ws') -> go (acc `unsafeShiftL` 8 + fromIntegral w) ws'
    |                                  ^^^^^^^^^^^^^^
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:147: build-ghc-stamp] Error 1
-----

The issue appears to have been reported upstream as
"cborg fails to compile when optimize-gmp is disabled"
https://github.com/well-typed/cborg/issues/193

It has been fixed upstream by the following patch:
https://github.com/well-typed/cborg/pull/195
https://github.com/well-typed/cborg/commit/bd923f78bb0a2ba3fb1593a4c9267fe4eafe95cd

A new release appears imminent, but has not yet occurred:
https://github.com/well-typed/cborg/issues/202
Once released it may fix this issue.

Best regards,
-- 
Laurence "GreenReaper" Parry
https://www.greenreaper.co.uk/



More information about the Pkg-haskell-maintainers mailing list