Hi

Emilio Pozuelo Monfort <[email protected]> writes:

Your package failed to build on mips/el: /usr/bin/ld: CMakeFiles/ceph-mgr.dir/mgr/DaemonServer.cc.o: in function `RefCountedObject::~RefCountedObject()': /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to `__atomic_load_8' /usr/bin/ld: /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to `__atomic_load_8' /usr/bin/ld: CMakeFiles/ceph-mgr.dir/mgr/DaemonServer.cc.o: in function `RefCountedObject::~RefCountedObject()':
You may need to link with -latomic.

As you can see from the rules file the package already links with -latomic by setting it in DEB_LDFLAGS_MAINT_APPEND. The problem is that cmake inserts this option before some of the object files so those don't get linked with libatomic.

I'm working on a fix for this. Do you know which architectures in Debian actually need libatomic? I would like to avoid any unnecessary linking to it.

Gaudenz
--
PGP: 836E 4F81 EFBB ADA7 0852 79BF A97A 7702 BAF9 1EF5

Reply via email to