<p dir="auto">I've just had julia updated from 0.4.0 to 0.4.1 via homebrew and ran the tests just to check before getting too excited and I have attached the test output.</p>
<p dir="auto">I am using a MacBook Air running OS X 10.9.5</p>
<p dir="auto">Model Name:   MacBook Air<br>
Model Identifier: MacBookAir4,1<br>
Processor Name:   Intel Core i7<br>
Processor Speed:  1.8 GHz<br>
Number of Processors: 1<br>
Total Number of Cores:    2<br>
L2 Cache (per Core):  256 KB<br>
L3 Cache: 4 MB<br>
Memory:   4 GB<br>
Boot ROM Version: MBA41.0077.B12<br>
SMC Version (system): 1.74f4</p>
<p dir="auto"><a href="https://github.com/JuliaLang/julia/files/33762/julia0.4.1-test-output.txt">julia0.4.1-test-output.txt</a></p>
<p dir="auto">This is similar to #7269, but there's no apparent resolution there and I have a very difficult machine setup.</p>
<p dir="auto">I'm on Max OSX 10.11.1.  I installed Julia 0.4.1 via the Homebrew formula.  I have Xcode 7.1.1 installed and it has installed the command line tools.</p>
<p dir="auto">When I execute the full test suite: <code class="notranslate">/usr/local/Cellar/julia/0.4.1/bin/julia -e "Base.runtests()"</code>, I get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    From worker 5:       * linalg/matmul         in   9.48 seconds
    From worker 5:       * linalg/schur          in  10.67 seconds
    From worker 5:       * linalg/special        in   3.72 seconds
    From worker 5:       * linalg/eigen          in   7.99 seconds
    From worker 5:       * linalg/bunchkaufman   in   4.58 seconds
    From worker 5:       * linalg/svd            in   5.16 seconds
    From worker 4:       * linalg/dense          in  55.11 seconds
    From worker 3:       * linalg/qr             in  55.64 seconds
    From worker 5:       * linalg/lapack         in  19.66 seconds
    From worker 4:       * linalg/tridiag        in   9.26 seconds
    From worker 3:       * linalg/bidiag         in  14.30 seconds
    From worker 4:       * linalg/pinv           in   7.72 seconds
    From worker 2:       * linalg/triangular     in  95.10 seconds
ERROR: LoadError: On worker 5:
LoadError: error compiling logdet: error compiling mod2pi: could not load library &quot;libopenspecfun&quot;
dlopen(libopenspecfun.dylib, 1): Library not loaded: /usr/local/opt/libgfortran/lib/libgfortran.3.dylib
  Referenced from: /usr/local/Cellar/julia/0.4.1/lib/julia//libopenspecfun.dylib
  Reason: image not found
 [inlined code] from /usr/local/Cellar/julia/0.4.1/share/julia/test/linalg/diagonal.jl:80
 in anonymous at no file:0
 in include_string at loading.jl:266
 in include_from_node1 at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
 [inlined code] from util.jl:179
 in runtests at /usr/local/Cellar/julia/0.4.1/share/julia/test/testdefs.jl:6
 in anonymous at multi.jl:908
 in run_work_thunk at multi.jl:646
 [inlined code] from multi.jl:908
 in anonymous at task.jl:63
while loading /usr/local/Cellar/julia/0.4.1/share/julia/test/linalg/diagonal.jl, in expression starting on line 12
while loading /usr/local/Cellar/julia/0.4.1/share/julia/test/runtests.jl, in expression starting on line 13
    From worker 5:       * linalg/diagonal      ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
including error messages above and the output of versioninfo():
Julia Version 0.4.1
Commit cbe1bee* (2015-11-08 10:33 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.0.0)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

 in error at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
 in runtests at interactiveutil.jl:411
 in runtests at interactiveutil.jl:400
 in process_options at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib"><pre class="notranslate"><code class="notranslate">    From worker 5:       * linalg/matmul         in   9.48 seconds
    From worker 5:       * linalg/schur          in  10.67 seconds
    From worker 5:       * linalg/special        in   3.72 seconds
    From worker 5:       * linalg/eigen          in   7.99 seconds
    From worker 5:       * linalg/bunchkaufman   in   4.58 seconds
    From worker 5:       * linalg/svd            in   5.16 seconds
    From worker 4:       * linalg/dense          in  55.11 seconds
    From worker 3:       * linalg/qr             in  55.64 seconds
    From worker 5:       * linalg/lapack         in  19.66 seconds
    From worker 4:       * linalg/tridiag        in   9.26 seconds
    From worker 3:       * linalg/bidiag         in  14.30 seconds
    From worker 4:       * linalg/pinv           in   7.72 seconds
    From worker 2:       * linalg/triangular     in  95.10 seconds
