[Pkg-haskell-maintainers] Bug#752460: haskell-nettle: FTBFS for mips/mipsel due to lack of GHCi support

Dejan Latinovic Dejan.Latinovic at imgtec.com
Mon Jun 23 17:48:00 UTC 2014



Package:haskell-nettle
Version: 0.1.0-1
Tags: sid patch
Severity: important
Justification: FTBFS
User: debian-mips-dev-discuss at lists.alioth.debian.org
Usertags: mips-patch


While trying to build haskell-nettle on mips/mipsel architecture,
build fails on testing with an error:

> Building nettle-0.1.0...
> Preprocessing library nettle-0.1.0...
> [ 1 of 11] Compiling Crypto.Nettle.Hash.Types ( src/Crypto/Nettle/Hash/Types.hs, dist-ghc/build/Crypto/Nettle/Hash/Types.o )
> [ 2 of 11] Compiling Crypto.Nettle.KeyedHash ( src/Crypto/Nettle/KeyedHash.hs, dist-ghc/build/Crypto/Nettle/KeyedHash.o )
> [ 3 of 11] Compiling Crypto.Nettle.HMAC ( src/Crypto/Nettle/HMAC.hs, dist-ghc/build/Crypto/Nettle/HMAC.o )
> [ 4 of 11] Compiling Nettle.Utils     ( src/Nettle/Utils.hs, dist-ghc/build/Nettle/Utils.o )
> [ 5 of 11] Compiling Crypto.Nettle.Hash.ForeignImports ( dist-ghc/build/Crypto/Nettle/Hash/ForeignImports.hs, dist-ghc/build/Crypto/Nettle/Hash/ForeignImports.o )
> ghc: panic! (the 'impossible' happened)
>   (GHC version 7.6.3 for mipsel-unknown-linux):
> 	Cant do annotations without GHCi
>     {src/Crypto/Nettle/Hash/ForeignImports.hsc:138:16-44}
>     "HLint: ignore Use camelCase"
> 
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> 
> make: *** [build-ghc-stamp] Error 1


The reason for this error is that ANN pragmas used in haskell-nettle
source code.  Some architectures like mips, do not have support for
GHCi and without GHCi support, these parts of code are
treated as errors.

A patch that adds DEBIAN_NO_GHCI switch
in order to enable successful build of haskell-nettle for mips/mipsel, 
is attached.


Could you please consider including this patch?

Best regards,
Dejan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_ann_without_ghci.patch
Type: text/x-patch
Size: 6115 bytes
Desc: no_ann_without_ghci.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20140623/bef09c63/attachment-0001.bin>


More information about the Pkg-haskell-maintainers mailing list