Visa-Research / volepsi

Efficient Private Set Intersection base on VOLE
MIT License
98 stars 31 forks source link

Failed to build on Ubuntu #13

Closed Ant1proton closed 1 year ago

Ant1proton commented 1 year ago

Hi authors, I ran into some error when trying to run python3 build.py -DCOPROTO_ENABLE_BOOST=ON -DCOPROTO_ENABLE_OPENSSL=ON on Ubuntu. `root@docker-desktop:/volepsi# python3 build.py -DCOPROTO_ENABLE_BOOST=ON -DCOPROTO_ENABLE_OPENSSL=ON

====== build.py (vole-psi) ======== mkdir -p out/build/linux cmake -S . -B out/build/linux -DCOPROTO_ENABLE_BOOST=ON -DCOPROTO_ENABLE_OPENSSL=ON -DSUDO_FETCH=OFF -DFETCH_AUTO=ON -DPARALLEL_FETCH=6 -DCMAKE_BUILD_TYPE=Release cmake --build out/build/linux --parallel 6 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

-- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- vole-psi options

-- Option: FETCH_AUTO = ON -- Option: FETCH_SPARSEHASH = -- Option: FETCH_LIBOTE = -- Option: FETCH_LIBDIVIDE = -- Option: VERBOSE_FETCH = ON

-- Option: VOLE_PSI_ENABLE_SSE = ON -- Option: VOLE_PSI_PIC = OFF -- Option: VOLE_PSI_ENABLE_GMW = ON -- Option: VOLE_PSI_ENABLE_CPSI = ON -- Option: VOLE_PSI_ENABLE_OPPRF = ON

-- Option: COPROTO_ENABLE_BOOST = ON -- Option: COPROTO_ENABLE_OPENSSL = ON -- Option: LIBOTE_ENABLE_BITPOLYMUL = ON -- VOLEPSI_THIRDPARTY_DIR=/volepsi/out/install/linux sparsehash-c11 already fetched. SPARSEHASH_INCLUDE_DIRS=/usr/local/include -- SODIUM_INCLUDE_DIRS: /usr/local/include -- SODIUM_LIBRARIES: /usr/local/lib/libsodium.a -- SODIUM_MONTGOMERY: ON

-- Option: COPROTO_STAGE = macoroConfig.cmake : /usr/local/lib/cmake/macoro/macoroConfig.cmake -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found Boost: /usr/local/lib/cmake/Boost-1.77.0/BoostConfig.cmake (found suitable version "1.77.0", minimum required is "1.77.0") found components: system thread regex --

Boost_LIB: Boost::system;Boost::thread;Boost::regex -- Boost_INC: /usr/local/include

-- bitpolymulConfig.cmake : /usr/local/lib/cmake/bitpolymul libOTe already fetched. -- SODIUM_INCLUDE_DIRS: /usr/local/include -- SODIUM_LIBRARIES: /usr/local/lib/libsodium.a -- SODIUM_MONTGOMERY: ON

-- Option: COPROTO_STAGE = macoroConfig.cmake : /usr/local/lib/cmake/macoro/macoroConfig.cmake --

Boost_LIB: Boost::system;Boost::thread;Boost::regex -- Boost_INC: /usr/local/include

-- bitpolymulConfig.cmake : /usr/local/lib/cmake/bitpolymul ============= Building libdivide ============= Cloning https://github.com/ridiculousfish/libdivide.git '/usr/bin/git' 'clone' 'https://github.com/ridiculousfish/libdivide.git' Cloning into 'libdivide'... Checkout b322221677351ebb11f0a42fe9a9a2794da5bfe5 '/usr/bin/git' 'checkout' 'b322221677351ebb11f0a42fe9a9a2794da5bfe5' Note: switching to 'b322221677351ebb11f0a42fe9a9a2794da5bfe5'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at b322221 Stop passing multiple targets to cmake build Install log /volepsi/thirdparty/log-libdivide.txt

-- LIBDIVIDE_INCLUDE_DIRS: /volepsi/out/install/linux/include -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

PARALLEL_FETCH

-- Build files have been written to: /volepsi/out/build/linux [ 4%] Building CXX object volePSI/CMakeFiles/volePSI.dir/RsOprf.cpp.o [ 9%] Building CXX object volePSI/CMakeFiles/volePSI.dir/RsPsi.cpp.o [ 13%] Building CXX object volePSI/CMakeFiles/volePSI.dir/SimpleIndex.cpp.o [ 18%] Building CXX object volePSI/CMakeFiles/volePSI.dir/fileBased.cpp.o [ 22%] Building CXX object volePSI/CMakeFiles/volePSI.dir/GMW/Gmw.cpp.o [ 27%] Building CXX object volePSI/CMakeFiles/volePSI.dir/GMW/Circuit.cpp.o In file included from /volepsi/volePSI/GMW/Circuit.cpp:1: /volepsi/volePSI/GMW/Circuit.h:18:19: error: static assertion failed: ENABLE_CIRCUITS not defined in cryptoTools 18 | static_assert(0, "ENABLE_CIRCUITS not defined in cryptoTools"); | ^ compilation terminated due to -Wfatal-errors. make[2]: [volePSI/CMakeFiles/volePSI.dir/build.make:132: volePSI/CMakeFiles/volePSI.dir/GMW/Circuit.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... In file included from /volepsi/volePSI/GMW/Gmw.h:14, from /volepsi/volePSI/GMW/Gmw.cpp:1: /volepsi/volePSI/../volePSI/GMW/Circuit.h:18:19: error: static assertion failed: ENABLE_CIRCUITS not defined in cryptoTools 18 | static_assert(0, "ENABLE_CIRCUITS not defined in cryptoTools"); | ^ compilation terminated due to -Wfatal-errors. make[2]: [volePSI/CMakeFiles/volePSI.dir/build.make:146: volePSI/CMakeFiles/volePSI.dir/GMW/Gmw.cpp.o] Error 1 /volepsi/volePSI/fileBased.cpp: In function ‘void volePSI::writeOutput(std::string, volePSI::FileType, const std::vector&, bool, std::string’: /volepsi/volePSI/fileBased.cpp:203:23: warning: comparison of integer expressions of different signedness: ‘volePSI::u64’ {aka ‘long unsigned int’} and ‘std::streamoff’ {aka ‘long int’} [-Wsign-compare] 203 | for (u64 i = 0; i < size; ++i) | ^~~~ make[1]: [CMakeFiles/Makefile2:134: volePSI/CMakeFiles/volePSI.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 `