ERROR: LoadError: On worker 5:
LoadError: error compiling logdet: error compiling mod2pi: could not load library "libopenspecfun"
dlopen(libopenspecfun.dylib, 1): Library not loaded: /usr/local/opt/libgfortran/lib/libgfortran.3.dylib
  Referenced from: /usr/local/Cellar/julia/0.4.1/lib/julia//libopenspecfun.dylib
  Reason: image not found
 [inlined code] from /usr/local/Cellar/julia/0.4.1/share/julia/test/linalg/diagonal.jl:80
 in anonymous at no file:0
 in include_string at loading.jl:266
 in include_from_node1 at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
 [inlined code] from util.jl:179
 in runtests at /usr/local/Cellar/julia/0.4.1/share/julia/test/testdefs.jl:6
 in anonymous at multi.jl:908
 in run_work_thunk at multi.jl:646
 [inlined code] from multi.jl:908
 in anonymous at task.jl:63
while loading /usr/local/Cellar/julia/0.4.1/share/julia/test/linalg/diagonal.jl, in expression starting on line 12
while loading /usr/local/Cellar/julia/0.4.1/share/julia/test/runtests.jl, in expression starting on line 13
    From worker 5:       * linalg/diagonal      ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
including error messages above and the output of versioninfo():
Julia Version 0.4.1
Commit cbe1bee* (2015-11-08 10:33 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.0.0)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

 in error at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
 in runtests at interactiveutil.jl:411
 in runtests at interactiveutil.jl:400
 in process_options at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
 in _start at /usr/local/Cellar/julia/0.4.1/lib/julia/sys.dylib
</code></pre></div>
<p dir="auto">When I search my entire system for "libopenspecfun", it is found in these places:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/Cellar/julia/0.4.0/lib/julia/libopenspecfun.dylib
/usr/local/Cellar/julia/0.4.0/lib/julia/libopenspecfun.dylib.1
/usr/local/Cellar/julia/0.4.0/lib/julia/libopenspecfun.dylib.1.0
/usr/local/Cellar/julia/0.4.1/lib/julia/libopenspecfun.dylib
/usr/local/Cellar/julia/0.4.1/lib/julia/libopenspecfun.dylib.1
/usr/local/Cellar/julia/0.4.1/lib/julia/libopenspecfun.dylib.1.0"><pre class="notranslate"><code class="notranslate">/usr/local/Cellar/julia/0.4.0/lib/julia/libopenspecfun.dylib
/usr/local/Cellar/julia/0.4.0/lib/julia/libopenspecfun.dylib.1
/usr/local/Cellar/julia/0.4.0/lib/julia/libopenspecfun.dylib.1.0
/usr/local/Cellar/julia/0.4.1/lib/julia/libopenspecfun.dylib
/usr/local/Cellar/julia/0.4.1/lib/julia/libopenspecfun.dylib.1
/usr/local/Cellar/julia/0.4.1/lib/julia/libopenspecfun.dylib.1.0
</code></pre></div>
<p dir="auto">Searching for libgfortran shows up:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/admin/.julia/v0.4/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliadeps/libgfortran.rb
/Users/admin/.pyenv/versions/intrinsicenv/lib/python3.4/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin15.0.0/5.2.0/i386/libgfortranbegin.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin15.0.0/5.2.0/libgfortranbegin.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.3.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.spec
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.3.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.spec
/usr/local/lib/python2.7/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
/usr/local/lib/python3.4/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
/usr/local/lib/python3.5/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib"><pre class="notranslate"><code class="notranslate">/Users/admin/.julia/v0.4/Homebrew/deps/usr/Library/Taps/staticfloat/homebrew-juliadeps/libgfortran.rb
/Users/admin/.pyenv/versions/intrinsicenv/lib/python3.4/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin15.0.0/5.2.0/i386/libgfortranbegin.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/gcc/x86_64-apple-darwin15.0.0/5.2.0/libgfortranbegin.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.3.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/i386/libgfortran.spec
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.3.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.a
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.dylib
/usr/local/Cellar/gcc/5.2.0/lib/gcc/5/libgfortran.spec
/usr/local/lib/python2.7/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
/usr/local/lib/python3.4/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
/usr/local/lib/python3.5/site-packages/scipy/.dylibs/libgfortran.2.0.0.dylib
</code></pre></div>
<p dir="auto">Although it is installed with Homebrew's GCC, it doesn't appear to be at <code class="notranslate">/usr/local/opt/libgfortran/</code> where Julia is looking for it.</p>
<p dir="auto"><code class="notranslate">echo $LD_LIBRARY_PATH</code> gives the path of a single output directory in one of my projects:<br>
<code class="notranslate">/local/dev/my-proj/build/release:</code></p>
<p dir="auto">Note that the basic suite of tests succeeded: <code class="notranslate">brew test -v julia</code>.</p>
<p dir="auto">I tried <code class="notranslate">brew reinstall gcc</code> but that didn't help.</p>
<p dir="auto">Finally, I did a <code class="notranslate">brew update; brew rm -f julia; brew install julia</code>, but that didn't help either.</p>
<p dir="auto">I initially posted this as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116864471" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/13980" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/13980/hovercard" href="https://github.com/JuliaLang/julia/issues/13980">JuliaLang/julia#13980</a>, but it looks like this is a better place for it.</p>