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: v14.2.5~59^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=92a0ea56e9761386f1e8f236ce1b96320bbc6f68;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 (cherry picked from commit 5ae3b06e63dcaceaaafcd6b4afa372eabf867e6c) --- diff --git a/ceph.spec.in b/ceph.spec.in index 73454281575..0445395ea1d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -149,7 +149,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 0a21dfcb635..bc1736b4bbf 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -183,11 +183,11 @@ function ensure_decent_gcc_on_rh { cat <