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

compile on arm64 error #18

Open
pmpleader opened this issue Mar 20, 2023 · 1 comment
Open

compile on arm64 error #18

pmpleader opened this issue Mar 20, 2023 · 1 comment

Comments

@pmpleader
Copy link

g++ -o Release/bOPRFmain.exe -Wl,-gc-sections -pthread -LRelease -L/root/compile/kkrt16/bark-oprf/Release -L./thirdparty/linux/boost/stage/lib -L./thirdparty/linux/cryptopp -L./thirdparty/linux/miracl/miracl_osmt/source -L./thirdparty/linux/miracl/miracl/source -L./thirdparty/linux/mpir/.libs -L./thirdparty/linux/ntl/src -L./bin/ -Wl,--start-group Release/./bOPRFlib/Common/BitIterator.o Release/./bOPRFlib/Common/BitVector.o Release/./bOPRFlib/Common/ByteStream.o Release/./bOPRFlib/Common/Defines.o Release/./bOPRFlib/Common/Log.o Release/./bOPRFlib/Common/Timer.o Release/./bOPRFlib/Crypto/AES.o Release/./bOPRFlib/Crypto/Commit.o Release/./bOPRFlib/Crypto/PRNG.o Release/./bOPRFlib/Crypto/sha1.o Release/./bOPRFlib/PSI/BopPsiReceiver.o Release/./bOPRFlib/PSI/BopPsiSender.o Release/./bOPRFlib/PSI/CuckooHasher.o Release/./bOPRFlib/PSI/SimpleHasher.o Release/./bOPRFlib/OT/BaseSSOT.o Release/./bOPRFlib/OT/IknpOtExtReceiver4k.o Release/./bOPRFlib/OT/IknpOtExtSender4k.o Release/./bOPRFlib/OT/SSOTReceiver.o Release/./bOPRFlib/OT/SSOTSender.o Release/./bOPRFlib/OT/Base/BaseOT.o Release/./bOPRFlib/OT/Base/naor-pinkas.o Release/./bOPRFlib/OT/Base/PvwBaseOT.o Release/./bOPRFlib/OT/Base/Tools.o Release/./bOPRFlib/OT/Base/Math/bigint.o Release/./bOPRFlib/OT/Base/Math/DMC.o Release/./bOPRFlib/OT/Base/Math/modp.o Release/./bOPRFlib/OT/Base/Math/Zp_Data.o Release/./bOPRFlib/OT/Base/crypto/crypto.o Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o Release/./bOPRFlib/Network/BtAcceptor.o Release/./bOPRFlib/Network/BtChannel.o Release/./bOPRFlib/Network/BtEndpoint.o Release/./bOPRFlib/Network/BtIOService.o Release/./bOPRFlib/Network/Channel.o Release/./bOPRFmain/main.o
-Wl,-Bstatic -lmiracl -lboost_system -lboost_filesystem -lboost_thread -lmpir -lcryptopp -lbOPRF -lmiracl
-Wl,-Bdynamic -lpthread -lrt
-Wl,--as-needed -Wl,--end-group
/usr/bin/ld: Release/./bOPRFlib/OT/Base/BaseOT.o: in function Miracl::Miracl(int, unsigned int)': /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:129: undefined reference to mirsys'
/usr/bin/ld: Release/./bOPRFlib/OT/Base/BaseOT.o: in function _GLOBAL__sub_I__ZN5bOPRF10precision2E': /root/compile/kkrt16/bark-oprf/bOPRFlib/OT/Base/BaseOT.cpp:10: undefined reference to mr_init_threading'
/usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function ecc_num::set_si(int)': /root/compile/kkrt16/bark-oprf/bOPRFlib/OT/Base/crypto/ecc-pk-crypto.cpp:231: undefined reference to convert'
/usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function Big::Big()': /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:173: undefined reference to mirvar'
/usr/bin/ld: /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:173: undefined reference to mirvar' /usr/bin/ld: /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:173: undefined reference to mirvar'
/usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function Big::operator=(int)': /root/compile/kkrt16/bark-oprf/./thirdparty/linux/miracl/miracl/include/big.h:202: undefined reference to convert'
/usr/bin/ld: Release/./bOPRFlib/OT/Base/crypto/ecc-pk-crypto.o: in function ecc_field::init(securitylevel, unsigned char*)': /root/compile/kkrt16/bark-oprf/bOPRFlib/OT/Base/crypto/ecc-pk-crypto.cpp:53: undefined reference to irand'

thanks.

@ladnir
Copy link
Member

ladnir commented Mar 20, 2023

I highly suggest just using libPSI or the newer protocol volepsi

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