Skip to content
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

Unable to build libscapi #88

Open
girishabs opened this issue Mar 6, 2022 · 1 comment
Open

Unable to build libscapi #88

girishabs opened this issue Mar 6, 2022 · 1 comment

Comments

@girishabs
Copy link

girishabs commented Mar 6, 2022

I am getting the error shown below when I run make from libscapi directory:
Compiling libOTe library...
-- Option: CMAKE_BUILD_TYPE = Release
Release
Debug
RelWithDebInfo
-- Option: ENABLE_SIMPLESTOT = OFF
-- Option: ENABLE_KYBEROT = OFF
-- Option: KOS hashing (current = OTE_DAVIE_MEYER_AES):

-- OTE_KOS_HASH=OTE_RANDOM_ORACLE use the random oracle (slower)
-- OTE_KOS_HASH=OTE_DAVIE_MEYER_AES use AES in the Davie Meyer compression function

-- Option: OTE_KOS_FIAT_SHAMIR = OFF
-- Option: ENABLE_SILENTOT = OFF
-- Option: ENABLE_MIRACL = OFF
-- Option: ENABLE_RELIC = OFF
-- Option: ENABLE_CIRCUITS = OFF
-- Option: ENABLE_CPP_14 = ON
-- Option: ENABLE_NASM = OFF
-- Option: ENABLE_NET_LOG = OFF
-- Could NOT find Boost: missing: system thread (found /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))
-- Boost_include /usr/include
-- Option: ENABLE_SIMPLESTOT = OFF
-- Option: ENABLE_KYBEROT = OFF
-- Option: KOS hashing (current = OTE_DAVIE_MEYER_AES):

-- OTE_KOS_HASH=OTE_RANDOM_ORACLE use the random oracle (slower)
-- OTE_KOS_HASH=OTE_DAVIE_MEYER_AES use AES in the Davie Meyer compression function

-- Option: OTE_KOS_FIAT_SHAMIR = OFF
-- Option: ENABLE_SILENTOT = OFF
-- Option: ENABLE_MIRACL = OFF
-- Option: ENABLE_RELIC = OFF
-- Option: ENABLE_CIRCUITS = OFF
-- Option: ENABLE_CPP_14 = ON
-- Option: ENABLE_NASM = OFF
-- Option: ENABLE_NET_LOG = OFF
CMake Error at libOTe/cryptoTools/cryptoTools/CMakeLists.txt:37 (add_custom_target):
add_custom_target cannot create target "sha_asm" because another target
with the same name already exists. The existing target is a custom target
created in source directory
"/home/girisha/libscapi/build/libOTe/cryptoTools/cryptoTools". See
documentation for policy CMP0002 for more details.

CMake Error at libOTe/cryptoTools/cryptoTools/CMakeLists.txt:44 (add_library):
add_library cannot create target "cryptoTools" because another target with
the same name already exists. The existing target is a static library
created in source directory
"/home/girisha/libscapi/build/libOTe/cryptoTools/cryptoTools". See
documentation for policy CMP0002 for more details.

-- Could NOT find Boost: missing: system thread (found /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0"))
-- Boost_include /usr/include
CMake Error at libOTe/cryptoTools/tests_cryptoTools/CMakeLists.txt:5 (add_library):
add_library cannot create target "tests_cryptoTools" because another target
with the same name already exists. The existing target is a static library
created in source directory
"/home/girisha/libscapi/build/libOTe/cryptoTools/tests_cryptoTools". See
documentation for policy CMP0002 for more details.

CMake Error at libOTe/cryptoTools/tests_cryptoTools/CMakeLists.txt:8 (target_link_libraries):
Attempt to add link library "cryptoTools" to target "tests_cryptoTools"
which is not built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

CMake Error at libOTe/cryptoTools/frontend_cryptoTools/CMakeLists.txt:7 (add_executable):
add_executable cannot create target "frontend_cryptoTools" because another
target with the same name already exists. The existing target is an
executable created in source directory
"/home/girisha/libscapi/build/libOTe/cryptoTools/frontend_cryptoTools".
See documentation for policy CMP0002 for more details.

CMake Error at libOTe/cryptoTools/frontend_cryptoTools/CMakeLists.txt:11 (target_link_libraries):
Attempt to add link library "cryptoTools" to target "frontend_cryptoTools"
which is not built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

CMake Error at libOTe_Tests/CMakeLists.txt:5 (add_library):
add_library cannot create target "libOTe_Tests" because another target with
the same name already exists. The existing target is a static library
created in source directory
"/home/girisha/libscapi/build/libOTe/libOTe/libOTe_Tests". See
documentation for policy CMP0002 for more details.

CMake Error at libOTe_Tests/CMakeLists.txt:8 (target_link_libraries):
Attempt to add link library "libOTe" to target "libOTe_Tests" which is not
built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

CMake Error at frontend/CMakeLists.txt:9 (add_executable):
add_executable cannot create target "frontend_libOTe" because another
target with the same name already exists. The existing target is an
executable created in source directory
"/home/girisha/libscapi/build/libOTe/libOTe/frontend". See documentation
for policy CMP0002 for more details.

CMake Error at frontend/CMakeLists.txt:14 (target_link_libraries):
Attempt to add link library "libOTe_Tests" to target "frontend_libOTe"
which is not built in this directory.

This is allowed only when policy CMP0079 is set to NEW.

-- Configuring incomplete, errors occurred!

System details:
Ubuntu 20.04
Boost 1.71

@chenshuyuhhh
Copy link

I met another problem when make -j:
In file included from src/interactive_mid_protocols/OTExtensionBristol.cpp:5:
src/interactive_mid_protocols/../../include/interactive_mid_protocols/OTExtensionBristol.hpp:32:10: fatal error: OTExtensionBristol/OT/OTExtensionWithMatrix.h: No such file or directory
32 | #include <OTExtensionBristol/OT/OTExtensionWithMatrix.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants