Skip to content

Commit e4f5224

Browse files
smessmerfacebook-github-bot
authored andcommitted
Revert D17935286: Update GCC for centos CI builds
Test Plan: revert-hammer Differential Revision: D17935286 Original commit changeset: 12f584d4a240 fbshipit-source-id: ecc49bbf1d6f78752bdb834b8a1b145a359c8240
1 parent 59cd0fa commit e4f5224

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.jenkins/caffe2/build.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ set -ex
44

55
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
66

7-
if [[ "$BUILD_ENVIRONMENT" == *centos7* ]]; then
8-
# CentOS has gcc 4 but we need a newer compiler. Upgrade it.
9-
sudo yum install -y centos-release-scl
10-
sudo yum install -y devtoolset-7\*
11-
sudo yum install -y scl-utils
12-
13-
source scl_source enable devtoolset-7
14-
gcc --version
7+
# TODO: Migrate all centos jobs to use proper devtoolset
8+
if [[ "$BUILD_ENVIRONMENT" == *py2-cuda9.0-cudnn7-centos7* ]]; then
9+
# There is a bug in pango packge on Centos7 that causes undefined
10+
# symbols, upgrading glib2 to >=2.56.1 solves the issue. See
11+
# https://bugs.centos.org/view.php?id=15495
12+
sudo yum install -y -q glib2-2.56.1
1513
fi
1614

1715
# CMAKE_ARGS are only passed to 'cmake' and the -Dfoo=bar does not work with

0 commit comments

Comments
 (0)