# PackageCompiler create\_app never finishes in Julia 1.11.x

**URL:** <https://discourse.julialang.org/t/packagecompiler-create-app-never-finishes-in-julia-1-11-x/123724>\
**Category:** Package Management\
**Tags:** package-compiler\
**Created:** [December 11, 2024, 6:29pm UTC](https://discourse.julialang.org/t/packagecompiler-create-app-never-finishes-in-julia-1-11-x/123724 "2024-12-11T18:29:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhl](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dhl](https://discourse.julialang.org/u/dhl)\
**Post date:** [December 11, 2024, 6:29pm UTC](https://discourse.julialang.org/t/packagecompiler-create-app-never-finishes-in-julia-1-11-x/123724/1 "2024-12-11T18:29:30Z")

</div>

There seems to be a breaking difference in behavior between Julia 1.10.x and 1.11.x with the create\_app call in PackageCompiler.

Effectively the issue is that following works under julia 1.10.x and fails (never finishes in \>24 hours) under Julia 1.11.x. The typical build time is on the order of 5 minutes on a typical RHEL 9.x system using the downloaded x86\_64 julia install.

```julia-auto
julia --project=./scripts/ -e 'using Pkg; Pkg.instantiate(); include("./scripts/appbuilder.jl");'

```

The test harness structure is as follows and contents are below.

```julia-auto
├── Project.toml
├── scripts
│ └── appbuilder.jl
└── src
    └── MyApp.jl

```

#### src/MyApp.jl

```julia-auto
module MyApp
    function helloworld_main()::Cint
        @info "Hello World"
        return 0
    end
end

```

#### Project.toml

```julia-auto
name = "MyApp"
uuid = "4a9463ca-865b-45c8-b825-60aa58fba234"
authors = ["Me"]
version = "0.1.0"

```

#### scripts/appbuilder.jl

```julia-auto
using PackageCompiler

create_app(
    ".",
    "output",
    executables=[
        "helloworld" => "helloworld_main"
    ],
    incremental = false,
    filter_stdlibs = false,
    force = true,
    include_lazy_artifacts = true, 
    include_preferences = true
)

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [December 11, 2024, 6:37pm UTC](https://discourse.julialang.org/t/packagecompiler-create-app-never-finishes-in-julia-1-11-x/123724/2 "2024-12-11T18:37:45Z")

</div>

Looks like this issue: [`create_app` never finishes on Julia v1.11.1 when `JULIA_NUM_THREADS` is set · Issue #990 · JuliaLang/PackageCompiler.jl · GitHub](https://github.com/JuliaLang/PackageCompiler.jl/issues/990) Or is it a different issue? The github issue assumes that Julia is using more than one thread.

---

<div class="post-metadata">

**Author:** ![dhl](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dhl](https://discourse.julialang.org/u/dhl)\
**Post date:** [December 11, 2024, 7:05pm UTC](https://discourse.julialang.org/t/packagecompiler-create-app-never-finishes-in-julia-1-11-x/123724/3 "2024-12-11T19:05:52Z")

</div>

Yes, this is the same issue, thanks for the link, that does solve the issue
