It's a hard time to make gccemacs work on MacOS catalina. I've met countless problems by following every tutorials I can get from google. Fortunately I finally get it work!
Hope this tutorial could help you.
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
Edit gcc.rb like this