# Error during bootstrap while building Julia 1.2 on macOS Mojave

**URL:** <https://discourse.julialang.org/t/error-during-bootstrap-while-building-julia-1-2-on-macos-mojave/28781>\
**Category:** General Usage\
**Created:** [September 15, 2019, 3:39am UTC](https://discourse.julialang.org/t/error-during-bootstrap-while-building-julia-1-2-on-macos-mojave/28781 "2019-09-15T03:39:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Post date:** [September 15, 2019, 3:39am UTC](https://discourse.julialang.org/t/error-during-bootstrap-while-building-julia-1-2-on-macos-mojave/28781/1 "2019-09-15T03:39:00Z")

</div>

While building Julia 1.2 on macOS Mojave, I get an error during bootstrap:

```julia
$ git checkout release-1.2
Already on 'release-1.2'
Your branch is up to date with 'origin/release-1.2'.
$ make
...
error during bootstrap:
LoadError("sysimg.jl", 16, LoadError("JULIA_DIRECTORY/usr/share/julia/stdlib/v1.2/SuiteSparse/src/SuiteSparse.jl", 24, LoadError("JULIA_DIRECTORY/usr/share/julia/stdlib/v1.2/SuiteSparse/src/umfpack.jl", 66, ErrorException("error compiling top-level scope: could not load library \"libsuitesparse_wrapper\"\ndlopen(libsuitesparse_wrapper.dylib, 1): Library not loaded: @rpath/libgfortran.5.dylib\n Referenced from: JULIA_DIRECTORY/usr/lib/./libopenblas64_.0.3.5.dylib\n Reason: image not found"))))
...

```

where `JULIA_DIRECTORY` refers to the directory where the Julia repository is cloned.

It seems that `make` is trying to use `libgfortran.5.dylib` which came with my `brew`-installed GCC 9, though `OpenBLASBuilder` uses `libgfortran.4.dylib`, as discussed in this issue: [https://github.com/JuliaMath/OpenspecfunBuilder/issues/9](https://github.com/JuliaMath/OpenspecfunBuilder/issues/9). I had a similar problem when I tried to build `Arpack.jl`, and I was able to solve the issue by installing GCC 7 and pointing `DYLD_LIBRARY_PATH` to the directory where `libgfortran.4.dylib` that came with `libgfortran.4.dylib` exists. The same trick doesn’t work for the present problem.

Is there any method to work around this issue and build Julia 1.2? It seems that this issue has been fixed in the later versions of Julia; I can build the `master` branch successfully (version 1.4.0-DEV.142).
