Skip to content

1.11.0-alpha2: problems with precompilation #53831

@matthias314

Description

@matthias314

This may be related to #52283.

My startup.jl contains the line using InteractiveUtils. Starting Julia 1.11.0-alpha2 with --startup-file=no works without problems. However, without that option I get

~$ /usr/local/julia-1.11.0-alpha2/bin/julia
┌ Info: Precompiling InteractiveUtils [b77e0a4c-d291-57a0-90e8-8db25a27a240] (cache misses: invalid header (10))
└ @ Base loading.jl:2845
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Markdown [d6f4376e-aef5-505a-96c1-9c027394607a]
│   exception = ErrorException("Required dependency Base.PkgId(Base.UUID(\"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"), \"Base64\") failed to load from a cache file.")
└ @ Base loading.jl:2365
┌ Info: Skipping precompilation due to precompilable error. Importing InteractiveUtils [b77e0a4c-d291-57a0-90e8-8db25a27a240].
│   exception = nothing
└ @ Base loading.jl:2356
┌ Info: Precompiling Markdown [d6f4376e-aef5-505a-96c1-9c027394607a] (cache misses: wrong source (1), invalid header (8))
└ @ Base loading.jl:2845
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Markdown [d6f4376e-aef5-505a-96c1-9c027394607a]
│   exception = ErrorException("Required dependency Base.PkgId(Base.UUID(\"2a0f44e3-6c83-55bd-87e4-b1978d98bd5f\"), \"Base64\") failed to load from a cache file.")
└ @ Base loading.jl:2365
┌ Info: Precompiling Base64 [2a0f44e3-6c83-55bd-87e4-b1978d98bd5f] (cache misses: wrong source (1), invalid header (8))
└ @ Base loading.jl:2845
┌ Warning: Replacing module `Base64`
└ @ Base loading.jl:2222
┌ Warning: Replacing module `Markdown`
└ @ Base loading.jl:2222
┌ Warning: Replacing module `InteractiveUtils`
└ @ Base loading.jl:2222
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.0-alpha2 (2024-03-18)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> 

It repeats every time I start Julia. The v1.11 project is empty:

(@v1.11) pkg> st
Status `/usr/local/julia/environments/v1.11/Project.toml` (empty project)

I didn't try previous versions of v1.11.0. With master I similarly get

$ ./julia
┌ Info: Precompiling InteractiveUtils [b77e0a4c-d291-57a0-90e8-8db25a27a240] (cache misses: invalid header (2))
└ @ Base loading.jl:2845
┌ Warning: Replacing module `Base64`
└ @ Base loading.jl:2222
┌ Warning: Replacing module `Markdown`
└ @ Base loading.jl:2222
┌ Warning: Replacing module `InteractiveUtils`
└ @ Base loading.jl:2222
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.12.0-DEV.231 (2024-03-22)
 _/ |\__'_|_|_|\__'_|  |  Commit d68a04ee9c (1 day old master)
|__/                   |

julia> 

$ ./julia
┌ Warning: Replacing module `Base64`
└ @ Base loading.jl:2222
┌ Warning: Replacing module `Markdown`
└ @ Base loading.jl:2222
┌ Warning: Replacing module `InteractiveUtils`
└ @ Base loading.jl:2222
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.12.0-DEV.231 (2024-03-22)
 _/ |\__'_|_|_|\__'_|  |  Commit d68a04ee9c (1 day old master)
|__/                   |

julia> 
Julia Version 1.11.0-alpha2
Commit 9dfd28ab751 (2024-03-18 20:35 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
  JULIA_DEPOT_PATH = /usr/local/julia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions