]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: add libatomic to BuildRequires on fedora
authorKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 12:40:52 +0000 (20:40 +0800)
committerKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 12:40:54 +0000 (20:40 +0800)
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<tagged_ptr>::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 <tchaikov@gmail.com>
ceph.spec.in

index a75394f00b1a4fb3d793cd8e6fdf0a2e9e8ea148..da00c0d168fd53bfafd2a6123ea206e92bbbe1a2 100644 (file)
@@ -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