# Error rebuilding Julia v0.7 sysimg in macOS

**URL:** https://discourse.julialang.org/t/error-rebuilding-julia-v0-7-sysimg-in-macos/10876
**Category:** New to Julia
**Created:** [May 14, 2018, 12:13am UTC](https://discourse.julialang.org/t/error-rebuilding-julia-v0-7-sysimg-in-macos/10876 "2018-05-14T00:13:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)
#### Post date: [May 14, 2018, 12:13am UTC](https://discourse.julialang.org/t/error-rebuilding-julia-v0-7-sysimg-in-macos/10876/1 "2018-05-14T00:13:59Z")

</div>

Hi guys!

I am trying to rebuild Julia 0.7 sysimg in macOS because I want to try to modify something at `Base`. I am building the image using the following command (with no changes):

```julia
/Applications/Julia-0.7.app/Contents/Resources/julia/bin/julia build_sysimg.jl /tmp/sys --force

```

Then, I try to run julia with the new image using:

```julia
/Applications/Julia-0.7.app/Contents/Resources/julia/bin/Julia -J /tmp/sys.dylib

```

But I am seeing this error:

```julia
ERROR: System image file failed consistency check: maybe opened the wrong version?

```

The same process works fine with v0.6. Does anyone know what I am doing wrong?

---

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [May 21, 2018, 6:32am UTC](https://discourse.julialang.org/t/error-rebuilding-julia-v0-7-sysimg-in-macos/10876/2 "2018-05-21T06:32:07Z")

</div>

I have the same issue on fedora

```julia
INFO: cc -L/work/fredrikb/julia7/bin/../lib -shared -ljulia -o /work/fredrikb/julia7/lib/julia/sys.so /work/fredrikb/julia7/lib/julia/sys.o
INFO: System image successfully built at /work/fredrikb/julia7/lib/julia/sys.so
INFO: Julia will automatically load this system image at next startup.

bash ~> julia7
ERROR: System image file failed consistency check: maybe opened the wrong version?

bash ~> julia7 -J /work/fredrikb/julia7/lib/julia/sys.so
ERROR: System image file failed consistency check: maybe opened the wrong version?

```

---

<div class="post-metadata">

### Author: ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)
#### Post date: [May 21, 2018, 6:04pm UTC](https://discourse.julialang.org/t/error-rebuilding-julia-v0-7-sysimg-in-macos/10876/3 "2018-05-21T18:04:48Z")

</div>

I will try in openSUSE using the official binary. If it fails, then I will open a bug.

Thanks @baggepinnen!
