-
Notifications
You must be signed in to change notification settings - Fork 19
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
Compilation Error on Xcode #13
Comments
Unfortunately, I do not have any knowledge in Xcode. If you compile from the terminal, everything should work as described. I think you should tell Xcode to use |
Thank you for the prompt response. I tried the following project(emp_zk_compile_err)
set(CMAKE_CXX_STANDARD 17)
add_executable(emp_zk_compile_err main.cpp)
target_include_directories(emp_zk_compile_err PUBLIC "/path/emp-zk")
target_include_directories(emp_zk_compile_err PUBLIC "/path/emp-tool")
target_include_directories(emp_zk_compile_err PUBLIC "/path/emp-ot")
target_include_directories(emp_zk_compile_err PUBLIC "/usr/local/opt/openssl@1.1/include") Still got the same errors:
|
Please use our cmake configuration at https://github.com/emp-toolkit/emp-zk/blob/master/CMakeLists.txt, crucially, this file include https://github.com/emp-toolkit/emp-tool/blob/master/cmake/emp-base.cmake#L50, that enables AES. |
I can successfully install
ot
,zk
andtool
on a macOS, with all the tests passing successfully.However, the following simple program, which only makes a reference to
setup_zk_bool
won't compile with Xcode.The errors are the following:
emp-tool/utils/aes_opt.h:12:15: Always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'ks_rounds' that is compiled without support for 'aes'
emp-tool/utils/aes_opt.h:79:13: Always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'ParaEnc' that is compiled without support for 'aes'
emp-tool/utils/aes_opt.h:89:12: Always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'ParaEnc' that is compiled without support for 'aes'
Since all the tests pass using the same compiler on the same machine, I suspect that the issue has to do with compiler configurations, with Xcode telling the compiler to be strict and throw errors when it could just give a warning. But I don't know which flags that could be.
A small Xcode project containing the program is available here.
The text was updated successfully, but these errors were encountered: