PackageCompiler hangs while compiling nonincremental system image on Julia v1.11

@kristoffer.carlsson , @PatrickHaecker , I made now a brief test:

lib_input_path= "D:\\Julia\\Juliastic"
cd(lib_input_path)
using PackageCompiler
lib_name= "Juliastic"
lib_output= joinpath(lib_input_path, "CompilationResult")
precomp_file= joinpath(lib_input_path, "build", "precompilation.jl")
lib_header= joinpath(lib_input_path, "build", lib_name * ".h")
create_library(lib_input_path, lib_output;
 incremental= false, force= true, filter_stdlibs= true, lib_name= lib_name,
 precompile_execution_file= precomp_file,
 header_files= [lib_header])

At first Julia 1.10.9

  • The CPU has 12 threads, so I set JULIA_NUM_THREADS to 12.

result: compilation works, total time 363 seconds, here a screen shot with all details. Note the warnings about threads.

1.11.5

  • JULIA_NUM_THREADS to 12

result: compilations hands (the bug why we have this discussion), but see the screenshot with the compilation times:

Step 1: 79% longer
Step 2: 30% longer

1.11.5 with patch

result: compilation works, total time 593 seconds, here a screen shot with all details. Note that there are now no warnings about threads.
But the compilation time increased by 63 %

So the patch makes it compiling, but the performance loss with 1.11.x is severe.

3 Likes