From: Kefu Chai Date: Fri, 22 Mar 2019 17:16:23 +0000 (+0800) Subject: install-dep,rpm: use devtools-8 on amd64 X-Git-Tag: v15.0.0~96^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ae3b06e63dcaceaaafcd6b4afa372eabf867e6c;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 07a1fcb8dc84..b511e18b5bea 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 b1a5219cfca5..1441c51fd736 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -183,11 +183,11 @@ function ensure_decent_gcc_on_rh { cat <