From 690dccd25703d4afc87e5edceb74697a8ffcf2d6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 8 Aug 2022 20:40:52 +0800 Subject: [PATCH] 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 (cherry picked from commit 7e122341d901c7bf02d388d69058c167626d55b0) --- ceph.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 7686c01841e61..d975f60e04665 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -214,6 +214,9 @@ BuildRequires: gcc11-c++ BuildRequires: gcc-c++ %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 @@ -326,7 +329,6 @@ BuildRequires: systemtap-sdt-devel %if 0%{?fedora} BuildRequires: libubsan BuildRequires: libasan -BuildRequires: libatomic %endif %if 0%{?rhel} BuildRequires: gcc-toolset-11-annobin-plugin-gcc -- 2.39.5