PackageCompiler.jl icon indicating copy to clipboard operation
PackageCompiler.jl copied to clipboard

Failure in binary after compilation due to artifact IntelOpenMP

Open jmaedler opened this issue 1 year ago • 1 comments

Hi guys, I am trying to build some binaries for a model containing ModelingToolkit.jl, OrdinaryDiffEq.jl, and Open62541.jl. The compilation finishes but if I try to run the binary, I get the following error message:

Image

Clearly, this is related to some artifact related to IntelOpenMP, but since I am completely new to PackageCompiler.jl and still fairly new to Julia, I am a bit lost in debugging this error. Do you have any suggestions, what I could do?

jmaedler avatar Oct 29 '24 18:10 jmaedler

The error happens because there are some JLLs with "lazy dependencies" that have been put into the sysimage. When the sysimage loads, these JLLs will try to download their lazy artifacts and for some reason, this fails.

  • You can try include_transitive_dependencies=false and see if it does something (in the case where e.g. MKL is more of an optional dependency and not used).
  • You can also try include_lazy_artifacts=true to bundle these lazy artifacts (but pay attention to the resulting file size of your app).

KristofferC avatar Oct 29 '24 19:10 KristofferC