]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: BuildRequires gcc-toolset-11-libatomic-devel for aarch64
authorKefu Chai <tchaikov@gmail.com>
Thu, 4 Aug 2022 03:57:05 +0000 (11:57 +0800)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 10 Aug 2022 20:46:46 +0000 (16:46 -0400)
to address following failure when generating the building system
using CMake:

```
-- Performing Test HAVE_LIBATOMIC
-- Performing Test HAVE_LIBATOMIC - Failed
CMake Error at cmake/modules/CheckCxxAtomic.cmake:66 (message):
  Host compiler /opt/rh/gcc-toolset-11/root/usr/bin/c++ requires libatomic,
but it is not found
```

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 3811e8835d5dadd006f67f53ea50386a6f98f407)

ceph.spec.in

index c2e45b3a124801df72dbab5d677773f86b10c8a1..75456cf85ff28d9a7007a3e0fcc6fe3471e82457 100644 (file)
@@ -207,6 +207,9 @@ BuildRequires:      gcc-c++ >= 11
 %if 0%{?rhel} >= 8
 BuildRequires: gcc-toolset-11-gcc-c++
 BuildRequires: gcc-toolset-11-build
+%ifarch aarch64
+BuildRequires: gcc-toolset-11-libatomic-devel
+%endif
 %endif
 %if 0%{with tcmalloc}
 # libprofiler did not build on ppc64le until 2.7.90
@@ -327,7 +330,6 @@ BuildRequires:  gcc-toolset-11-annobin
 BuildRequires:  gcc-toolset-11-annobin-plugin-gcc
 BuildRequires:  gcc-toolset-11-libubsan-devel
 BuildRequires:  gcc-toolset-11-libasan-devel
-BuildRequires:  gcc-toolset-11-libatomic-devel
 %endif
 %endif
 #################################################################################