Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile a customized sysimg with julia 0.7 #27201

Closed
ronisbr opened this issue May 22, 2018 · 10 comments
Closed

Cannot compile a customized sysimg with julia 0.7 #27201

ronisbr opened this issue May 22, 2018 · 10 comments

Comments

@ronisbr
Copy link
Sponsor Member

ronisbr commented May 22, 2018

Hi guys!

I am trying to compile a customized sysimg with julia 0.7 but I am getting an error. I am just trying to recompile the image (nothing on usrimg.jl) and, when I try to load it, I see:

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

This is happening on macOS and Linux using the nightly build available on the website. In discourse, another person also saw this problem:

https://discourse.julialang.org/t/error-rebuilding-julia-v0-7-sysimg-in-macos/10876/2

@fredrikekre
Copy link
Member

I am just trying to recompile the image

How are you doing this?

@ronisbr
Copy link
Sponsor Member Author

ronisbr commented May 22, 2018

I am using this command:

julia ./build_sysimg.jl /home/ronan.arraes/tmp/ core2 --force

In this case, julia is the v0.7 and I am at the share/julia/ directory. The same command works perfectly in v0.6.

@baggepinnen
Copy link
Contributor

I see the same in fedora on nightly using the function to build sysimage from the Julia REPL, I also have the same procedure working on 0.6

@ViralBShah
Copy link
Member

Maybe try with a fresh build once 0.7-alpha is tagged.

@ronisbr
Copy link
Sponsor Member Author

ronisbr commented Jun 1, 2018

@ViralBShah

I have just tried with 0.7-alpha and got the same results. The steps to reproduce on macOS are:

$ cd /Applications/Julia-0.7.app/Contents/Resources/julia/share/julia/
$ touch userimg.jl
$ ../../bin/julia build_sysimg.jl /tmp/sys core2 userimg.jl --force
$ ../../bin/julia -J /tmp/sys.dylib
ERROR: System image file failed consistency check: maybe opened the wrong version?

@ronisbr
Copy link
Sponsor Member Author

ronisbr commented Jun 16, 2018

While this is not fixed, a workaround to test custom builds of the sysimg is to load the .ji file. However, it will be very slow, but it will work for small tests.

@SimonDanisch
Copy link
Contributor

will be fixed by: #27629

@ronisbr
Copy link
Sponsor Member Author

ronisbr commented Nov 23, 2018

@SimonDanisch @staticfloat

My problems are indeed fixed by this PR.

@staticfloat
Copy link
Sponsor Member

I think that the recommended method is to just use PackageCompiler.jl for this. We should probably remove the contrib/build_sysimg.jl completely.

@omus
Copy link
Member

omus commented Feb 4, 2019

contrib/build_sysimg.jl was removed in #30225

@omus omus closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants