Update GCC for CentOS build (#28059)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28059
ghstack-source-id: 91987332
Test Plan: waitforsandcastle
Differential Revision: D17945780
fbshipit-source-id: 044a0d24837545eab6d637d6cbe644bb694f318f