Bug#866107: jack-capture: FTBFS on mips, mipsel: undefined reference to `__atomic_load_8'

James Cowgill jcowgill at debian.org
Tue Jun 27 11:47:06 UTC 2017


Source: jack-capture
Version: 0.9.73-1
Severity: serious
Tags: sid buster

Hi,

jack-capture FTBFS on mips, mipsel and various ports architectures with
the error:
> /tmp/ccZYp8m1.o: In function `print_console':
> ./jack_capture.c:721: undefined reference to `__atomic_load_8'
> ./jack_capture.c:721: undefined reference to `__atomic_load_8'
> /tmp/ccZYp8m1.o: In function `process':
> ./jack_capture.c:1723: undefined reference to `__atomic_load_8'
> ./jack_capture.c:1728: undefined reference to `__atomic_fetch_add_8'
> ./jack_capture.c:1730: undefined reference to `__atomic_load_8'
> ./jack_capture.c:1742: undefined reference to `__atomic_fetch_add_8'
> ./jack_capture.c:1723: undefined reference to `__atomic_load_8'
> ./jack_capture.c:1723: undefined reference to `__atomic_load_8'
> ./jack_capture.c:1728: undefined reference to `__atomic_fetch_add_8'
> ./jack_capture.c:1730: undefined reference to `__atomic_load_8'
> ./jack_capture.c:1742: undefined reference to `__atomic_fetch_add_8'
> ./jack_capture.c:1723: undefined reference to `__atomic_load_8'
> collect2: error: ld returned 1 exit status

This is because jack-capture uses 64-bit atomics which requires the use
of the libatomic helper library on some architectures.

The simple fix is to add "-latomic" to DEB_LDFLAGS_MAINT_APPEND like this:
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -latomic

Alternatively you could add the library to the LINKFLAGS variable in the
upstream Makefile.

Thanks,
James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20170627/df00acb2/attachment-0001.sig>


More information about the pkg-multimedia-maintainers mailing list