Bug#869096: haskell-cryptonite mustn't build with -mssse3 -maes on amd64
Adrian Bunk
bunk at debian.org
Thu Jul 20 14:36:53 UTC 2017
Source: haskell-cryptonite
Version: 0.19-1
Severity: serious
haskell-cryptonite FTBFS when built on binet:
https://buildd.debian.org/status/logs.php?pkg=haskell-cryptonite&arch=amd64
...
Blake2b-512
1: Test suite test-cryptonite: FAIL
Test suite logged to: dist-ghc/test/cryptonite-0.21-test-cryptonite.log
0 of 1 test suites (0 of 1 test cases) passed.
/usr/share/cdbs/1/class/hlibrary.mk:154: recipe for target 'check-ghc-stamp' failed
make: *** [check-ghc-stamp] Error 1
The problem is the following in cryptonite.cabal:
...
Flag support_aesni
Description: allow compilation with AESNI on system and architecture that supports it
Default: True
Manual: True
...
if flag(support_aesni) && (os(linux) || os(freebsd) || os(osx)) && (arch(i386) || arch(x86_64))
CC-options: -mssse3 -maes -DWITH_AESNI
...
This is not only a FTBFS issue, it is also a runtime issue
since the amd64 architecture baseline includes only SSE2.
SSSE3 and AES are not part of the amd64 baseline
(and were not supported in AMD CPUs before 2011/2012).
More information about the Pkg-haskell-maintainers
mailing list