Skip to content

Fix packagecompile CI #55

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

Merged
merged 12 commits into from
Jan 31, 2025
Merged

Fix packagecompile CI #55

merged 12 commits into from
Jan 31, 2025

Conversation

danlooo
Copy link
Collaborator

@danlooo danlooo commented Jan 31, 2025

No description provided.

@danlooo
Copy link
Collaborator Author

danlooo commented Jan 31, 2025

Currently, PackageCompiler.create_appcall works locally but not inside a docker container see this run. No CPU load detected on the github runner for >30min. No error message but stuck at PackageCompiler: compiling nonincremental system image. I'm using PackageCompiler v2.2.0.

Does anyone know why? @schlichtanders

@danlooo
Copy link
Collaborator Author

danlooo commented Jan 31, 2025

app creation outside a docker container results in this error immediately after compiling nonincremental system image:

Precompiling project...
  420 dependencies successfully precompiled in 415 seconds. 23 already precompiled.
⣄ [00m:31s] PackageCompiler: compiling nonincremental system imageSystemError: opening file "/home/dloos/prj/FAIRSenDD/RQ
⡆ [00m:31s] PackageCompiler: compiling nonincremental system image
Stacktrace:
⠸ [00m:32s] PackageCompiler: compiling nonincremental system imagesystemerror(p::String, errno::Int32; extrainfo::Nothing)
   @ Base ./error.jl:176
 [2] systemerror
   @ ./error.jl:175 [inlined]
 [3] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
   @ Base ./iostream.jl:295
 [4] open
   @ ./iostream.jl:277 [inlined]
 [5] #eachline#509
   @ ./io.jl:1231 [inlined]
 [6] eachline(filename::String)
   @ Base ./io.jl:1230
 [7] top-level scope
   @ /tmp/jl_sjoFmh2zqN:385
 [8] eval(m::Module, e::Any)
   @ Core ./boot.jl:430
 [9] top-level scope
   @ /tmp/jl_sjoFmh2zqN:377
in expression starting at /tmp/jl_sjoFmh2zqN:377
✖ [00m:32s] PackageCompiler: compiling nonincremental system image
ERROR: failed process: Process(`/home/dloos/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/bin/julia --color=yes --startup-file=no --pkgimages=no '--cpu-target=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)' --sysimage=/tmp/jl_Os9Eny/sys.so --project=/home/dloos/prj/FAIRSenDD/RQADeforestation.jl --output-o=/tmp/jl_Mnqv8ZIn6x-o.a /tmp/jl_sjoFmh2zqN`, ProcessExited(1)) [1]

Stacktrace:
  [1] pipeline_error
    @ ./process.jl:598 [inlined]
  [2] run(::Cmd; wait::Bool)
    @ Base ./process.jl:513
  [3] run
    @ ./process.jl:510 [inlined]
  [4] #20
    @ ~/.julia/packages/PackageCompiler/UbaS4/ext/TerminalSpinners.jl:157 [inlined]
  [5] spin(f::PackageCompiler.var"#20#22"{Cmd}, s::PackageCompiler.TerminalSpinners.Spinner{Base.TTY})
    @ PackageCompiler.TerminalSpinners ~/.julia/packages/PackageCompiler/UbaS4/ext/TerminalSpinners.jl:164
  [6] macro expansion
    @ ~/.julia/packages/PackageCompiler/UbaS4/ext/TerminalSpinners.jl:157 [inlined]
  [7] create_sysimg_object_file(object_file::String, packages::Vector{…}, packages_sysimg::Set{…}; project::String, base_sysimage::String, precompile_execution_file::Vector{…}, precompile_statements_file::Vector{…}, cpu_target::String, script::Nothing, sysimage_build_args::Cmd, extra_precompiles::String, incremental::Bool, import_into_main::Bool)
    @ PackageCompiler ~/.julia/packages/PackageCompiler/UbaS4/src/PackageCompiler.jl:130
  [8] create_sysimg_object_file
    @ ~/.julia/packages/PackageCompiler/UbaS4/src/PackageCompiler.jl:319 [inlined]
  [9] create_sysimage(packages::Vector{…}; sysimage_path::String, project::String, precompile_execution_file::Vector{…}, precompile_statements_file::String, incremental::Bool, filter_stdlibs::Bool, cpu_target::String, script::Nothing, sysimage_build_args::Cmd, include_transitive_dependencies::Bool, base_sysimage::Nothing, julia_init_c_file::Nothing, julia_init_h_file::Nothing, version::Nothing, soname::Nothing, compat_level::String, extra_precompiles::String, import_into_main::Bool)
    @ PackageCompiler ~/.julia/packages/PackageCompiler/UbaS4/src/PackageCompiler.jl:639
 [10] create_sysimage
    @ ~/.julia/packages/PackageCompiler/UbaS4/src/PackageCompiler.jl:527 [inlined]
 [11] create_app(package_dir::String, app_dir::String; executables::Nothing, precompile_execution_file::Vector{…}, precompile_statements_file::String, incremental::Bool, filter_stdlibs::Bool, force::Bool, c_driver_program::String, cpu_target::String, include_lazy_artifacts::Bool, sysimage_build_args::Cmd, include_transitive_dependencies::Bool, include_preferences::Bool, script::Nothing)
    @ PackageCompiler ~/.julia/packages/PackageCompiler/UbaS4/src/PackageCompiler.jl:886
 [12] top-level scope
    @ REPL[5]:1
Some type information was truncated. Use `show(err)` to see complete types.

Maybe related to JuliaLang/PackageCompiler.jl#990

@danlooo danlooo merged commit abc15de into main Jan 31, 2025
2 of 4 checks passed
@danlooo danlooo deleted the fix_packagecompile_ci branch February 3, 2025 10:14
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

Successfully merging this pull request may close these issues.

1 participant