PackageCompiler executable Error

Hi

I built an exectuable with

PackageCompiler.create_app("JuliaPlotting", "/home/christian/trasch/julia-plotting")

but when I run it with /home/christian/trasch/julia-plotting/bin/JuliaPlotting it spits out the following error:

  Downloaded artifact: MKL
  Downloaded artifact: MKL
fatal: error thrown and no exception handler available.
InitError(mod=:MKL_jll, error=ErrorException("Unable to automatically install 'MKL' from '/home/christian/.julia/packages/MKL_jll/xglHW/Artifacts.toml'"))
error at ./error.jl:33
#ensure_artifact_installed#23 at /home/christian/packages/julias/julia-1.7/share/julia/stdlib/v1.7/Pkg/src/Artifacts.jl:441
ensure_artifact_installed##kw at /home/christian/packages/julias/julia-1.7/share/julia/stdlib/v1.7/Pkg/src/Artifacts.jl:413
unknown function (ip: 0x7f530f7247ed)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
#ensure_artifact_installed#22 at /home/christian/packages/julias/julia-1.7/share/julia/stdlib/v1.7/Pkg/src/Artifacts.jl:404
unknown function (ip: 0x7f530f7179da)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
ensure_artifact_installed##kw at /home/christian/packages/julias/julia-1.7/share/julia/stdlib/v1.7/Pkg/src/Artifacts.jl:399
unknown function (ip: 0x7f530f7176c8)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
_artifact_str at /home/christian/packages/julias/julia-1.7/share/julia/stdlib/v1.7/Artifacts/src/Artifacts.jl:547
unknown function (ip: 0x7f530f70d447)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
jl_f__call_latest at /buildworker/worker/package_linux64/build/src/builtins.c:757
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:713
#invokelatest#2 at ./essentials.jl:716
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:713
invokelatest at ./essentials.jl:714
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:126
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:215
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:166 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:587
jl_fptr_interpret_call at /buildworker/worker/package_linux64/build/src/interpreter.c:675
macro expansion at /home/christian/packages/julias/julia-1.7/share/julia/stdlib/v1.7/Artifacts/src/Artifacts.jl:680 [inlined]
find_artifact_dir at /home/christian/.julia/packages/JLLWrappers/QpMQW/src/wrapper_generators.jl:17
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
__init__ at /home/christian/.julia/packages/MKL_jll/xglHW/src/wrappers/x86_64-linux-gnu.jl:9
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2247 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2429
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1788 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:73
_finish_julia_init at /buildworker/worker/package_linux64/build/src/init.c:796
julia_init at /buildworker/worker/package_linux64/build/src/init.c:730
jl_init_with_image at /buildworker/worker/package_linux64/build/src/jlapi.c:74
jl_init at /buildworker/worker/package_linux64/build/src/jlapi.c:90
main at /home/christian/trasch/julia-plotting/bin/JuliaPlotting (unknown line)
unknown function (ip: 0x7f5314801d8f)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/christian/trasch/julia-plotting/bin/JuliaPlotting (unknown line)

I am on Ubuntu 22.04. Am I doing something obviously wrong?

I had this problem with MKL as well. The solution found was to use include_lazy_artifacts=true in the create_app function call.

In your case:

PackageCompiler.create_app("JuliaPlotting", "/home/christian/trasch/julia-plotting", include_lazy_artifacts=true)

This worked for me and should make sure everything gets included, though it can mean the end result is quite large.

1 Like

works! Thank you

I am using Julia 1.7.3 and PackageCompiler 2.0, I am having exactly the same issue. My OS is CentOS Linux release 7.9.2009. Unfortunately, the above solution does not work for me.
I believe this issue could be related to Error installing artifact dependency, I have tried both the above solutions, but it doesnt work for me. Please help. Thanks

Having the same on Ubuntu 20.04. None from above helps. If you have found some solution pls let us know.

When New version: PackageCompiler v2.0.7 by JuliaRegistrator · Pull Request #63599 · JuliaRegistries/General · GitHub is merged this should hopefully be fixed by updating to the latest PackageCompiler version.

1 Like