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

ERROR: failed process in create_fresh_base_sysimage

Open MatheusDLSilva opened this issue 2 months ago • 2 comments

I haven't been able to use the create_app functionality since updating Julia to 1.12. I am currently running Julia 1.12.1 with PackageCompiler v2.2.3.

Julia Version 1.12.1 Commit ba1e628ee4 (2025-10-17 13:02 UTC) Build Info: Official https://julialang.org release Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: 20 × 13th Gen Intel(R) Core(TM) i7-13800H WORD_SIZE: 64 LLVM: libLLVM-18.1.7 (ORCJIT, alderlake) GC: Built with stock GC Threads: 12 default, 1 interactive, 12 GC (on 20 virtual cores) Environment: JULIA_DEBUG = all JULIA_NUM_THREADS = 12

The app I am testing only contains a print statement:

function julia_main()::Cint
    println("Hello world")
    return 0
end

The crash happens in create_fresh_base_sysimage:

cmd = `$(PackageCompiler.get_julia_cmd()) --cpu-target $cpu_target
                --output-o $tmp_corecompiler_o $sysimage_build_args
                $compiler_source_path $compiler_args`
@debug "running $cmd"
read(cmd)

This is the error message: ERROR: failed process: Process(setenv('C:\Users\e193003.julia\juliaup\julia-1.12.1+0.x64.w64.mingw32\bin\julia.exe' --color=yes --startup-file=no --pkgimages=no --cpu-target 'generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)' '--sysimage=C:\Users\e193003\AppData\Local\Temp\jl_W6vSKx\corecompiler.dll' '--output-o=C:\Users\e193003\AppData\Local\Temp\jl_W6vSKx\sys-o.a' 'C:\Users\e193003\AppData\Local\Temp\jl_W6vSKx\sysimage_packagecompiler_b460946e-adf0-11f0-b44a-f5988b090063.jl' --buildroot '' --dataroot '..../',["PYTHON=C:\\Users\\e193003\\AppData\\Local\\Programs\\Python\\Python312-32\\python.exe", "WINDIR=C:\\WINDOWS", "PATH=C:\\WINDOWS\\system32; … , "=C:=C:\\Users\\e193003\\.julia\\juliaup\\julia-1.12.1+0.x64.w64.mingw32\\share\\julia\\base", "JULIA_DEBUG=all", "PROGRAMW6432=C:\\Program Files", "IGCCSVC_DB=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA8SUqmed6Hk6fqWbmTfpH1gQAAAACAAAAAAAQZgAAAAEAACAAAADWNcYwlVsX/rPSfX9QBJMt7SoPuSIMgMZSEzy/wtUQKwAAAAAOgAAAAAIAACAAAAAiYguHzf3ydeWPeYLrY6if8zE0cM+8Ah7aLy9nF4xKtmAAAABBlMJF+XYdeBC/qdQJuNwxxns+hs1WMvby40nKnZ/gUjyivoWG2z20OJqsuyKiRJKwGgUcpVNq1a0+vzXv8wN/1ave1CnxOyr1sxOSt2BwK7xkcEuFwQSvp8m3+5To6AJAAAAAW8nvtonCEj/DZbq/UvsVkgqD1vizCuJxE9bjeenkjUtjdsKp37wB0GJnCHscR2aKiBb0ck+JgXpjRrI1FZYrmw==", "HOMEDRIVE=C:", "OPENBLAS_MAIN_FREE=1", "PROCESSOR_ARCHITECTURE=AMD64", "TEMP=C:\\Users\\e193003\\AppData\\Local\\Temp", "COLORTERM=truecolor"]), ProcessExited(3))

MatheusDLSilva avatar Oct 20 '25 20:10 MatheusDLSilva

The same code with the same PackageCompiler works on julia 1.11?

KristofferC avatar Oct 20 '25 20:10 KristofferC

Yes, I just tried with Julia 1.11.6:

julia> create_app("modelling/Julia/TestPackage/", "TestPackageComp", force = true)
┌ Warning: The project dependencies or compat requirements have changed since the manifest was last resolved.
│ It is recommended to `Pkg.resolve()` or consider `Pkg.update()` if necessary.
└ @ Pkg.API C:\Users\e193003\.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\API.jl:1206
PackageCompiler: bundled libraries:
  ├── Base:
  │    ├── libLLVM-16jl.dll - 82.919 MiB
  │    ├── libatomic-1.dll - 262.531 KiB
  │    ├── libdSFMT.dll - 114.961 KiB
  │    ├── libgcc_s_seh-1.dll - 767.898 KiB
  │    ├── libgfortran-5.dll - 11.162 MiB
  │    ├── libgmp-10.dll - 1.054 MiB
  │    ├── libgmp.dll - 1.053 MiB
  │    ├── libgmpxx-4.dll - 293.633 KiB
  │    ├── libgmpxx.dll - 293.766 KiB
  │    ├── libgomp-1.dll - 1.646 MiB
  │    ├── libjulia-codegen.dll - 103.444 MiB
  │    ├── libjulia-internal.dll - 13.533 MiB
  │    ├── libmpfr-6.dll - 2.526 MiB
  │    ├── libmpfr.dll - 2.527 MiB
  │    ├── libopenlibm.dll - 535.227 KiB
  │    ├── libpcre2-16-0.dll - 712.750 KiB
  │    ├── libpcre2-16.dll - 711.891 KiB
  │    ├── libpcre2-32-0.dll - 683.281 KiB
  │    ├── libpcre2-32.dll - 684.016 KiB
  │    ├── libpcre2-8-0.dll - 773.922 KiB
  │    ├── libpcre2-8.dll - 773.922 KiB
  │    ├── libpcre2-posix-3.dll - 127.906 KiB
  │    ├── libquadmath-0.dll - 1.136 MiB
  │    ├── libssp-0.dll - 143.898 KiB
  │    ├── libstdc++-6.dll - 25.187 MiB
  │    ├── libuv-2.dll - 983.852 KiB
  │    ├── libwinpthread-1.dll - 329.305 KiB
  │    ├── libz.dll - 233.070 KiB
  │    ├── libjulia.dll - 226.492 KiB
  ├── Stdlibs:
  │   ├── OpenBLAS_jll
  │   │   ├── libopenblas64_.dll - 37.668 MiB
  │   ├── libblastrampoline_jll
  │   │   ├── libblastrampoline-5.dll - 2.250 MiB
  Total library file size: 294.554 MiB
┌ Warning: The project dependencies or compat requirements have changed since the manifest was last resolved.
│ It is recommended to `Pkg.resolve()` or consider `Pkg.update()` if necessary.
└ @ Pkg.API C:\Users\e193003\.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\API.jl:1206
✔ [02m:36s] PackageCompiler: creating compiler .ji image (incremental=false)
⡆ [01m:04s] PackageCompiler: compiling fresh sysimage (incremental=false)
[pid 17380] waiting for IO to finish:
 Handle type        uv_handle_t->data
 pipe[672]          00000210ee454530->0000000000000000
✔ [02m:25s] PackageCompiler: compiling fresh sysimage (incremental=false)
┌ Warning: The active manifest file has dependencies that were resolved with a different julia version (1.12.0). Unexpected behavior may occur.
└ @ C:\Users\e193003\Dev\repo\modelling\Julia\TestPackage\Manifest.toml:0
┌ Warning: The project dependencies or compat requirements have changed since the manifest was last resolved.
│ It is recommended to `Pkg.resolve()` or consider `Pkg.update()` if necessary.
└ @ Pkg.API C:\Users\e193003\.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\src\API.jl:1206
Precompiling project...
  1 dependency successfully precompiled in 3 seconds
✔ [01m:33s] PackageCompiler: compiling nonincremental system image

MatheusDLSilva avatar Oct 20 '25 20:10 MatheusDLSilva