Source: encfs
Version: 1.9.2-1
Severity: serious
Tags: sid buster

Hi,

ensfc FTBFS on mips, mipsel and various ports architectures with the error:
> libencfs.so.1.9.2: undefined reference to `__atomic_store_8'
> libencfs.so.1.9.2: undefined reference to `__atomic_fetch_add_8'
> collect2: error: ld returned 1 exit status

This happens because those architectures do not have native 64-bit
atomic instructions and instead call out to libatomic to provide
emulations of them. To allow linking on these architecture you must link
against libatomic.

One option is to add the -latomic to LDFLAGS in the Debian package, or I
could probably come up with a patch to be applied upstream which will
link only on the architectures it's needed.

Note there is an upstream GCC bug about doing all this in the toolchain,
but for the moment it has to be done per package:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358

Thanks,
James

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to