bls-signatures icon indicating copy to clipboard operation
bls-signatures copied to clipboard

linker error on bls/main

Open PastaPastaPasta opened this issue 3 years ago • 6 comments

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

PastaPastaPasta avatar Dec 19 '21 17:12 PastaPastaPasta

What linux flavor/version are you compiling on? thanks!

wjblanke avatar Dec 21 '21 18:12 wjblanke

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

PastaPastaPasta avatar Dec 21 '21 19:12 PastaPastaPasta

'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.'

github-actions[bot] avatar Jan 05 '22 11:01 github-actions[bot]

@AmineKhaldi were you able to replicate?

PastaPastaPasta avatar Jan 10 '22 15:01 PastaPastaPasta

@PastaPastaPasta I believe so. I'll notify you with something to test. Thanks for the report!

AmineKhaldi avatar Jan 11 '22 17:01 AmineKhaldi

@PastaPastaPasta Could you please test PR #307? Thanks!

AmineKhaldi avatar Jan 17 '22 20:01 AmineKhaldi

Closing old issue

emlowe avatar Feb 02 '23 20:02 emlowe