[Pkg-middleware-maintainers] Bug#847976: qpid-proton: FTBFS on mips and mipsel

James Cowgill jcowgill at debian.org
Mon Dec 12 17:46:31 UTC 2016


Source: qpid-proton
Version: 0.14.0-4
Severity: important
Tags: patch

Hi,

qpid-proton FTBFS on mips and mipsel with the error:
> CMakeFiles/mt_broker.dir/mt/epoll_container.cpp.o: In function `std::__atomic_base<unsigned long long>::operator++()':
> /usr/include/c++/6/bits/atomic_base.h:296: undefined reference to `__atomic_fetch_add_8'
> /usr/include/c++/6/bits/atomic_base.h:296: undefined reference to `__atomic_fetch_add_8'
> CMakeFiles/mt_broker.dir/mt/broker.cpp.o: In function `std::__atomic_base<unsigned long long>::fetch_add(unsigned long long, std::memory_order)':
> /usr/include/c++/6/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
> /usr/include/c++/6/bits/atomic_base.h:514: undefined reference to `__atomic_fetch_add_8'
> collect2: error: ld returned 1 exit status
> examples/cpp/CMakeFiles/mt_broker.dir/build.make:127: recipe for target 'examples/cpp/mt_broker' failed

This error is due to the use of 8-byte atomics which are not natively
supported on 32-bit MIPS. To fix this you have to use GCC's libatomic
library which emulates the atomics using locks. I've attached a patch
which fixes this.

Thanks,
James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-atomic.patch
Type: text/x-patch
Size: 968 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-middleware-maintainers/attachments/20161212/0a7b5418/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-middleware-maintainers/attachments/20161212/0a7b5418/attachment.sig>


More information about the Pkg-middleware-maintainers mailing list