can not be used when making a shared object; recompile with -fPIC
阿新 • • 發佈:2019-01-09
錯誤資訊
/usr/bin/ld: crypto/libraven_crypto.a(crypto_libraven_crypto_a-blake.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC crypto/libraven_crypto.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status Makefile:3835: recipe for target 'ravend' failed make[2]: *** [ravend] Error 1 make[2]: Leaving directory '/home/mymuzk/compil/Ravencoin/src' Makefile:9947: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/mymuzk/compil/Ravencoin/src' Makefile:747: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1
解決方法:
make clean
./configure CFLAGS=-fPIC CXXFLAGS=-fPIC
然後重新編譯就好了