Comments (8)
Make sure that you have SHLIB=on
in the build configuration, otherwise a shared library will not be built.
from relic.
I set the SHLIB=on in the build configuration, then I get the following error:
/usr/bin/ld: /usr/local/lib/libgmp.a(realloc.o): warning: relocation against __gmp_reallocate_func' in read-only section
.text'
/usr/bin/ld: /usr/local/lib/libgmp.a(lt4-clear.o): relocation R_X86_64_PC32 against symbol `__gmp_free_func' 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
make[2]: *** [src/CMakeFiles/relic.dir/build.make:4738: lib/librelic.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: src/CMakeFiles/relic.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
from relic.
I believe you need libgmp.so (a shared library for GMP)
from relic.
I have the libgmp.so in the /usr/local/lib, but compile still reports the above error
from relic.
from relic.
Thanks for your help. I solved the problem.
from relic.
I modify the gmp.cmake as follows:
if(STBIN)
find_library(GMP_LIBRARIES NAMES libgmp.so gmp.lib libgmp-10 libgmp gmp)
else(STBIN)
find_library(GMP_LIBRARIES NAMES libgmp.a gmp.lib libgmp-10 libgmp gmp)
endif(STBIN)
After that, the above error has been solved. But, I meet a new error as follows.
/usr/bin/ld: cannot find -lgcc_s: No such file or directory
/usr/bin/ld: cannot find -lgcc_s: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/relic.dir/build.make:4738: lib/librelic.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: src/CMakeFiles/relic.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
from relic.
Oh that means your toolchain has problems linking (static) binaries. It's not related to RELIC or GMP anymore :(
from relic.
Related Issues (20)
- can not deduce the macro WSIZE on Apple M2 HOT 4
- BLS signatures with point compression HOT 2
- Want to use BN_254 curve HOT 1
- Build failure since recent commit HOT 1
- Compile failure on recent master HOT 4
- Compiling on M1 Mac HOT 1
- Compile Failue with x64-ecc-128 preset HOT 3
- cmake error the target not found HOT 2
- Homegaming HOT 1
- Leak the Secret Key of BBS Short Signature in Relic via Rowhammer HOT 4
- /demo/ers-etrs code running error HOT 3
- `bn_gcd_ext_binar` returns different Bezout coefficients HOT 2
- Problem while compiling HOT 12
- Error generating lib file HOT 2
- Alerts for errors HOT 4
- ep_curve_set_map() HOT 13
- How to flexibly utilize bilinear mappings? HOT 29
- ERROR in bn_mod_basic(); HOT 2
- Error on sha256 HOT 6
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 relic.