Mac OS - Error with homebrew when trying to build package (HDF5/MAT)

Im trying to build the HDF5 and MAT package but get the error as in the picture. Im using Julia 0.6.4. The error seems to be related to homebrew. It just stops here, with ==> make, and then nothing happens.

It’s compiling gcc(took about 2 hours on my machine), was your machine roaring?

Ok! Yes it does, I turned it off after about an hour. But thanks, I’ll try again!

It’s the infamous GCC build bug (it should just download the binaries instead of compiling them). There’s a lot of issues about it around, but no very clear solution so far:

Ok, thank you! For some reason it worked today, without changing anything. So, the problem is now solved. (At least in my case).