wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
518 stars 75 forks source link

pip3 install plyvel failed on Ubuntu 20.04 on Raspberry Pi 4B #128

Open DevelopDaily opened 3 years ago

DevelopDaily commented 3 years ago

First of all, pip3 install plyvel works perfectly on Ubuntu 20.04, say, on AMD CPU.

When I install that on a Raspberry Pi 4B, running Ubuntu, the installation fail with these error messages:

aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.8/plyvel/_plyvel.o build/temp.linux-aarch64-3.8/plyvel/comparator.o -lleveldb -o build/lib.linux-aarch64-3.8/plyvel/_plyvel.cpython-38-aarch64-linux-gnu.so

/usr/bin/ld: /usr/local/lib/libleveldb.a(db_impl.cc.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZTVN7leveldb12SnapshotImplE' which may bind externally can not be used when making a shared object; recompile with -fPIC
  /usr/local/lib/libleveldb.a(db_impl.cc.o): in function `leveldb::DBImpl::GetSnapshot()':
  db_impl.cc:(.text+0x288): dangerous relocation: unsupported relocation

Could you please help?

Thanks.