From 5ae3b06e63dcaceaaafcd6b4afa372eabf867e6c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 23 Mar 2019 01:16:23 +0800 Subject: [PATCH] install-dep,rpm: use devtools-8 on amd64 seems devtools-8 is not packaged on aarch64. and we are suffering from ICE on centos7 when building with GCC-7.3. so let's try GCC-8.2! Fixes: http://tracker.ceph.com/issues/38892 Signed-off-by: Kefu Chai --- ceph.spec.in | 4 ++++ install-deps.sh | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 07a1fcb8dc8..b511e18b5be 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -146,7 +146,11 @@ BuildRequires: fuse-devel %if 0%{?rhel} == 7 # devtoolset offers newer make and valgrind-devel, but the old ones are good # enough. +%ifarch x86_64 +BuildRequires: devtoolset-8-gcc-c++ >= 8.2.1 +%else BuildRequires: devtoolset-7-gcc-c++ >= 7.3.1-5.13 +%endif %else BuildRequires: gcc-c++ %endif diff --git a/install-deps.sh b/install-deps.sh index b1a5219cfca..1441c51fd73 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -183,11 +183,11 @@ function ensure_decent_gcc_on_rh { cat <