Update GCC for centos CI builds (#28018)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28018
We need a newer GCC, GCC 4 is discontinued.
ghstack-source-id: 91953133
Test Plan: waitforsandcastle
Differential Revision: D17935286
fbshipit-source-id: 12f584d4a240453c62a854438b8579c1cbfd1e94