Closed yellow123Nike closed 1 year ago
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 -DVOLE_PSI_NO_SYSTEM_PATH=true -DPARALLEL_FETCH=64 -DCMAKE_BUILD_TYPE=Release cmake --build out/build/linux --parallel 64 vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-- Option: VOLE_PSI_NO_SYSTEM_PATH = true -- Option: CMAKE_BUILD_TYPE = Release
-- Option: FETCH_AUTO = ON -- Option: FETCH_SPARSEHASH = -- Option: FETCH_LIBOTE =
-- Option: VOLE_PSI_ENABLE_SSE = ON -- Option: VOLE_PSI_ENABLE_PIC = OFF -- Option: VOLE_PSI_ENABLE_ASAN = OFF -- Option: VOLE_PSI_STD_VER = 17 -- Option: VOLE_PSI_ENABLE_GMW = ON -- Option: VOLE_PSI_ENABLE_CPSI = ON -- Option: VOLE_PSI_ENABLE_OPPRF = ON
-- Option: VOLE_PSI_ENABLE_BOOST = ON -- Option: VOLE_PSI_ENABLE_OPENSSL = ON -- Option: VOLE_PSI_ENABLE_BITPOLYMUL = ON -- Option: VOLE_PSI_ENABLE_SODIUM = ON -- Option: VOLE_PSI_SODIUM_MONTGOMERY = ON -- Option: VOLE_PSI_ENABLE_RELIC = OFF -- VOLEPSI_THIRDPARTY_DIR=/volepsi/out/install/linux sparsehash-c11 already fetched. SPARSEHASH_INCLUDE_DIRS=/volepsi/out/install/linux/include
-- Option: CRYPTO_TOOLS_STD_VER = 17
-- Option: NO_SYSTEM_PATH = true -- Option: FETCH_AUTO = ON -- Option: VERBOSE_FETCH = ON
-- Option: FETCH_RELIC = -- Option: FETCH_SODIUM = -- Option: FETCH_BOOST = -- Option: FETCH_COPROTO =
-- Option: CMAKE_BUILD_TYPE = Release Release Debug RelWithDebInfo -- Option: ENABLE_SPAN_LITE = ON -- Option: ENABLE_RELIC = OFF -- Option: ENABLE_SODIUM = ON -- Option: ENABLE_BOOST = ON -- Option: ENABLE_OPENSSL = ON -- Option: ENABLE_COPROTO = true -- Option: ENABLE_CIRCUITS = ON -- Option: ENABLE_SSE = ON -- Option: ENABLE_AVX = ON -- Option: ENABLE_PIC = OFF -- Option: ENABLE_ASAN = OFF
sodium already fetched. -- SODIUM_INCLUDE_DIRS: /volepsi/out/install/linux/include -- SODIUM_LIBRARIES: /volepsi/out/install/linux/lib/libsodium.a -- SODIUM_MONTGOMERY: ON
macoroConfig.cmake : /volepsi/out/install/linux/lib/cmake/macoro/macoroConfig.cmake CMake Error at /cmake-3.22.0-linux-aarch64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Threads (missing: Threads_FOUND) Call Stack (most recent call first): /cmake-3.22.0-linux-aarch64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /cmake-3.22.0-linux-aarch64/share/cmake-3.22/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /volepsi/out/install/linux/lib/cmake/macoro/macoroFindDeps.cmake:71 (find_package) /volepsi/out/install/linux/lib/cmake/macoro/macoroConfig.cmake:19 (include) /volepsi/out/install/linux/lib/cmake/coproto/coprotoFindDeps.cmake:77 (find_package) /volepsi/out/install/linux/lib/cmake/coproto/coprotoFindDeps.cmake:87 (FIND_MACORO) /volepsi/out/install/linux/lib/cmake/coproto/coprotoConfig.cmake:15 (include) cryptoTools/cmake/cryptoToolsDepHelper.cmake:215 (find_package) cryptoTools/cmake/cryptoToolsDepHelper.cmake:221 (FIND_COPROTO) cryptoTools/CMakeLists.txt:154 (include)
-- Configuring incomplete, errors occurred! See also "/volepsi/out/libOTe/out/build/linux/CMakeFiles/CMakeOutput.log". See also "/volepsi/out/libOTe/out/build/linux/CMakeFiles/CMakeError.log". CMake Error at thirdparty/fetch.cmake:22 (file): file failed to open for reading (No such file or directory):
/volepsi/thirdparty/log-libOTe.txt
Call Stack (most recent call first): thirdparty/getLibOTe.cmake:62 (run) cmake/findDependancies.cmake:115 (include) CMakeLists.txt:14 (include)
CMake Error at thirdparty/fetch.cmake:23 (message): libOTe Configure failed (1). Call Stack (most recent call first): thirdparty/getLibOTe.cmake:62 (run) cmake/findDependancies.cmake:115 (include) CMakeLists.txt:14 (include)
-- Configuring incomplete, errors occurred! See also "/volepsi/out/build/linux/CMakeFiles/CMakeOutput.log". gmake: Makefile: No such file or directory gmake: *** No rule to make target 'Makefile'. Stop.
After adding some parameters:
python3 build.py -DCOPROTO_ENABLE_BOOST=ON -DCOPROTO_ENABLE_OPENSSL=ON -D VOLE_PSI_ENABLE_BITPOLYMUL=false -D VOLE_PSI_ENABLE_SSE=false -D VOLE_PSI_ENABLE_GMW=false -D VOLE_PSI_ENABLE_CPSI=false
ERROR: libOTe Build '/cmake-3.22.0-linux-aarch64/bin/cmake' '--build' '/volepsi/out/libOTe/out/build/linux' '--config' 'Release' [ 1%] Building CXX object cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaCircuit.cpp.o cc1plus: error: unknown value ‘x86-64’ for ‘-march’ compilation terminated due to -Wfatal-errors. gmake[2]: [cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/build.make:76: cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaCircuit.cpp.o] Error 1 gmake[1]: [CMakeFiles/Makefile2:203: cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/all] Error 2 gmake: *** [Makefile:136: all] Error 2 CMake Error at thirdparty/fetch.cmake:22 (file): file failed to open for reading (No such file or directory):
/volepsi/thirdparty/log-libOTe.txt
Call Stack (most recent call first): thirdparty/getLibOTe.cmake:63 (run) cmake/findDependancies.cmake:115 (include) CMakeLists.txt:14 (include)
CMake Error at thirdparty/fetch.cmake:23 (message): libOTe Build failed (2). Call Stack (most recent call first): thirdparty/getLibOTe.cmake:63 (run) cmake/findDependancies.cmake:115 (include) CMakeLists.txt:14 (include)
-- Configuring incomplete, errors occurred! See also "/volepsi/out/build/linux/CMakeFiles/CMakeOutput.log". gmake: Makefile: No such file or directory gmake: *** No rule to make target 'Makefile'. Stop.
where are you compiling this? Are you copying the project files between machines?
it seems you first compiled this on x86 and then copied the files onto arm. You then just called build with the existing build artifacts still there. CMake caches some of this stuff and therefore isn't compiling correctly.
The simplest fix (if the above is true) is to clone the repo to the desired arm machine and do a clean build. Alternatively, you will need to remove all build artifacts from the out folder and then rebuild.
thanks, Has been successfully built
thanks, Has been successfully built
I encountered the same error as you did and tried deleting the out
folder, but it still didn't work. Can you please share your solution to this problem?
I'm not sure. I don't have an arm machine.
I assume you got it working based on your other issues.
thanks, Has been successfully built Can you please share your solution to this problem?
macoroConfig.cmake : /volepsi/out/install/linux/lib/cmake/macoro/macoroConfig.cmake CMake Error at /cmake-3.22.0-linux-aarch64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Threads (missing: Threads_FOUND) Call Stack (most recent call first): /cmake-3.22.0-linux-aarch64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /cmake-3.22.0-linux-aarch64/share/cmake-3.22/Modules/FindThreads.cmake:238 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /volepsi/out/install/linux/lib/cmake/macoro/macoroFindDeps.cmake:71 (find_package) /volepsi/out/install/linux/lib/cmake/macoro/macoroConfig.cmake:19 (include) /volepsi/out/install/linux/lib/cmake/coproto/coprotoFindDeps.cmake:77 (find_package) /volepsi/out/install/linux/lib/cmake/coproto/coprotoFindDeps.cmake:87 (FIND_MACORO) /volepsi/out/install/linux/lib/cmake/coproto/coprotoConfig.cmake:15 (include) cryptoTools/cmake/cryptoToolsDepHelper.cmake:215 (find_package) cryptoTools/cmake/cryptoToolsDepHelper.cmake:221 (FIND_COPROTO) cryptoTools/CMakeLists.txt:154 (include)
-- Configuring incomplete, errors occurred! See also "/volepsi/out/libOTe/out/build/linux/CMakeFiles/CMakeOutput.log". See also "/volepsi/out/libOTe/out/build/linux/CMakeFiles/CMakeError.log". CMake Error at thirdparty/fetch.cmake:22 (file): file failed to open for reading (No such file or directory):
Call Stack (most recent call first): thirdparty/getLibOTe.cmake:62 (run) cmake/findDependancies.cmake:115 (include) CMakeLists.txt:14 (include)
CMake Error at thirdparty/fetch.cmake:23 (message): libOTe Configure failed (1). Call Stack (most recent call first): thirdparty/getLibOTe.cmake:62 (run) cmake/findDependancies.cmake:115 (include) CMakeLists.txt:14 (include)
-- Configuring incomplete, errors occurred! See also "/volepsi/out/build/linux/CMakeFiles/CMakeOutput.log". gmake: Makefile: No such file or directory gmake: *** No rule to make target 'Makefile'. Stop.