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

error: static assertion failed: OC_ENABLE_PORTABLE_AES must be defined if ENABLE_AESNI is not. #154

Open
Yinbenxin opened this issue Dec 10, 2024 · 4 comments

Comments

@Yinbenxin
Copy link

python build.py --boost --sodium -DENABLE_SSE=false -DENABLE_BITPOLYMUL=false -DENABLE_SIMPLESTOT=false -DENABLE_SIMPLESTOT_ASM=false -DENABLE_AESNI=1

Build in arm64。

@ladnir
Copy link
Member

ladnir commented Dec 10, 2024

python build.py --boost --sodium -DENABLE_SSE=false -DENABLE_BITPOLYMUL=false -DENABLE_SIMPLESTOT=false -DENABLE_SIMPLESTOT_ASM=false DENABLE_AESNI=false -DENABLE_ARM_AES=true

@Yinbenxin
Copy link
Author

when I try “python build.py --boost --sodium -DENABLE_SSE=false -DENABLE_BITPOLYMUL=false -DENABLE_SIMPLESTOT=false -DENABLE_SIMPLESTOT_ASM=false DENABLE_AESNI=false -DENABLE_ARM_AES=true”,
I find :
cc1plus: error: unknown value ‘native+crypto’ for ‘-march’
compilation terminated due to -Wfatal-errors.
make[2]: *** [cryptoTools/CMakeFiles/cryptoTools.dir/build.make:76: cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaCircuit.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:433: cryptoTools/CMakeFiles/cryptoTools.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

with g++11, aarch64.

@Yinbenxin
Copy link
Author

Another question is whether vole can still be calculated if I set - DENABLE-SIMPLESTOT=false. I saw it used in Vole.

@ladnir
Copy link
Member

ladnir commented Jan 9, 2025

I think I fixed this. Also, ENABLE_SIMPLESTOT=false is fine.

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