encryptogroup / ABY

ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation
GNU Lesser General Public License v3.0
464 stars 133 forks source link

compile failed at relic #165

Open tpu01yzx opened 4 years ago

tpu01yzx commented 4 years ago

For relic, cmake . && make && sudo make install works well and find . -name librelic_s.a shows that librelic_s.a is generated well. But in aby cmake . && make produce the following error message:

[ 61%] Building C object extern/ENCRYPTO_utils/extern/relic/src/CMakeFiles/relic_s.dir/low/curve2251-sse/relic_fb_trc_low.c.o [ 62%] Linking C static library ../../../../../lib/librelic_s.a /usr/bin/ar: ../../../../../lib/librelic_s.a: Permission denied extern/ENCRYPTO_utils/extern/relic/src/CMakeFiles/relic_s.dir/build.make:1362: recipe for target 'lib/librelic_s.a' failed make[2]: [lib/librelic_s.a] Error 1 CMakeFiles/Makefile2:212: recipe for target 'extern/ENCRYPTO_utils/extern/relic/src/CMakeFiles/relic_s.dir/all' failed make[1]: [extern/ENCRYPTO_utils/extern/relic/src/CMakeFiles/relic_s.dir/all] Error 2 Makefile:148: recipe for target 'all' failed make: *** [all] Error 2

Do I have to uninstall the relic ? Although in cmake ., it seems that relic is handled well. Is there a solution not to uninstall the relic? Thanks.

-- Configuring RELIC 0.5.0... ...... -- Linker flags: -L/home/share/mpc/aby/extern/ENCRYPTO_utils/extern/relic/src/low/curve2251-sse/ -- Configured /home/share/mpc/aby/extern/ENCRYPTO_utils/extern/relic/include/relic_conf.h.in .......

marsella commented 4 years ago

It says "Permission denied". Have you tried running with sudo?

sudo cmake . && sudo make