Giter Club home page Giter Club logo

Comments (3)

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024

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.

Tabaie avatar Tabaie commented on July 30, 2024

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.

wangxiao1254 avatar wangxiao1254 commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.