Open eduardo010174 opened 1 year ago
yes, you can't use libOTe 2.x with libPSI. It requires 1.x. As a temporary fix, you can change
https://github.com/osu-crypto/libPSI/blob/master/thirdparty/getLibOTe.cmake#L31
to be -DENABLE_SODIUM=ON -DENABLE_RELIC=OFF
.
After test your minor fix, the code no compile.
python3 build.py
====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake -S . -B out/build/linux -DSUDO_FETCH=OFF -DENABLE_ALL_PSI=ON -DFETCH_AUTO=ON -DPARALLEL_FETCH=12 -DCMAKE_BUILD_TYPE=Release
cmake --build out/build/linux --parallel 12
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- fetch options
=======================================================
-- Option: FETCH_AUTO = ON
-- Option: FETCH_SPARSEHASH =
-- Option: FETCH_LIBOTE =
-- General Options
=======================================================
-- Option: CMAKE_BUILD_TYPE = Release
Release
Debug
RELWITHDEBINFO
-- Option: ENABLE_ALL_PSI = ON/OFF
-- PSI protocols
=======================================================
-- Option: ENABLE_DCW_PSI = ON
-- Option: ENABLE_DKT_PSI = ON
-- Option: ENABLE_GRR_PSI = ON
-- Option: ENABLE_RR16_PSI = ON
-- Option: ENABLE_RR17_PSI = ON
-- Option: ENABLE_RR17B_PSI = ON
-- Option: ENABLE_KKRT_PSI = ON
-- Option: ENABLE_ECDH_PSI = ON
-- Option: ENABLE_DRRN_PSI = ON
-- LIBPSI_THIRDPARTY_DIR=/home/omen/Desktop/libPSI/out/install/linux
============= Building sparsehash-c11 =============
Cloning https://github.com/sparsehash/sparsehash-c11.git
'/usr/bin/git' 'clone' 'https://github.com/sparsehash/sparsehash-c11.git'
Checkout edd6f1180156e76facc1c0449da245208ab39503
'/usr/bin/git' 'checkout' 'edd6f1180156e76facc1c0449da245208ab39503'
log /home/omen/Desktop/libPSI/thirdparty/log-sparsehash-c11.txt
==========================================
SPARSEHASH_INCLUDE_DIRS=/home/omen/Desktop/libPSI/out/install/linux/include
============= Building libOTe =============
Cloning https://github.com/osu-crypto/libOTe.git
'/usr/bin/git' 'clone' '--recursive' 'https://github.com/osu-crypto/libOTe.git'
Checkout 7d5c13d8c7a8f56a53e3f5909882c114903fb17c
'/usr/bin/git' 'checkout' '7d5c13d8c7a8f56a53e3f5909882c114903fb17c'
submodule
'/usr/bin/git' 'submodule' 'update' '--recursive'
Configure
'/usr/bin/cmake' '-S' '/home/omen/Desktop/libPSI/thirdparty/libOTe' '-B' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DFETCH_AUTO=ON' '-DVERBOSE_FETCH=OFF' '-DENABLE_ALL_OT=ON' '-DENABLE_SODIUM=ON' '-DENABLE_RELIC=OFF'
Build
'/usr/bin/cmake' '--build' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '--config' 'Release'
CMake Error at thirdparty/fetch.cmake:37 (message):
Build failed (2).
LOG:
[ 0%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaCircuit.cpp.o
[ 1%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Circuit/BetaLibrary.cpp.o
[ 1%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/BitVector.cpp.o
[ 2%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/CLP.cpp.o
[ 3%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/CuckooIndex.cpp.o
In file included from
/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:1:
In static member function ‘static osuCrypto::u64
osuCrypto::CuckooIndex<Mode>::getHash(const osuCrypto::block&, const u8&,
const u64&) [with osuCrypto::CuckooTypes Mode =
osuCrypto::NotThreadSafe]’,
inlined from ‘osuCrypto::CuckooIndex<Mode>::FindResult osuCrypto::CuckooIndex<Mode>::find(const osuCrypto::block&) [with osuCrypto::CuckooTypes Mode = osuCrypto::NotThreadSafe]’ at /home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:541:40:
/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/../cryptoTools/Common/CuckooIndex.h:267:17:
warning: ‘hashes’ may be used uninitialized [-Wmaybe-uninitialized]
267 | u64 h = *(u64*)ptr
| ^
/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:
In member function ‘osuCrypto::CuckooIndex<Mode>::FindResult
osuCrypto::CuckooIndex<Mode>::find(const osuCrypto::block&) [with
osuCrypto::CuckooTypes Mode = osuCrypto::NotThreadSafe]’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/Common/CuckooIndex.cpp:485:14:
note: ‘hashes’ declared here
485 | auto hashes = hashes_
| ^~~~~~
[ 3%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/Defines.cpp.o
[ 4%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/Log.cpp.o
[ 4%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/TestCollection.cpp.o
[ 5%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/Timer.cpp.o
[ 5%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Common/block.cpp.o
[ 6%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/AES.cpp.o
[ 7%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/Blake2.cpp.o
[ 7%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/Curve.cpp.o
[ 8%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/PRNG.cpp.o
[ 8%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/RCurve.cpp.o
[ 9%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/Rijndael256.cpp.o
[ 9%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/SodiumCurve.cpp.o
[ 10%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2b-ref.c.o
[ 11%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2bp-ref.c.o
[ 11%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2s-ref.c.o
[ 12%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2sp-ref.c.o
[ 12%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2xb-ref.c.o
[ 13%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/c/blake2xs-ref.c.o
[ 13%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/sse/blake2b.c.o
[ 14%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/sse/blake2bp.c.o
[ 15%] Building C object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/blake2/sse/blake2xb.c.o
[ 15%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/Channel.cpp.o
[ 16%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/IOService.cpp.o
[ 16%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/IoBuffer.cpp.o
[ 17%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/Session.cpp.o
[ 17%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/SocketAdapter.cpp.o
[ 18%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Network/TLS.cpp.o
[ 19%] Linking CXX static library libcryptoTools.a
[ 19%] Built target cryptoTools
[ 20%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/AES_Tests.cpp.o
[ 21%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/BtChannel_Tests.cpp.o
[ 21%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Circuit_Tests.cpp.o
[ 22%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Circuit_aes_Tests.cpp.o
[ 22%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Common.cpp.o
[ 23%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Cuckoo_Tests.cpp.o
[ 23%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Ecc_Tests.cpp.o
[ 24%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Misc_Tests.cpp.o
[ 25%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/REcc_Tests.cpp.o
[ 25%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/Rijndael256_Tests.cpp.o
[ 26%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/SimpleCuckoo.cpp.o
[ 26%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/UnitTests.cpp.o
[ 27%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/WolfSSL_Tests.cpp.o
[ 27%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/block_Tests.cpp.o
[ 28%] Building CXX object
cryptoTools/tests_cryptoTools/CMakeFiles/tests_cryptoTools.dir/cmakeTests/main.cpp.o
[ 29%] Linking CXX static library libtests_cryptoTools.a
[ 29%] Built target tests_cryptoTools
[ 29%] Building CXX object
cryptoTools/frontend_cryptoTools/CMakeFiles/frontend_cryptoTools.dir/Tutorials/Network.cpp.o
[ 30%] Building CXX object
cryptoTools/frontend_cryptoTools/CMakeFiles/frontend_cryptoTools.dir/main.cpp.o
[ 30%] Building CXX object
cryptoTools/frontend_cryptoTools/CMakeFiles/frontend_cryptoTools.dir/signalHandle.cpp.o
[ 31%] Linking CXX executable frontend_cryptoTools
[ 31%] Built target frontend_cryptoTools
Scanning dependencies of target SimplestOT
[ 32%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/Keccak-simple.c.o
[ 32%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/consts.s.o
[ 33%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/consts4x.s.o
[ 33%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/cpucycles.c.o
[ 34%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_add.c.o
[ 34%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_freeze.s.o
[ 35%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_getparity.c.o
[ 36%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_invert.c.o
[ 36%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_iseq_vartime.c.o
[ 37%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_mul.s.o
[ 37%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_neg.c.o
[ 38%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_nsquare.s.o
[ 38%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_pack.c.o
[ 39%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_pow2523.c.o
[ 40%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_setint.c.o
[ 40%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_square.s.o
[ 41%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_sub.c.o
[ 41%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/fe25519_unpack.c.o
[ 42%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_add.c.o
[ 42%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_add_p1p1.s.o
[ 43%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_dbl_p1p1.s.o
[ 44%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_double.c.o
[ 44%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_lookup.s.o
[ 45%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_lookup_niels.s.o
[ 45%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_nielsadd2.s.o
[ 46%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_p1p1_to_p2.s.o
[ 46%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_p1p1_to_p3.s.o
[ 47%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_pack.c.o
[ 48%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_scalarmult.c.o
[ 48%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_scalarmult_base.c.o
[ 49%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_setneutral.c.o
[ 49%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge25519_unpack.c.o
[ 50%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x.c.o
[ 50%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_add_p1p1.s.o
[ 51%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_double_p1p1.s.o
[ 52%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_lookup.s.o
[ 52%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_lookup_niels.s.o
[ 53%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_niels_add_p1p1.s.o
[ 53%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_pack.c.o
[ 54%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ge4x_unpack_vartime.c.o
[ 54%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x.c.o
/home/omen/Desktop/libPSI/thirdparty/libOTe/thirdparty/SimplestOT/gfe4x.c:150:49:
warning: argument 2 of type ‘const unsigned char[128]’ with mismatched
bound [-Warray-parameter=]
150 | void gfe4x_unpack(gfe4x *r, const unsigned char x[128])
| ~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from
/home/omen/Desktop/libPSI/thirdparty/libOTe/thirdparty/SimplestOT/gfe4x.c:2:
/home/omen/Desktop/libPSI/thirdparty/libOTe/thirdparty/SimplestOT/gfe4x.h:14:28:
note: previously declared as ‘const unsigned char *’
14 | void gfe4x_unpack(gfe4x *, const unsigned char *)
| ^~~~~~~~~~~~~~~~~~~~~
[ 55%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_add.s.o
[ 56%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_getparity.c.o
[ 56%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_iseq_vartime.c.o
[ 57%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_mul.s.o
[ 57%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_nsquare.c.o
[ 58%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_pow2523.c.o
[ 58%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_square.s.o
[ 59%] Building ASM object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/gfe4x_sub.s.o
[ 60%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/network.c.o
[ 60%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_receiver.c.o
[ 61%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_receiver_test.c.o
[ 61%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_sender.c.o
[ 62%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/ot_sender_test.c.o
[ 62%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/randombytes.c.o
[ 63%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/sc25519_from32bytes.c.o
[ 64%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/sc25519_random.c.o
[ 64%] Building C object
thirdparty/SimplestOT/CMakeFiles/SimplestOT.dir/sc25519_window4.c.o
[ 65%] Linking CXX static library libSimplestOT.a
[ 65%] Built target SimplestOT
Scanning dependencies of target KyberOT
[ 65%] Building C object thirdparty/KyberOT/CMakeFiles/KyberOT.dir/kem.c.o
[ 66%] Building C object thirdparty/KyberOT/CMakeFiles/KyberOT.dir/poly.c.o
[ 66%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/polyvec.c.o
[ 67%] Building ASM object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/polyvec_pointwise_acc.s.o
[ 67%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/fips202.c.o
[ 68%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/reduce.c.o
[ 69%] Building ASM object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/cbdeta4.s.o
[ 69%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/cbdref.c.o
[ 70%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/precomp.c.o
[ 70%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/verify.c.o
[ 71%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/indcpa.c.o
[ 71%] Building C object thirdparty/KyberOT/CMakeFiles/KyberOT.dir/kex.c.o
[ 72%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/consts.c.o
[ 73%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/genmatrix.c.o
[ 73%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/fips202x4.c.o
[ 74%] Building ASM object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/ntt.s.o
[ 74%] Building ASM object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/invntt.s.o
[ 75%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/randombytes.c.o
[ 75%] Building C object
thirdparty/KyberOT/CMakeFiles/KyberOT.dir/KyberOT.c.o
[ 76%] Linking C static library libKyberOT.a
[ 76%] Built target KyberOT
[ 76%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/MasnyRindal.cpp.o
[ 77%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/MasnyRindalKyber.cpp.o
[ 77%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/SimplestOT.cpp.o
[ 78%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/naor-pinkas.cpp.o
[ 78%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtReceiver.cpp.o
[ 79%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtSender.cpp.o
[ 80%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtReceiver.cpp.o
[ 80%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtSender.cpp.o
[ 81%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/NcoOtExt.cpp.o
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:
In member function ‘void
osuCrypto::NcoOtExtReceiver::receiveChosen(osuCrypto::u64,
osuCrypto::span<osuCrypto::block>, osuCrypto::span<long unsigned int>,
osuCrypto::PRNG&, osuCrypto::Channel&)’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:120:23:
warning: comparison of integer expressions of different signedness:
‘osuCrypto::i64’ {aka ‘long int’} and
‘nonstd::span_lite::span<osuCrypto::block,
18446744073709551615>::size_type’ {aka ‘long unsigned int’}
[-Wsign-compare]
120 | for (i64 i = 0 i < messages.size() ++i)
| ~~^~~~~~~~~~~~~~~~~
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:133:23:
warning: comparison of integer expressions of different signedness:
‘osuCrypto::i64’ {aka ‘long int’} and
‘nonstd::span_lite::span<osuCrypto::block,
18446744073709551615>::size_type’ {aka ‘long unsigned int’}
[-Wsign-compare]
133 | for (i64 i = 0 i < messages.size() ++i)
| ~~^~~~~~~~~~~~~~~~~
[ 81%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtReceiver.cpp.o
[ 82%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtSender.cpp.o
[ 82%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/RR17/Rr17NcoOtReceiver.cpp.o
[ 83%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/RR17/Rr17NcoOtSender.cpp.o
[ 84%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Tools/LDPC/Mtx.cpp.o
[ 84%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Tools/LDPC/Util.cpp.o
[ 85%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Tools/LinearCode.cpp.o
[ 85%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Tools/SilentPprf.cpp.o
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp: In
function ‘void osuCrypto::interleavedPoints(osuCrypto::span<long unsigned
int>, osuCrypto::u64, osuCrypto::PprfOutputFormat)’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp:224:27:
warning: comparison of integer expressions of different signedness:
‘osuCrypto::i64’ {aka ‘long int’} and
‘nonstd::span_lite::span<long unsigned int,
18446744073709551615>::size_type’ {aka ‘long unsigned int’}
[-Wsign-compare]
224 | for (i64 i = 0 i < points.size() ++i)
| ~~^~~~~~~~~~~~~~~
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp: In
function ‘osuCrypto::u64
osuCrypto::getActivePath(osuCrypto::span<unsigned char>&)’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/Tools/SilentPprf.cpp:233:27:
warning: comparison of integer expressions of different signedness:
‘osuCrypto::i64’ {aka ‘long int’} and
‘nonstd::span_lite::span<unsigned char,
18446744073709551615>::size_type’ {aka ‘long unsigned int’}
[-Wsign-compare]
233 | for (i64 i = 0 i < choiceBits.size() ++i)
| ~~^~~~~~~~~~~~~~~~~~~
[ 86%] Building CXX object libOTe/CMakeFiles/libOTe.dir/Tools/Tools.cpp.o
[ 86%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Tools/bitpolymul.cpp.o
[ 87%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/IknpOtExtReceiver.cpp.o
[ 88%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/IknpOtExtSender.cpp.o
[ 88%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosDotExtReceiver.cpp.o
[ 89%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosDotExtSender.cpp.o
[ 89%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosOtExtReceiver.cpp.o
[ 90%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/KosOtExtSender.cpp.o
[ 90%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/OTExtInterface.cpp.o
[ 91%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtReceiver.cpp.o
[ 92%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtSender.cpp.o
[ 92%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Vole/NoisyVoleReceiver.cpp.o
[ 93%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Vole/NoisyVoleSender.cpp.o
[ 93%] Linking CXX static library liblibOTe.a
[ 93%] Built target libOTe
[ 94%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/AknOt_Tests.cpp.o
[ 94%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/BaseOT_Tests.cpp.o
[ 95%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/Common.cpp.o
[ 96%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/NcoOT_Tests.cpp.o
[ 96%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/OT_Tests.cpp.o
[ 97%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/SilentOT_Tests.cpp.o
[ 97%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/UnitTests.cpp.o
[ 98%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/bitpolymul_Tests.cpp.o
[ 98%] Linking CXX static library liblibOTe_Tests.a
[ 98%] Built target libOTe_Tests
[ 98%] Building CXX object
frontend/CMakeFiles/frontend_libOTe.dir/main.cpp.o
[ 99%] Building CXX object
frontend/CMakeFiles/frontend_libOTe.dir/util.cpp.o
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp: In function
‘void osuCrypto::sync(osuCrypto::Channel&, osuCrypto::Role)’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:71:38:
warning: ‘dummy’ may be used uninitialized [-Wmaybe-uninitialized]
71 | chl.asyncSend(dummy, 1)
| ~~~~~~~~~~~~~^~~~~~~~~~
In file included from
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.h:8,
from /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:1:
/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/../cryptoTools/Network/Channel.h:826:9:
note: by argument 2 of type ‘const unsigned char*’ to ‘typename
std::enable_if<std::is_pod<_Tp>::value, void>::type
osuCrypto::Channel::asyncSend(const T*, osuCrypto::u64) [with T = unsigned
char]’ declared here
826 | Channel::asyncSend(const T* buffT, u64 sizeT)
| ^~~~~~~
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:70:28: note:
‘dummy’ declared here
70 | u8 dummy[1]
| ^~~~~
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp: In function
‘void osuCrypto::senderGetLatency(osuCrypto::Channel&)’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:83:30:
warning: ‘dummy’ may be used uninitialized [-Wmaybe-uninitialized]
83 | chl.asyncSend(dummy, 1)
| ~~~~~~~~~~~~~^~~~~~~~~~
In file included from
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.h:8,
from /home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:1:
/home/omen/Desktop/libPSI/thirdparty/libOTe/cryptoTools/cryptoTools/../cryptoTools/Network/Channel.h:826:9:
note: by argument 2 of type ‘const unsigned char*’ to ‘typename
std::enable_if<std::is_pod<_Tp>::value, void>::type
osuCrypto::Channel::asyncSend(const T*, osuCrypto::u64) [with T = unsigned
char]’ declared here
826 | Channel::asyncSend(const T* buffT, u64 sizeT)
| ^~~~~~~
/home/omen/Desktop/libPSI/thirdparty/libOTe/frontend/util.cpp:81:20: note:
‘dummy’ declared here
81 | u8 dummy[1]
| ^~~~~
[100%] Linking CXX executable frontend_libOTe
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `fe25519_invert':
(.text+0x2200): multiple definition of `fe25519_invert'
../thirdparty/SimplestOT/libSimplestOT.a(fe25519_invert.c.o):fe25519_invert.c:(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_add':
(.text+0x2420): multiple definition of `ge25519_add'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_add.c.o):ge25519_add.c:(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_p1p1_to_p2':
(.text+0x2be0): multiple definition of `ge25519_p1p1_to_p2'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p2.s.o):(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_p1p1_to_p3':
(.text+0x2c30): multiple definition of `ge25519_p1p1_to_p3'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p3.s.o):(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_scalarmult':
(.text+0x4350): multiple definition of `ge25519_scalarmult'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult.c.o):ge25519_scalarmult.c:(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_scalarmult_base':
(.text+0x4ac0): multiple definition of `ge25519_scalarmult_base'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult_base.c.o):ge25519_scalarmult_base.c:(.text+0x0):
first defined here
/usr/bin/ld:
../cryptoTools/cryptoTools/libcryptoTools.a(SodiumCurve.cpp.o): in function
`osuCrypto::Sodium::operator*(osuCrypto::Sodium::Scalar25519 const&,
osuCrypto::Sodium::Monty25519 const&)':
SodiumCurve.cpp:(.text+0x2bf): undefined reference to
`crypto_scalarmult_noclamp'
/usr/bin/ld:
../cryptoTools/cryptoTools/libcryptoTools.a(SodiumCurve.cpp.o): in function
`osuCrypto::Sodium::Monty25519::mulGenerator(osuCrypto::Sodium::Scalar25519
const&)':
SodiumCurve.cpp:(.text+0x2ef): undefined reference to
`crypto_scalarmult_base_noclamp'
collect2: error: ld returned 1 exit status
gmake[2]: *** [frontend/CMakeFiles/frontend_libOTe.dir/build.make:124:
frontend/frontend_libOTe] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:432:
frontend/CMakeFiles/frontend_libOTe.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Call Stack (most recent call first):
thirdparty/getLibOTe.cmake:50 (run)
cmake/findDependancies.cmake:134 (include)
CMakeLists.txt:12 (include)
-- Configuring incomplete, errors occurred!
See also "/home/omen/Desktop/libPSI/out/build/linux/CMakeFiles/CMakeOutput.log".
gmake: Makefile: No such file or directory
gmake: *** No rule to make target 'Makefile'. Stop.
You have an incompatible version of lib sodium installed on your system. You can use your existing version by adding -D SODIUM_MONTGOMERY=false
to the get libOTe file. Or you can use the assumed version of sodium by adding -DFETCH_SODIUM=true
to the get libOTe file.
OK this fix work and code compile. But linker fail on libSimplestOT
python3 build.py -DSODIUM_MONTGOMERY=false
====== build.py (LIBPSI) ========
mkdir -p out/build/linux
cmake -S . -B out/build/linux -DSODIUM_MONTGOMERY=false -DSUDO_FETCH=OFF -DENABLE_ALL_PSI=ON -DFETCH_AUTO=ON -DPARALLEL_FETCH=12 -DCMAKE_BUILD_TYPE=Release
cmake --build out/build/linux --parallel 12
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- fetch options
=======================================================
-- Option: FETCH_AUTO = ON
-- Option: FETCH_SPARSEHASH =
-- Option: FETCH_LIBOTE =
-- General Options
=======================================================
-- Option: CMAKE_BUILD_TYPE = Release
Release
Debug
RELWITHDEBINFO
-- Option: ENABLE_ALL_PSI = ON/OFF
-- PSI protocols
=======================================================
-- Option: ENABLE_DCW_PSI = ON
-- Option: ENABLE_DKT_PSI = ON
-- Option: ENABLE_GRR_PSI = ON
-- Option: ENABLE_RR16_PSI = ON
-- Option: ENABLE_RR17_PSI = ON
-- Option: ENABLE_RR17B_PSI = ON
-- Option: ENABLE_KKRT_PSI = ON
-- Option: ENABLE_ECDH_PSI = ON
-- Option: ENABLE_DRRN_PSI = ON
-- LIBPSI_THIRDPARTY_DIR=/home/omen/Desktop/libPSI/out/install/linux
============= Building sparsehash-c11 =============
Checkout edd6f1180156e76facc1c0449da245208ab39503
'/usr/bin/git' 'checkout' 'edd6f1180156e76facc1c0449da245208ab39503'
log /home/omen/Desktop/libPSI/thirdparty/log-sparsehash-c11.txt
==========================================
SPARSEHASH_INCLUDE_DIRS=/home/omen/Desktop/libPSI/out/install/linux/include
============= Building libOTe =============
Checkout 7d5c13d8c7a8f56a53e3f5909882c114903fb17c
'/usr/bin/git' 'checkout' '7d5c13d8c7a8f56a53e3f5909882c114903fb17c'
submodule
'/usr/bin/git' 'submodule' 'update' '--recursive'
Configure
'/usr/bin/cmake' '-S' '/home/omen/Desktop/libPSI/thirdparty/libOTe' '-B' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '-DCMAKE_INSTALL_PREFIX=/usr/local' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DFETCH_AUTO=ON' '-DVERBOSE_FETCH=OFF' '-DENABLE_ALL_OT=ON' '-DENABLE_SODIUM=ON' '-DENABLE_RELIC=OFF'
Build
'/usr/bin/cmake' '--build' '/home/omen/Desktop/libPSI/thirdparty/libOTe/out/build/linux' '--config' 'Release'
CMake Error at thirdparty/fetch.cmake:37 (message):
Build failed (2).
LOG:
Consolidate compiler generated dependencies of target cryptoTools
[ 0%] Building CXX object
cryptoTools/cryptoTools/CMakeFiles/cryptoTools.dir/Crypto/SodiumCurve.cpp.o
[ 1%] Linking CXX static library libcryptoTools.a
[ 19%] Built target cryptoTools
Consolidate compiler generated dependencies of target tests_cryptoTools
[ 29%] Built target tests_cryptoTools
Consolidate compiler generated dependencies of target frontend_cryptoTools
[ 30%] Linking CXX executable frontend_cryptoTools
[ 31%] Built target frontend_cryptoTools
Scanning dependencies of target SimplestOT
Consolidate compiler generated dependencies of target SimplestOT
[ 65%] Built target SimplestOT
Scanning dependencies of target KyberOT
Consolidate compiler generated dependencies of target KyberOT
[ 76%] Built target KyberOT
Consolidate compiler generated dependencies of target libOTe
[ 76%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/MasnyRindal.cpp.o
[ 76%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/SimplestOT.cpp.o
[ 77%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/Base/naor-pinkas.cpp.o
[ 77%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtReceiver.cpp.o
[ 78%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseK/AknOtSender.cpp.o
[ 79%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtReceiver.cpp.o
[ 79%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Kkrt/KkrtNcoOtSender.cpp.o
[ 80%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/NcoOtExt.cpp.o
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:
In member function ‘void
osuCrypto::NcoOtExtReceiver::receiveChosen(osuCrypto::u64,
osuCrypto::span<osuCrypto::block>, osuCrypto::span<long unsigned int>,
osuCrypto::PRNG&, osuCrypto::Channel&)’:
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:120:23:
warning: comparison of integer expressions of different signedness:
‘osuCrypto::i64’ {aka ‘long int’} and
‘nonstd::span_lite::span<osuCrypto::block,
18446744073709551615>::size_type’ {aka ‘long unsigned int’}
[-Wsign-compare]
120 | for (i64 i = 0 i < messages.size() ++i)
| ~~^~~~~~~~~~~~~~~~~
/home/omen/Desktop/libPSI/thirdparty/libOTe/libOTe/NChooseOne/NcoOtExt.cpp:133:23:
warning: comparison of integer expressions of different signedness:
‘osuCrypto::i64’ {aka ‘long int’} and
‘nonstd::span_lite::span<osuCrypto::block,
18446744073709551615>::size_type’ {aka ‘long unsigned int’}
[-Wsign-compare]
133 | for (i64 i = 0 i < messages.size() ++i)
| ~~^~~~~~~~~~~~~~~~~
[ 80%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtReceiver.cpp.o
[ 81%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/NChooseOne/Oos/OosNcoOtSender.cpp.o
[ 81%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/OTExtInterface.cpp.o
[ 82%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtReceiver.cpp.o
[ 83%] Building CXX object
libOTe/CMakeFiles/libOTe.dir/TwoChooseOne/SilentOtExtSender.cpp.o
[ 83%] Linking CXX static library liblibOTe.a
[ 93%] Built target libOTe
Consolidate compiler generated dependencies of target libOTe_Tests
[ 94%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/AknOt_Tests.cpp.o
[ 94%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/BaseOT_Tests.cpp.o
[ 95%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/NcoOT_Tests.cpp.o
[ 95%] Building CXX object
libOTe_Tests/CMakeFiles/libOTe_Tests.dir/OT_Tests.cpp.o
[ 95%] Linking CXX static library liblibOTe_Tests.a
[ 98%] Built target libOTe_Tests
Consolidate compiler generated dependencies of target frontend_libOTe
[ 98%] Building CXX object
frontend/CMakeFiles/frontend_libOTe.dir/main.cpp.o
[ 99%] Linking CXX executable frontend_libOTe
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `fe25519_invert':
(.text+0x2200): multiple definition of `fe25519_invert'
../thirdparty/SimplestOT/libSimplestOT.a(fe25519_invert.c.o):fe25519_invert.c:(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_add':
(.text+0x2420): multiple definition of `ge25519_add'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_add.c.o):ge25519_add.c:(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_p1p1_to_p2':
(.text+0x2be0): multiple definition of `ge25519_p1p1_to_p2'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p2.s.o):(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_p1p1_to_p3':
(.text+0x2c30): multiple definition of `ge25519_p1p1_to_p3'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_p1p1_to_p3.s.o):(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_scalarmult':
(.text+0x4350): multiple definition of `ge25519_scalarmult'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult.c.o):ge25519_scalarmult.c:(.text+0x0):
first defined here
/usr/bin/ld:
/usr/lib/x86_64-linux-gnu/libsodium.a(libsodium_la-ed25519_ref10.o): in
function `ge25519_scalarmult_base':
(.text+0x4ac0): multiple definition of `ge25519_scalarmult_base'
../thirdparty/SimplestOT/libSimplestOT.a(ge25519_scalarmult_base.c.o):ge25519_scalarmult_base.c:(.text+0x0):
first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [frontend/CMakeFiles/frontend_libOTe.dir/build.make:124:
frontend/frontend_libOTe] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:432:
frontend/CMakeFiles/frontend_libOTe.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
Call Stack (most recent call first):
thirdparty/getLibOTe.cmake:50 (run)
cmake/findDependancies.cmake:134 (include)
CMakeLists.txt:12 (include)
I suspect it's for OTe use outdated version. But on most recent branch don´t compile.
Pls, check and reply.