chenzhiangdeMBP:openresty-1.9.15.1 chenzhixiang$ brew install gcc
==> Installing dependencies for gcc: gmp, mpfr, libmpc, isl
==> Installing gcc dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.0.el_capitan.bottle
######################################################################## 100.0%
==> Pouring gmp-6.1.0.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/gmp/6.1.0: 17 files, 3.2M
==> Installing gcc dependency: mpfr
==> Downloading https://homebrew.bintray.com/bottles/mpfr-3.1.4.el_capitan.bottl
######################################################################## 100.0%
==> Pouring mpfr-3.1.4.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/mpfr/3.1.4: 25 files, 3.6M
==> Installing gcc dependency: libmpc
==> Downloading https://homebrew.bintray.com/bottles/libmpc-1.0.3.el_capitan.bot
######################################################################## 100.0%
==> Pouring libmpc-1.0.3.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/libmpc/1.0.3: 11 files, 350.1K
==> Installing gcc dependency: isl
==> Downloading https://homebrew.bintray.com/bottles/isl-0.15.el_capitan.bottle.
######################################################################## 100.0%
==> Pouring isl-0.15.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/isl/0.15: 70 files, 3.6M
==> Installing gcc
Warning: Building gcc from source:
The bottle needs the Xcode CLT to be installed.
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2
==> Downloading from http://mirrors.ustc.edu.cn/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.
######################################################################## 100.0%
==> Patching
patching file gcc/jit/Make-lang.in
patching file gcc/jit/jit-playback.c
Hunk #1 succeeded at 2470 with fuzz 2 (offset 54 lines).
==> ../configure --build=x86_64-apple-darwin15.5.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
==> make install
==> Caveats
GCC has been built with multilib support. Notably, OpenMP may not work:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60670
If you need OpenMP support you may want to
brew reinstall gcc --without-multilib
==> Summary
�� /usr/local/Cellar/gcc/5.3.0: 1,390 files, 254.9M, built in 31 minutes 35 seconds