I need to test a C++ project build on OSX using a modern GCC. I selected OS X 10.14 (osx_image: xcode9.4) for testing. I’m having trouble installing GCC using Brew. A failed setup can be found at 768581004.
I have the following in my before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# We need to test modern GCC and -Wa,-q
brew update && brew install gcc
fi
Attempting to install GCC results in an error “Error: gcc 9.3.0 is already installed”. GCC was not installed before brew update && brew install gcc. I am not sure why it is failing with “GCC is already installed”.
Check the raw log to see why that is. It fails at update stage so --quiet as no effect.
And it’s ultimately because you ignored the advice to move to a newer OSX.
If you don’t like Homebrew, don’t use it, no-one forces you to…