Package: libboost-atomic-dev
Version: 1.67.0.1
Severity: important
Tags: upstream
Dear Maintainer,
compilation of a code with clang-7 with option -march=native (on Haswell
architecture) or -march=haswell causes the compilation to fail with the
following error message:
In file included from /usr/include/boost/atomic.hpp:12:
In file included from /usr/include/boost/atomic/atomic.hpp:20:
In file included from /usr/include/boost/atomic/fences.hpp:21:
In file included from /usr/include/boost/atomic/detail/operations.hpp:17:
In file included from
/usr/include/boost/atomic/detail/operations_lockfree.hpp:21:
In file included from
/usr/include/boost/atomic/detail/ops_gcc_atomic.hpp:24:
/usr/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp:408:16: error:
address argument to atomic builtin cannot be const-qualified ('const
volatile
boost::atomics::detail::gcc_dcas_x86_64::storage_type *' (aka
'const volatile unsigned __int128 *') invalid)
return __sync_val_compare_and_swap(&storage, value, value);
This bug was already reported to the upstream:
https://github.com/boostorg/atomic/issues/15
The minimal code reproducing the issue (see the bug report) is:
echo '#include <boost/log/utility/setup.hpp>' > /tmp/a.cpp && clang++ -c
-march=haswell /tmp/a.cpp
And has already a stand-alone patch fixing the issue in the upstream:
https://github.com/boostorg/atomic/commit/6e14ca24dab50ad4c1fa8c27c7dd6f1cb791b534
Application of this patch to the Debian version of the boost fixes the
aforementioned issue.
Would it be possible to include the patch into Debian standard
installation for buster release?
Thank you in advance
Jirka
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (990, 'testing'), (300, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libboost-atomic-dev depends on:
ii libboost-atomic1.67-dev 1.67.0-13
libboost-atomic-dev recommends no packages.
libboost-atomic-dev suggests no packages.
-- no debconf information