Hallo,
* James Cowgill [Fri, Aug 18 2017, 05:02:52PM]:
> 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

Thank you. I will try to handcraft a patch for the build system itself
and push it upstream ASAP.

Reminds me on a similar problem with
https://buildd.debian.org/status/fetch.php?pkg=apt-cacher-ng&arch=powerpc&ver=3-5&stamp=1493319231&raw=0
which is confusing, the current solution (detection of libatomic) was
successfull on mips and most other 32-bit arches. Needs a tougher
investigation, apparently.

Best regards,
Eduard.

Reply via email to