bls-signatures
bls-signatures copied to clipboard
linker error on bls/main
I have followed the build documentation in README.md
mkdir build
cd build
cmake ../
cmake --build . -- -j 6 -Wdev
However, I am getting the following linker error on latest main.
pasta$ cmake --build . -- -j 6 -Wdev
[ 0%] Built target arith_objs
[ 12%] Built target sodium
[ 97%] Built target relic_s
[ 98%] Built target bls
[ 98%] Built target runbench
[100%] Built target runtest
[100%] Linking CXX shared module blspy.cpython-39-x86_64-linux-gnu.so
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgmp.a(tal-reent.o): warning: relocation against `__gmp_allocate_func' in read-only section `.text'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgmp.a(gcdext_lehmer.o): relocation R_X86_64_PC32 against symbol `__gmpn_gcdext_hook' 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
gmake[2]: *** [python-bindings/CMakeFiles/blspy.dir/build.make:107: python-bindings/blspy.cpython-39-x86_64-linux-gnu.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:408: python-bindings/CMakeFiles/blspy.dir/all] Error 2
gmake: *** [Makefile:149: all] Error 2
What linux flavor/version are you compiling on? thanks!
OS: Ubuntu 21.10 x86_64 Kernel: 5.13.0-22-generic gcc version 11.2.0 (Ubuntu 11.2.0-7ubuntu2) GNU ld (GNU Binutils for Ubuntu) 2.37
'This issue has been flagged as stale as there has been no activity on it in 14 days. If this issue is still affecting you and in need of review, please update it to keep it open.'
@AmineKhaldi were you able to replicate?
@PastaPastaPasta I believe so. I'll notify you with something to test. Thanks for the report!
@PastaPastaPasta Could you please test PR #307? Thanks!
Closing old issue