From ca688751d8aed2d1450ccc99bd59a45973937bf7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 4 Aug 2022 11:57:05 +0800 Subject: [PATCH] ceph.spec.in: BuildRequires gcc-toolset-11-libatomic-devel for aarch64 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 (cherry picked from commit 3811e8835d5dadd006f67f53ea50386a6f98f407) --- ceph.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index c2e45b3a12480..75456cf85ff28 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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 ################################################################################# -- 2.39.5