Brew with other compiler
If you have problems with installation of an package you can use specified compiler
brew install DESIRED_FORMULA --cc=gcc-7
If you have problems with installation of an package you can use specified compiler
brew install DESIRED_FORMULA --cc=gcc-7