I came across this question with the same problem -
brew tap homebrew/science brew install opencv
started installing a bunch of dependencies that worked fine before gcc started, where I got:
==> Installing homebrew/science/opencv dependency: gcc ==> Downloading http://ftpmirror.gnu.org/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2 ==> Downloading from http://gnu.mirror.iweb.com/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2 100.0% ==> Patching patching file gcc/jit/Make-lang.in patching file gcc/jit/jit-playback.c Hunk
This process lasted 3 hours before I got angry and killed him.
Solution: Use a brew bottle: brew install gcc --force-bottle . It works, but gives the following warning:
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
I have not encountered OpenMP problems yet. Hope this helps someone else. Launching MBP 13 "(end 2011) with OSX El Capitain. (It's old, which probably explains the long-running make s). Subscribe to @IanLancaster for a solution first, but I thought I would deal with the reservations in detail.
source share