Comments (12)
set VOLE_PSI_PIC
to be true. https://github.com/Visa-Research/volepsi/blob/main/cmake/buildOptions.cmake#L46. i.e.
cmake -DVOLE_PSI_PIC=true ...
or python3 -DVOLE_PSI_PIC=true
from volepsi.
Thank you. I have try to use this way, but report error as follow:
[ 13%] Linking CXX shared library libvolePSI.so
/usr/bin/ld: /home/cc/VOLE/volepsi-main/out/install/linux/lib/libcoproto.a(SocketScheduler.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVSt12system_error@@GLIBCXX_3.4.11' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
On the other hand,I have a problem. I try to set "-fPIC" about sub-library, they have "libOTe.a", "libcrytoTools.a", and "libcoproto.a". I added the instruction ' set _ property ( TARGET XXX PROPERTY POSITION _ INDEPENDENT _ CODE ON ) ' to their cmake file, the libOTe.a and libcrytoTools.a compile success, but the libcoproto.a report same error. why?
from volepsi.
I cleaned up the previous installation using “--clean
” and rebuilt it using “python3 build.py-DCOPROTO _ ENABLE _ BOOST = ON-DCOPROTO _ ENABLE _ OPENSSL = ON-DVOLE _ PSI _ PIC = true
”. A new error occurred, but the error type is the same
/usr/bin/ld: /home/cc/VOLE/volepsi-main/out/install/linux/lib/libbitpolymul.a(bc.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN3bpm6_sh_opE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
from volepsi.
yeah, that one might be a bit tricky. That library has assembly in it and I'm not totally sure if we can set PIC for it. But we can try,
in out/bitpolymul/bitpolymul/CMakeLists.txt
, you can add -fPIC
to the target_compile_options
command. You will then need to delete
out/install
out/libOTe/out/install
and then call python3 build.py
from volepsi.
Cool, your method succeeded. I tried add 'add _ compile _ options ( -fPIC )
' in /bitpolymul/bitpolymul/CMakeLists.txt
, but it was useless. Here, -fPIC
must be added to target _ compile _ options
.
Thank you for your reply
from volepsi.
Great, we can leave this open and when I have time I'll fix this in bitpolymul and close it.
from volepsi.
All right, listen to your arrangement. Thanks again
from volepsi.
ok. the PIC flag should now hopefully work better. Changed the option name to VOLE_PSI_ENABLE_PIC
but i think VOLE_PSI_PIC
should still work. See the readme.
from volepsi.
I want to remove the version number of the library. How to i modify it ? thanks
from volepsi.
I doubt that's what you actually want to do. Why would you want to remove it?
If you really want to know it's in cmake I believe.
from volepsi.
I wrote a new interface in the dynamic library to facilitate my own call. But this requires a link soft link can be done. I know that the library 's version information is in the vole-main / volepsi / cmakelist
file, please forgive me for trying to get lazy. Sorry
from volepsi.
OK, glad you figured it out
from volepsi.
Related Issues (20)
- PaXoS test HOT 2
- How to catch a protocol throw and try-catch in messagePassingExampleRun(). HOT 2
- Question about PSI HOT 5
- build err on Macos HOT 4
- Question about PSI ID data type HOT 2
- About the network socket HOT 2
- bug for networkSocketExample.h HOT 11
- what is the difference between `davies-meyer F` and `avies-meyer-Oseas F` ? HOT 1
- segmentation fault in debug mode HOT 2
- How can I use my boost that have installed in my computer and not download a new one? HOT 1
- question about OKVS HOT 5
- Build Fails on macOS Due to “no template named 'unary_function' in namespace 'std'”
- build error HOT 2
- Question about OKVS in RR22 HOT 6
- how to resolve this question HOT 6
- build error HOT 8
- csv_test failed HOT 9
- warnings and errors HOT 11
- Errors encountered when using paxos to implement OPRF for Low communication in RR22 HOT 4
- fast instantiation or Low communication instantiation? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volepsi.