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

Question: Creating custom image #1044

Open
amirmm11 opened this issue Jul 10, 2023 · 0 comments
Open

Question: Creating custom image #1044

amirmm11 opened this issue Jul 10, 2023 · 0 comments

Comments

@amirmm11
Copy link

I tried to create a custom image, but I got this error:

ERROR: The following 5 direct dependencies failed to precompile:

JuMP [4076af6c-e467-56ae-b986-b466b2749572]

Error: Missing source file for JuMP [4076af6c-e467-56ae-b986-b466b2749572]
PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]

Error: Missing source file for PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]

I used --compiler-env to use my current environment where all those packages are added. but that didn't help either.

I even tried

PackageCompiler.create_sysimage(
       ["JuMP"],
       sysimage_path = "customimage." * Libdl.dlext,
       precompile_execution_file = "my_test.jl",
       )
       
PackageCompiler.create_sysimage(
       [:PyCall];
       sysimage_path = "sys.so",
       base_sysimage="customimage.so",
       )   
       

which created sys.so but I got core-dump when I used jl = Julia(sysimage="sys.so")

@amirmm11 amirmm11 changed the title Question: Creating costum image Question: Creating custom image Jul 10, 2023
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

1 participant