From 82e742f8eb14c6e6aeee868a4a2b56c6f28fb752 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 6 Apr 2022 17:02:45 -0400 Subject: [PATCH] ceph.spec.in: add gcc-toolset-11-annobin-plugin-gcc gcc-toolset-11-annobin is already installed, but ceph.spec.in adds "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" which needs the gcc plugin too resolves this failure during the cmake configure step: -- Check for working CXX compiler: /opt/rh/gcc-toolset-11/root/usr/bin/c++ -- Check for working CXX compiler: /opt/rh/gcc-toolset-11/root/usr/bin/c++ - broken CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:59 (message): The C++ compiler "/opt/rh/gcc-toolset-11/root/usr/bin/c++" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-11497-gfae772b8/rpm/el8/BUILD/ceph-17.0.0-11497-gfae772b8/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_09421/fast && /usr/bin/gmake -f CMakeFiles/cmTC_09421.dir/build.make CMakeFiles/cmTC_09421.dir/build gmake[1]: Entering directory '/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-11497-gfae772b8/rpm/el8/BUILD/ceph-17.0.0-11497-gfae772b8/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_09421.dir/testCXXCompiler.cxx.o /opt/rh/gcc-toolset-11/root/usr/bin/c++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -o CMakeFiles/cmTC_09421.dir/testCXXCompiler.cxx.o -c /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-11497-gfae772b8/rpm/el8/BUILD/ceph-17.0.0-11497-gfae772b8/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/testCXXCompiler.cxx cc1plus: fatal error: inaccessible plugin file plugin/annobin.so expanded from short plugin name annobin: No such file or directory compilation terminated. Signed-off-by: Casey Bodley (cherry picked from commit 46a1aa48748e0ee7d41a74cad1bc1e611524fe02) --- ceph.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ceph.spec.in b/ceph.spec.in index d975f60e04665..74bad58592ad0 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -331,6 +331,7 @@ BuildRequires: libubsan BuildRequires: libasan %endif %if 0%{?rhel} +BuildRequires: gcc-toolset-11-annobin BuildRequires: gcc-toolset-11-annobin-plugin-gcc BuildRequires: gcc-toolset-11-libubsan-devel BuildRequires: gcc-toolset-11-libasan-devel -- 2.39.5