Comments (3)
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 cmake
for configuration. I'm sure there is a way :)
from emp-zk.
Thank you for the prompt response. I tried the following cmake
script:
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/[email protected]/include")
Still got the same errors:
Aryas-MacBook-Pro:build arya$ make
[ 50%] Building CXX object CMakeFiles/emp_zk_compile_err.dir/main.o
In file included from /path/emp-compile-err/emp-compile-err/main.cpp:2:
In file included from /path/emp-tool/emp-tool/emp-tool.h:29:
In file included from /path/emp-tool/emp-tool/utils/mitccrh.h:3:
/path/emp-tool/emp-tool/utils/aes_opt.h:12:15: error: 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'
block aux = _mm_aesenclast_si128 (x2, con);
^
/path/emp-tool/emp-tool/utils/aes_opt.h:79:13: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'ParaEnc' that is compiled without support for 'aes'
*blks = _mm_aesenc_si128(*blks, K);
^
/path/emp-tool/emp-tool/utils/aes_opt.h:89:12: error: always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'ParaEnc' that is compiled without support for 'aes'
*blks = _mm_aesenclast_si128(*blks, K);
^
/path/emp-tool/emp-tool/utils/aes_opt.h:79:13: error: always_inline function '_mm_aesenc_si128' requires target feature 'aes', but would be inlined into function 'ParaEnc' that is compiled without support for 'aes'
*blks = _mm_aesenc_si128(*blks, K);
^
/path/emp-tool/emp-tool/utils/aes_opt.h:89:12: error: always_inline function '_mm_aesenclast_si128' requires target feature 'aes', but would be inlined into function 'ParaEnc' that is compiled without support for 'aes'
*blks = _mm_aesenclast_si128(*blks, K);
^
5 errors generated.
make[2]: *** [CMakeFiles/emp_zk_compile_err.dir/main.o] Error 1
make[1]: *** [CMakeFiles/emp_zk_compile_err.dir/all] Error 2
make: *** [all] Error 2
from emp-zk.
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.
from emp-zk.
Related Issues (10)
- Static Library? HOT 3
- Installation fails on Redhat HOT 6
- working over 254-bit fields
- Latest commit may have eaten up the GitHub actions quota HOT 1
- Potential Typo in emp-zk/test/ram/ro_ram_test.cpp HOT 2
- Efficient VOLE for one-shot zero-knowledge proofs HOT 3
- Implementations of prime fields with some 2-arity HOT 2
- Implementation's sensitivity to network latency HOT 10
- Latency grows with the number of GGM trees, aka O(T) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emp-zk.