# \#package-compiler

**URL:** https://discourse.julialang.org/tag/package-compiler/350.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Building a system image using Julia 1.13 fails on Windows](https://discourse.julialang.org/t/building-a-system-image-using-julia-1-13-fails-on-windows/139436)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [September 13, 2026, 9:18am UTC](https://discourse.julialang.org/t/building-a-system-image-using-julia-1-13-fails-on-windows/139436 "2026-09-13T09:18:24Z")

</div>

Building a system image on Windows 10 fails if I use Julia 1.13, it succeeds using Julia 1.12. On Julia 1.12 it needs about 34 GB RAM (RAM+pagefile) and 30 minutes. On Julia 1.13 it fails even with 54 GB RAM after 1h:2…

---

## [Building an incremental sysimage in seconds instead of minutes](https://discourse.julialang.org/t/building-an-incremental-sysimage-in-seconds-instead-of-minutes/139352)

<div class="topic-metadata">

**Author:** [@melevy](https://discourse.julialang.org/u/melevy)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 8:56pm UTC](https://discourse.julialang.org/t/building-an-incremental-sysimage-in-seconds-instead-of-minutes/139352 "2026-09-10T20:56:55Z")

</div>

Disclaimer: this post was written using AI, but I did my best to make this informative and useful for others. The post has been flagged for being an advertisement, it is not. I hope it passes this time. This is a resear…

---

## [Precompilation and trimming a discrete event simulator for communication networks](https://discourse.julialang.org/t/precompilation-and-trimming-a-discrete-event-simulator-for-communication-networks/139010)

<div class="topic-metadata">

**Author:** [@melevy](https://discourse.julialang.org/u/melevy)\
**Replies:** 7\
**Last updated:** [August 24, 2026, 9:46pm UTC](https://discourse.julialang.org/t/precompilation-and-trimming-a-discrete-event-simulator-for-communication-networks/139010 "2026-08-24T21:46:47Z")

</div>

Hi! I’m new here and maybe I’m not doing it the right way, if so I’m sorry for my ignorance. So I’m interested in precompiling and trimming a Julia program to decrease the startup time and avoid compilation during exec…

---

## [How to build a sysimage for Windows](https://discourse.julialang.org/t/how-to-build-a-sysimage-for-windows/138500)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [July 31, 2026, 8:19pm UTC](https://discourse.julialang.org/t/how-to-build-a-sysimage-for-windows/138500 "2026-07-31T20:19:04Z")

</div>

I built a system image on Windows 10 using Julia 1.12. But I cannot start Julia with this system image: C:\\Users\\ufechner\\repos\\IM\_AWES\_bench.jl\\bin\>julia -J sysimage.dll ERROR: could not load library "C:\\Users\\ufechner…

---

## [Load time of MTK models](https://discourse.julialang.org/t/load-time-of-mtk-models/138068)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [July 16, 2026, 5:09pm UTC](https://discourse.julialang.org/t/load-time-of-mtk-models/138068 "2026-07-16T17:09:02Z")

</div>

I am not happy with the TTFX of our MTK models (see: RamAirKites.jl). We already cache our simplified model after building it and use a custom system image. But nevertheless, the time to load a model from our cache is st…

---

## [C calling convention mismatch?](https://discourse.julialang.org/t/c-calling-convention-mismatch/136624)

<div class="topic-metadata">

**Author:** [@danielmatz](https://discourse.julialang.org/u/danielmatz)\
**Replies:** 12\
**Last updated:** [May 13, 2026, 11:48am UTC](https://discourse.julialang.org/t/c-calling-convention-mismatch/136624 "2026-05-13T11:48:35Z")

</div>

I’m using PackageCompiler.jl to build a shared library, which I then link into a C driver program. One of my @ccallable functions takes a “large” (168 bytes) struct as an argument by value. Things worked fine on macOS, b…

---

## [Complex workaround needed. Why?](https://discourse.julialang.org/t/complex-workaround-needed-why/136371)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [March 25, 2026, 7:31am UTC](https://discourse.julialang.org/t/complex-workaround-needed-why/136371 "2026-03-25T07:31:35Z")

</div>

I need this workaround to avoid crashes due to version conflicts od shared libraries on Linux: if \[\[ "$(uname -s)" == "Linux" \]\]; then export FONTCONFIG\_FILE=/etc/fonts/fonts.conf # On Ubuntu 22.04 the system ha…

---

## [Sysimage creation process gets OOM killed (out-of-memory)](https://discourse.julialang.org/t/sysimage-creation-process-gets-oom-killed-out-of-memory/136079)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 3\
**Last updated:** [March 7, 2026, 3:15pm UTC](https://discourse.julialang.org/t/sysimage-creation-process-gets-oom-killed-out-of-memory/136079 "2026-03-07T15:15:40Z")

</div>

When I try to create a sysimage with Makie in it (or maybe any other heavy package, Makie’s the only one I’ve noticed), the create\_sysimage() call gets to the “Compiling incremental sysimage” stage, then crashes, also ex…

---

## [Speed up dockerization](https://discourse.julialang.org/t/speed-up-dockerization/135971)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 8\
**Last updated:** [March 3, 2026, 9:52pm UTC](https://discourse.julialang.org/t/speed-up-dockerization/135971 "2026-03-03T21:52:28Z")

</div>

I am deploying Julia code using docker. In order to speed up the startup of the container I build a package using PackageCompiler.jl. However this is painfully slow, as it rebuilds everything even if I change one line i…

---

## [Why is JuliaC faster than PackageCompiler?](https://discourse.julialang.org/t/why-is-juliac-faster-than-packagecompiler/134909)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 5\
**Last updated:** [February 20, 2026, 1:17pm UTC](https://discourse.julialang.org/t/why-is-juliac-faster-than-packagecompiler/134909 "2026-02-20T13:17:50Z")

</div>

Hi all! I have been using PackageCompiler for a while to distribute applications in Julia. It usually takes between 20 to 40 minutes to compile an app from scratch. In 1.12 I have been gradually changing it to JuliaC wi…

---

## [PackageCompiler.jl: What is it doing and how do I use it correctly?](https://discourse.julialang.org/t/packagecompiler-jl-what-is-it-doing-and-how-do-i-use-it-correctly/135530)

<div class="topic-metadata">

**Author:** [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Replies:** 3\
**Last updated:** [February 8, 2026, 5:51pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-what-is-it-doing-and-how-do-i-use-it-correctly/135530 "2026-02-08T17:51:11Z")

</div>

Today I was playing with PackageCompiler.jl (PC) because I am wondering whether it could play a role in reducing startup times (sparked by the recent discussions about the worsening of Julia startup times ref). During m…

---

## [Error when creating my system image with package compiler](https://discourse.julialang.org/t/error-when-creating-my-system-image-with-package-compiler/135409)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 0\
**Last updated:** [February 2, 2026, 2:27pm UTC](https://discourse.julialang.org/t/error-when-creating-my-system-image-with-package-compiler/135409 "2026-02-02T14:27:02Z")

</div>

When I want to create my system image, I get the following error resulting from create\_app, do you have an idea what it means? I don’t understand the error message. julia\> create\_app("MyApp", "mysolver", force=true) Pac…

---

## [Save module/function using PackageCompiler](https://discourse.julialang.org/t/save-module-function-using-packagecompiler/135064)

<div class="topic-metadata">

**Author:** [@stelmo](https://discourse.julialang.org/u/stelmo)\
**Replies:** 7\
**Last updated:** [January 16, 2026, 1:01am UTC](https://discourse.julialang.org/t/save-module-function-using-packagecompiler/135064 "2026-01-16T01:01:46Z")

</div>

Is it possible to save the compiled version of a function, f, which is not in a package, using PackageCompiler? For example, suppose I have a file model.jl which contains: module Model include("func.jl") end f(rand(2…

---

## [Julia image threads on Windows](https://discourse.julialang.org/t/julia-image-threads-on-windows/129328)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 9\
**Last updated:** [December 1, 2025, 3:47am UTC](https://discourse.julialang.org/t/julia-image-threads-on-windows/129328 "2025-12-01T03:47:51Z")

</div>

As far as I know, by default PackageCompiler uses JULIA\_IMAGE\_THREADS=1 on Windows and all cores on Linux (Julia v1.10) due to which it completes much faster on Linux, but uses more RAM. I set on Windows system variable …

---

## [State of Julia Interactive Apps, Executables and WebApps](https://discourse.julialang.org/t/state-of-julia-interactive-apps-executables-and-webapps/134200)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 9\
**Last updated:** [December 1, 2025, 2:50am UTC](https://discourse.julialang.org/t/state-of-julia-interactive-apps-executables-and-webapps/134200 "2025-12-01T02:50:43Z")

</div>

I want to share my simulation online to users with different machines (Windows, MacBooks, Linux), etc., without them having to download Julia. Is there a clear, simple way to do so right now? The 2 things that I have in…

---

## [Using a shared library generated by PackageCompiler in a multi-threaded program](https://discourse.julialang.org/t/using-a-shared-library-generated-by-packagecompiler-in-a-multi-threaded-program/133972)

<div class="topic-metadata">

**Author:** [@danielmatz](https://discourse.julialang.org/u/danielmatz)\
**Replies:** 5\
**Last updated:** [November 25, 2025, 3:35pm UTC](https://discourse.julialang.org/t/using-a-shared-library-generated-by-packagecompiler-in-a-multi-threaded-program/133972 "2025-11-25T15:35:32Z")

</div>

I’m using PackageCompiler.jl to build a shared library, so that I can integrate one of my algorithms into a C++ simulation. The C++ simulation is multi-threaded. We’d like to call the Julia algorithm on a thread other th…

---

## [Global Base.PROGRAM\_FILE does not exist](https://discourse.julialang.org/t/global-base-program-file-does-not-exist/133875)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [November 14, 2025, 12:30pm UTC](https://discourse.julialang.org/t/global-base-program-file-does-not-exist/133875 "2025-11-14T12:30:58Z")

</div>

I compiled an App using package compiler for v1.12.1 and run it using docker. I got this obscure error: fatal: error thrown and no exception handler available. ErrorException("Global Base.PROGRAM\_FILE does not exist and…

---

## [PackageCompiler create\_sysimage options for Artifacts](https://discourse.julialang.org/t/packagecompiler-create-sysimage-options-for-artifacts/133380)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 0\
**Last updated:** [October 23, 2025, 11:30am UTC](https://discourse.julialang.org/t/packagecompiler-create-sysimage-options-for-artifacts/133380 "2025-10-23T11:30:44Z")

</div>

I succeeded making a system image for a Windows PC with a different cpu\_target. But when I started it, it failed because some artifacts (…SpecFun) were not installed. So I solved it by instantiating the packages, which…

---

## [PackageCompiler create\_app cannot find project, but create\_sysimage can](https://discourse.julialang.org/t/packagecompiler-create-app-cannot-find-project-but-create-sysimage-can/133152)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 0\
**Last updated:** [October 14, 2025, 7:10pm UTC](https://discourse.julialang.org/t/packagecompiler-create-app-cannot-find-project-but-create-sysimage-can/133152 "2025-10-14T19:10:10Z")

</div>

I am trying to compile my visualization app for the first time using PackageCompiler. For this I first needed to make a properly generated Project with a module that holds the functions. I have also placed the Makie GUI…

---

## [Lessons learnt and thoughts on deploying Julia and sysimages on AWS](https://discourse.julialang.org/t/lessons-learnt-and-thoughts-on-deploying-julia-and-sysimages-on-aws/130669)

<div class="topic-metadata">

**Author:** [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Replies:** 1\
**Last updated:** [August 29, 2025, 1:57pm UTC](https://discourse.julialang.org/t/lessons-learnt-and-thoughts-on-deploying-julia-and-sysimages-on-aws/130669 "2025-08-29T13:57:17Z")

</div>

I have spent a portion of my time on and off over the past two weeks trying to build docker containers with sysimages to deploy on AWS. Over that time I have run into various issues and thought it worthwhile writing up m…

---

## [Why can svgplugin.dll not be found? (for PackageCompiler binary, bundled artifacts)](https://discourse.julialang.org/t/why-can-svgplugin-dll-not-be-found-for-packagecompiler-binary-bundled-artifacts/130848)

<div class="topic-metadata">

**Author:** [@testmax](https://discourse.julialang.org/u/testmax)\
**Replies:** 1\
**Last updated:** [July 18, 2025, 5:31pm UTC](https://discourse.julialang.org/t/why-can-svgplugin-dll-not-be-found-for-packagecompiler-binary-bundled-artifacts/130848 "2025-07-18T17:31:47Z")

</div>

Hello all! I would like to understand, how the DLLs are loaded by the EXE generated with PackageCompiler.jl. The issue is that I have a problem with a compiled program and the GR\_jll.jl DLLs. Specifically, when exporti…

---

## [Weave.jl report generation fails in PackageCompiler.jl App](https://discourse.julialang.org/t/weave-jl-report-generation-fails-in-packagecompiler-jl-app/130841)

<div class="topic-metadata">

**Author:** [@apurvdarji](https://discourse.julialang.org/u/apurvdarji)\
**Replies:** 0\
**Last updated:** [July 18, 2025, 9:29am UTC](https://discourse.julialang.org/t/weave-jl-report-generation-fails-in-packagecompiler-jl-app/130841 "2025-07-18T09:29:00Z")

</div>

I’m encountering an issue when generating a report from a compiled application that uses Weave.jl, which I built with PackageCompiler.jl. Initially, I received the following error: ┌ Warning: Error generating report! │…

---

## [How to use the PackageCompiler with a private registry](https://discourse.julialang.org/t/how-to-use-the-packagecompiler-with-a-private-registry/130732)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 8\
**Last updated:** [July 16, 2025, 9:52am UTC](https://discourse.julialang.org/t/how-to-use-the-packagecompiler-with-a-private-registry/130732 "2025-07-16T09:52:08Z")

</div>

I have the following structure: ├──App/ ├──compiled/ │ ├── make.jl │ ├── precompile.jl ├──deps/ ├──Project.toml where make.jl is using PackageCompiler PackageCompiler.create\_app( "App", "compiled/App"; …

---

## [How to detect that PackageCompiler fails?](https://discourse.julialang.org/t/how-to-detect-that-packagecompiler-fails/130686)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [July 13, 2025, 8:35pm UTC](https://discourse.julialang.org/t/how-to-detect-that-packagecompiler-fails/130686 "2025-07-13T20:35:17Z")

</div>

I am using a Bash script that calls package compiler. In Bash I execute: julia --project -e "include(\\"./test/create\_sys\_image.jl\\");" The create\_sys\_image.jl script contains the line: PackageCompiler.create\_sysimage…

---

## [PackageCompiler fails to create app for MadNLPGPU + ExaModels (CUDSS linear solver)](https://discourse.julialang.org/t/packagecompiler-fails-to-create-app-for-madnlpgpu-examodels-cudss-linear-solver/125998)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 11\
**Last updated:** [June 30, 2025, 7:26am UTC](https://discourse.julialang.org/t/packagecompiler-fails-to-create-app-for-madnlpgpu-examodels-cudss-linear-solver/125998 "2025-06-30T07:26:00Z")

</div>

I can not create “app” with PackageCompiler even for simplest GPU optimization with ExaModels+MadNLPGPU running cuDSS. I’ve made full MWE project with package to be built in attempt to help this to debug. Compiling does …

---

## [Step by step instruction and example how to create standalone applications for Windows with a \[G\]UI](https://discourse.julialang.org/t/step-by-step-instruction-and-example-how-to-create-standalone-applications-for-windows-with-a-g-ui/128274)

<div class="topic-metadata">

**Author:** [@uwestoehr](https://discourse.julialang.org/u/uwestoehr)\
**Replies:** 17\
**Last updated:** [May 8, 2025, 12:58am UTC](https://discourse.julialang.org/t/step-by-step-instruction-and-example-how-to-create-standalone-applications-for-windows-with-a-g-ui/128274 "2025-05-08T00:58:20Z")

</div>

After many hours of troubles, discussions and problems, gave this issue a final try and here is my solution. I created a complete repository called “Juliastic” that provides these features: step by step instructions h…

---

## [Error using REPL with custom system image](https://discourse.julialang.org/t/error-using-repl-with-custom-system-image/127940)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 6:46pm UTC](https://discourse.julialang.org/t/error-using-repl-with-custom-system-image/127940 "2025-04-10T18:46:18Z")

</div>

If I create a system image for KiteModels.jl this works. But using it fails with the following error: ufechner@framework:~/repos/KiteModels.jl$ jl Found system image! \[ Info: Precompiling REPL \[3fa0cd96-eef1-5676-8a61-b…

---

## [Best practices about how to hide API Keys in Julia applications](https://discourse.julialang.org/t/best-practices-about-how-to-hide-api-keys-in-julia-applications/127001)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 3\
**Last updated:** [March 16, 2025, 4:42pm UTC](https://discourse.julialang.org/t/best-practices-about-how-to-hide-api-keys-in-julia-applications/127001 "2025-03-16T16:42:31Z")

</div>

The Federal Reserve Bank of St. Louis in the FRED Economic Data website states that: Developers should request a distinct API key for each application they build. All users of an application shall use their own API key…

---

## [Calling C/Fortran program that embeds Julia in Julia](https://discourse.julialang.org/t/calling-c-fortran-program-that-embeds-julia-in-julia/126839)

<div class="topic-metadata">

**Author:** [@AreWeDreaming](https://discourse.julialang.org/u/AreWeDreaming)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 10:52pm UTC](https://discourse.julialang.org/t/calling-c-fortran-program-that-embeds-julia-in-julia/126839 "2025-03-12T22:52:24Z")

</div>

We have a Julia framework that needs to interact with a lot of legacy Fortran/C(++) applications. Instead of manually preparing the proper interface for the applications which involves lots of manual type conversions, we…

---

## [Docker image build OOM](https://discourse.julialang.org/t/docker-image-build-oom/126148)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 6:40am UTC](https://discourse.julialang.org/t/docker-image-build-oom/126148 "2025-02-27T06:40:13Z")

</div>

I’m trying to package a Julia app as a docker image. Since, as of writing this, package relocatability is not solved; hence, this is the only way to share an app. In my dockerfile I run: ###############################…

[Next page](https://discourse.julialang.org/tag/package-compiler/350.md?match_all_tags=true&page=1&tags%5B%5D=package-compiler)
