From: Kefu Chai Date: Mon, 8 Aug 2022 12:40:52 +0000 (+0800) Subject: ceph.spec.in: add libatomic to BuildRequires on fedora X-Git-Tag: v18.0.0~315^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47496%2Fhead;p=ceph.git ceph.spec.in: add libatomic to BuildRequires on fedora otherwise we'd have failures like /opt/compiler-explorer/gcc-trunk-20220808/bin/../lib/gcc/x86_64-linux-gnu/13.0.0/../../../../x86_64-linux-gnu/bin/ld: /tmp/ccVlMbVh.o: in function `std::atomic::store(tagged_ptr, std::memory_order)': /opt/compiler-explorer/gcc-trunk-20220808/include/c++/13.0.0/atomic:273: undefined reference to `__atomic_store_16' when generating the building system using CMake on fedora 36. Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index a75394f00b1a..da00c0d168fd 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -212,6 +212,9 @@ BuildRequires: gcc-toolset-11-build BuildRequires: gcc-toolset-11-libatomic-devel %endif %endif +%if 0%{?fedora} +BuildRequires: libatomic +%endif %if 0%{with tcmalloc} # libprofiler did not build on ppc64le until 2.7.90 %if 0%{?fedora} || 0%{?rhel} >= 8 @@ -330,7 +333,6 @@ BuildRequires: systemtap-sdt-devel %if 0%{?fedora} BuildRequires: libubsan BuildRequires: libasan -BuildRequires: libatomic %endif %if 0%{?rhel} BuildRequires: gcc-toolset-11-annobin