You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run julia --startup-file=no --sysimage=PATH/TO/sys.so --project=. --output-o=dummy -e 'Base.reinit_stdio(); @eval Sys BINDIR = ccall(:jl_get_julia_bindir, Any, ())::String; Base.init_load_path(); @show Base.load_path()' (as would be executed via PackageCompiler.create_sysimage), Julia 1.5.0 prints something like
Perhaps an easier way to observe this is to edit PackageCompiler.jl
diff --git a/src/PackageCompiler.jl b/src/PackageCompiler.jl
index 3d1a177..32daec1 100644
--- a/src/PackageCompiler.jl+++ b/src/PackageCompiler.jl@@ -238,6 +238,7 @@ function create_sysimg_object_file(object_file::String, packages::Vector{String}
@eval Sys BINDIR = ccall(:jl_get_julia_bindir, Any, ())::String
Base.init_load_path()
Base.init_depot_path()
+ @show Base.load_path()
"""
# Ensure packages to be put into sysimage are precompiled by loading them in a
and then run create_sysimgwith non-default project path.
When I run
julia --startup-file=no --sysimage=PATH/TO/sys.so --project=. --output-o=dummy -e 'Base.reinit_stdio(); @eval Sys BINDIR = ccall(:jl_get_julia_bindir, Any, ())::String; Base.init_load_path(); @show Base.load_path()'
(as would be executed viaPackageCompiler.create_sysimage
), Julia 1.5.0 prints something likewhile Julia 1.6.0-DEV.851 prints
I think this is causing recent failures in system image build tests in PyCall (e.g., https://travis-ci.org/github/JuliaPy/PyCall.jl/jobs/722001094#L738).
Perhaps an easier way to observe this is to edit PackageCompiler.jl
and then run
create_sysimg
with non-defaultproject
path.cc @KristofferC
The text was updated successfully, but these errors were encountered: