| Summary: | dev-haskell/cryptonite CPU_FLAGS_X86=sse - In file included from cbits/blake2/sse/blake2b.c:21:0: error: cbits/blake2/sse/blake2-config.h:68:2: error: #error "This code requires at least SSE2." | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Thomas Kahle <thomas.kahle> |
| Component: | Current packages | Assignee: | Gentoo's Haskell Language team <haskell> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge --info
build.log |
||
Created attachment 591798 [details]
build.log
Oh, looks like that flag should have been sse2. Looking. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d6567635185b785cd4e0c2763d4707402e3beb5 commit 7d6567635185b785cd4e0c2763d4707402e3beb5 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-10-13 14:12:41 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-10-13 14:12:55 +0000 dev-haskell/cryptonite: pass -msse2 for blake2, bug #696220 Fixed two problems here: - blake2 code assumes SSE2, not just SSE - x86 needs -msse2 to be passed explicitly (as opposed to amd64) Otherwise compiler does not attempt to emit sse2 primitives and build fails as: ``` cbits/blake2/sse/blake2-config.h:68:2: error: error: #error "This code requires at least SSE2." #error "This code requires at least SSE2." ^~~~~ ``` Reported-by: Thomas Kahle Closes: https://bugs.gentoo.org/696220 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> dev-haskell/cryptonite/cryptonite-0.21.ebuild | 10 +++++++--- dev-haskell/cryptonite/files/cryptonite-0.21-sse2.patch | 11 +++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) |
Created attachment 591796 [details] emerge --info It builds just fine with CPU_FLAGS_X86="" and with CPU_FLAGS_X86="sse" I get: [111 of 111] Compiling Crypto.Cipher.AES ( Crypto/Cipher/AES.hs, dist/build/Crypto/Cipher/AES.o ) In file included from cbits/blake2/sse/blake2b.c:21:0: error: cbits/blake2/sse/blake2-config.h:68:2: error: error: #error "This code requires at least SSE2." #error "This code requires at least SSE2." ^~~~~ cbits/blake2/sse/blake2b.c: In function ‘blake2b_compress’: cbits/blake2/sse/blake2b.c:291:9: error: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi] row1l = LOADU( &S->h[0] ); `i686-pc-linux-gnu-gcc' failed in phase `C Compiler'. (Exit code: 1)