Libfortran not found

Compiling master on a Mac, I get the following error. I guess this is to do with the Fortran version that is installed.

LoadError("sysimg.jl", 406, LoadError("sparse/sparse.jl", 41, LoadError("sparse/umfpack.jl", 61, ErrorException("error compiling anonymous: could not load library \"libsuitesparse_wrapper\"\ndlopen(libsuitesparse_wrapper.dylib, 1): Library not loaded: /usr/local/lib/gcc/5/libgfortran.3.dylib\n  Referenced from: /Users/davidsanders/development/julia-dev/usr/lib//libopenblas64_.dylib\n  Reason: image not found"))))
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***

Here is versioninfo() from RC2:

julia> versioninfo()
Julia Version 0.6.0-rc2.0
Commit 68e911be53 (2017-05-18 02:31 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

Homebrew upgraded gcc underneath you. Do make -C deps distclean-openblas distclean-suitesparse distclean-arpack distclean-openspecfun and rebuild

Thanks; I did make -C deps distcleanall and everything is now fine.