]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-dep,rpm: use devtools-8 on amd64 27134/head
authorKefu Chai <kchai@redhat.com>
Fri, 22 Mar 2019 17:16:23 +0000 (01:16 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Mar 2019 17:37:00 +0000 (01:37 +0800)
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 <kchai@redhat.com>
ceph.spec.in
install-deps.sh

index 07a1fcb8dc84c4fa6dfb300f7c88ee531e30b765..b511e18b5bea9f44d32c2dcb23500965531cf9a2 100644 (file)
@@ -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
index b1a5219cfca53d5b9a8f90b56eb7d8af236b1f72..1441c51fd736c78e6abc5dbb94949bcbe1cfe4c9 100755 (executable)
@@ -183,11 +183,11 @@ function ensure_decent_gcc_on_rh {
            cat <<EOF
 Your GCC is too old. Please run following command to add DTS to your environment:
 
-scl enable devtoolset-7 bash
+scl enable devtoolset-8 bash
 
 Or add following line to the end of ~/.bashrc to add it permanently:
 
-source scl_source enable devtoolset-7
+source scl_source enable devtoolset-8
 
 see https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/ for more details.
 EOF
@@ -343,7 +343,7 @@ else
                    case $(uname -m) in
                        x86_64)
                            $SUDO yum -y install centos-release-scl
-                           dts_ver=7
+                           dts_ver=8
                            ;;
                        aarch64)
                            $SUDO yum -y install centos-release-scl-rh
@@ -353,8 +353,10 @@ else
                            ;;
                    esac
                 elif test $ID = rhel -a $MAJOR_VERSION = 7 ; then
-                    $SUDO yum-config-manager --enable rhel-server-rhscl-7-rpms
-                    dts_ver=7
+                    $SUDO yum-config-manager \
+                         --enable rhel-server-rhscl-7-rpms \
+                         --enable rhel-7-server-devtools-rpms
+                    dts_ver=8
                 fi
                 ;;
         esac