I recently upgraded xcode command line tools to version 2384. After this I decided to reinstall gcc which was installed with homebrew. Installation completed with no errors