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

Failure to build crypton-0.34 on CentOS 7.9 with GHC 8.10.7 #30

Closed
jtdaugherty opened this issue Feb 2, 2024 · 6 comments
Closed

Failure to build crypton-0.34 on CentOS 7.9 with GHC 8.10.7 #30

jtdaugherty opened this issue Feb 2, 2024 · 6 comments

Comments

@jtdaugherty
Copy link

Greetings! I'm wondering if there's anything I can do about this error:

[138 of 138] Compiling Crypto.Tutorial  ( Crypto/Tutorial.hs, dist/build/Crypto/Tutorial.o, dist/build/Crypto/Tutorial.dyn_o )

In file included from cbits/aes/x86ni.h:38:0: error:
    0,
                     from cbits/aes/gf.c:35:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/wmmintrin.h:34:3: error:
     error: #error "AES/PCLMUL instructions not enabled"
     # error "AES/PCLMUL instructions not enabled"
       ^
   |
34 | # error "AES/PCLMUL instructions not enabled"
   |   ^

In file included from cbits/aes/x86ni.h:39:0: error:
    0,
                     from cbits/aes/gf.c:35:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/tmmintrin.h:31:3: error:
     error: #error "SSSE3 instruction set not enabled"
     # error "SSSE3 instruction set not enabled"
       ^
   |
31 | # error "SSSE3 instruction set not enabled"
   |   ^
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Failed to build crypton-0.34 (which is required by test:test_messages
@kazu-yamamoto
Copy link
Owner

I guess that your GCC is too old.

@jtdaugherty
Copy link
Author

I'm curious, what about the error leads you to conclude that?

@kazu-yamamoto
Copy link
Owner

I'm a CentOS user who met the same error before!

@jtdaugherty
Copy link
Author

Oh, alright. :) Thanks, I'll see about using a newer GHC.

@kazu-yamamoto
Copy link
Owner

Not GHC but GCC!

@jtdaugherty
Copy link
Author

Oh yikes, thanks! I totally read that as GHC!

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

No branches or pull requests

2 participants