Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.h: avx2 depends on gcc 4.9 #809

Merged
merged 1 commit into from
Feb 21, 2019
Merged

config.h: avx2 depends on gcc 4.9 #809

merged 1 commit into from
Feb 21, 2019

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Feb 21, 2019

Build of Cypto++ on x86 with GCC 4.8 fails on:

chacha_avx.cpp: In function 'void CryptoPP::ChaCha_OperateKeystream_AVX2(const word32*, const byte*, CryptoPP::byte*, unsigned int)':
chacha_avx.cpp:98:85: error: '_mm256_broadcastsi128_si256' was not declared in this scope

This is due to the fact that _mm256_broadcastsi128_si256 has been added only in gcc 4.9:

So bump CRYPTOPP_GCC_VERSION from 4.7 to 4.9 for AVX2 support

Fixes:

Signed-off-by: Fabrice Fontaine [email protected]

Build of cryptopp on x86 with gcc 4.8 fails on:
chacha_avx.cpp: In function 'void CryptoPP::ChaCha_OperateKeystream_AVX2(const word32*, const byte*, CryptoPP::byte*, unsigned int)':
chacha_avx.cpp:98:85: error: '_mm256_broadcastsi128_si256' was not declared in this scope

This is due to the fact that _mm256_broadcastsi128_si256 has been added
only in gcc 4.9:
gcc-mirror/gcc@78e8d5f

So bump CRYPTOPP_GCC_VERSION from 4.7 to 4.9 for AVX2 support

Fixes:
 - http://autobuild.buildroot.org/results/195e40b34344f773da51a3fbff9d8e76c517eed1

Signed-off-by: Fabrice Fontaine <[email protected]>
@noloader noloader merged commit a809dbd into weidai11:master Feb 21, 2019
@noloader
Copy link
Collaborator

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants