# Global Base.PROGRAM\_FILE does not exist

**URL:** https://discourse.julialang.org/t/global-base-program-file-does-not-exist/133875
**Category:** General Usage
**Tags:** question, package-compiler
**Created:** [November 14, 2025, 12:23pm UTC](https://discourse.julialang.org/t/global-base-program-file-does-not-exist/133875 "2025-11-14T12:23:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)
#### Post date: [November 14, 2025, 12:23pm UTC](https://discourse.julialang.org/t/global-base-program-file-does-not-exist/133875/1 "2025-11-14T12:23:11Z")

</div>

I compiled an App using package compiler for v1.12.1 and run it using docker. I got this obscure error:

```julia-auto
fatal: error thrown and no exception handler available.
ErrorException("Global Base.PROGRAM_FILE does not exist and cannot be assigned.\nNote: Julia 1.9 and 1.10 inadvertently omitted this error check (#56933).\nHint: Declare it using `global PROGRAM_FILE` inside `Base` before attempting assignment.")
ijl_errorf at /cache/build/tester-amdci4-14/julialang/julia-release-1-dot-12/src/rtutils.c:79

ijl_check_binding_currently_writable at /cache/build/tester-amdci4-14/julialang/julia-release-1-dot-12/src/module.c:824
ijl_get_binding_wr at /cache/build/tester-amdci4-14/julialang/julia-release-1-dot-12/src/module.c:849
main at /home/jl/app/bin/App (unknown line)
unknown function (ip: 0x7ff35be89249) at /lib/x86_64-linux-gnu/libc.so.6
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/jl/app/bin/App (unknown line)

```

---

<div class="post-metadata">

### Author: ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)
#### Post date: [November 14, 2025, 12:30pm UTC](https://discourse.julialang.org/t/global-base-program-file-does-not-exist/133875/2 "2025-11-14T12:30:58Z")

</div>

Seems to be linked to [Initialize global `Base.PROGRAM_FILE` correctly by PatrickHaecker · Pull Request #1068 · JuliaLang/PackageCompiler.jl · GitHub](https://github.com/JuliaLang/PackageCompiler.jl/pull/1068)

I used PackageCompiler.jl v2.2.2
