Linking of multiple libraries fails with undefined reference
error, eg.:
[ 18%] Linking CXX shared library ../../../lib/libec_isa.so
...
usr/bin/ld: CMakeFiles/ec_isa.dir/ErasureCodeIsa.cc.o: in function `ceph::buffer::v15_2_0::list::list()':
/home/build/tmp/ceph-aur/ceph/src/ceph-17.2.5/src/include/buffer.h:931: undefined reference to `ceph::buffer::v15_2_0::list::always_empty_bptr'
/usr/bin/ld: CMakeFiles/ec_isa.dir/ErasureCodeIsa.cc.o: in function `ErasureCodeIsa::encode_chunks(std::set<int, std::less<int>, std::allocator<int> > const&, std::map<int, ceph::buffer::v15_2_0::list, std::less<int>, std::allocator<std::pair<int const, ceph::buffer::v15_2_0::list> > >*)':
...
I tried to remove already installed ceph
and ceph-libs
packages, but it didn't help. Any ideas?
@insanemal, imho it's good idea to use something like nproc --ignore=1
for number of parallel jobs.
Pinned Comments
pbazaah commented on 2022-10-05 13:03 (UTC) (edited on 2022-10-05 13:03 (UTC) by pbazaah)
For future commenters:
TLDR:
https://aur.archlinux.org/pkgbase/ceph | From source build (slow)
https://aur.archlinux.org/pkgbase/ceph-bin | Pre-built binaries (fast)
Unlike the original community version, this repo builds ceph from source. Ceph is a large, complicated project so this takes several hours on a good build server.
To get a similar experience to how community/ceph worked (pre-built binaries) use ceph-bin instead.