Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545926 - dev-haskell/cipher-aes-0.2.10: # error "SSSE3 instruction set not enabled"
Summary: dev-haskell/cipher-aes-0.2.10: # error "SSSE3 instruction set not enabled"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 08:19 UTC by Luke-Jr
Modified: 2015-04-09 20:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,5.13 KB, text/plain)
2015-04-08 08:19 UTC, Luke-Jr
Details
patch for ebuild (p,650 bytes, patch)
2015-04-09 10:57 UTC, Luke-Jr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2015-04-08 08:19:32 UTC
Created attachment 400810 [details]
build.log

Build fails because I have -mno-ssse3 in CFLAGS (since it is broken on x86(_32) Haswell).
Comment 1 Luke-Jr 2015-04-08 08:20:07 UTC
Clarification: It is SSSE3 that is broken, not the -mno-ssse3 CFLAG :)
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2015-04-09 07:28:19 UTC
Yeah, it's due to automagic support_aesni cabal flag enabled in ebuild. Fixing.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2015-04-09 07:56:20 UTC
Pushed as:

>  09 Apr 2015; Sergei Trofimovich <slyfox@gentoo.org> cipher-aes-0.2.10.ebuild,
>  metadata.xml:
>  Guarded -maesni under CPU_FLAGS_X86=aes (bug #545926 by Luke-Jr).

Thanks!
Comment 4 Luke-Jr 2015-04-09 10:50:57 UTC
(In reply to Sergei Trofimovich from comment #3)
> Pushed as:
> 
> >  09 Apr 2015; Sergei Trofimovich <slyfox@gentoo.org> cipher-aes-0.2.10.ebuild,
> >  metadata.xml:
> >  Guarded -maesni under CPU_FLAGS_X86=aes (bug #545926 by Luke-Jr).
> 
> Thanks!

This doesn't really fix it: AES works fine on my CPU, just not SSSE3... Maybe add REQUIRED_USE="cpu_flags_x86_aes? ( cpu_flags_x86_ssse3 )"?
Comment 5 Luke-Jr 2015-04-09 10:57:03 UTC
Created attachment 400894 [details, diff]
patch for ebuild

This uses both CPU_FLAGS_X86 flags and requires them both or neither.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2015-04-09 20:05:17 UTC
> This doesn't really fix it: AES works fine on my CPU, just not SSSE3...
> Maybe add REQUIRED_USE="cpu_flags_x86_aes? ( cpu_flags_x86_ssse3 )"?

Oh, I've mixed it with SSE3 :) Thanks for the fix!
Pushed fix as:

>  09 Apr 2015; Sergei Trofimovich <slyfox@gentoo.org> cipher-aes-0.2.10.ebuild,
>  metadata.xml:
>  Enable AES-NI only when both AES-NI and sSSE3 are present. Bug #545926 and fix
>  by Luke-Jr.

I didn't use REQUIRED_USE as it's quite annoying for users to micromanage these binary things with 4 states of flags.

.ebuild will enable gcc's intrisics only when both flags are enabled
otherwise it will be silently disabled.