Skip to content

HTTP.jl fails to precompile on 1.12 #1220

Closed
@bvdmitri

Description

@bvdmitri
julia> using HTTP
Info Given HTTP was explicitly requested, output will be shown live
ERROR: LoadError: syntax: World age increment not at top level
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/HTTP/4AUPl/src/precompile.jl:3
  [2] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:304
  [3] IncludeInto
    @ ./Base.jl:305 [inlined]
  [4] top-level scope
    @ ~/.julia/packages/HTTP/4AUPl/src/HTTP.jl:636
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
  [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:3015
  [7] top-level scope
    @ stdin:5
  [8] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
  [9] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2861
 [10] include_string
    @ ./loading.jl:2871 [inlined]
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:326
 [12] _start()
    @ Base ./client.jl:560
in expression starting at /Users/bvdmitri/.julia/packages/HTTP/4AUPl/src/precompile.jl:3
in expression starting at /Users/bvdmitri/.julia/packages/HTTP/4AUPl/src/HTTP.jl:1
in expression starting at stdin:5
  ✗ HTTP
Precompiling HTTP finished.
  0 dependencies successfully precompiled in 3 seconds. 31 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

HTTP

Failed to precompile HTTP [cd3eb016-35fb-5094-929b-558a96fad6f3] to "/Users/bvdmitri/.julia/compiled/v1.12/HTTP/jl_XPCNMb".
ERROR: LoadError: syntax: World age increment not at top level
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/HTTP/4AUPl/src/precompile.jl:3
  [2] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:304
  [3] IncludeInto
    @ ./Base.jl:305 [inlined]
  [4] top-level scope
    @ ~/.julia/packages/HTTP/4AUPl/src/HTTP.jl:636
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
  [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:3015
  [7] top-level scope
    @ stdin:5
  [8] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
  [9] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2861
 [10] include_string
    @ ./loading.jl:2871 [inlined]
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:326
 [12] _start()
    @ Base ./client.jl:560
in expression starting at /Users/bvdmitri/.julia/packages/HTTP/4AUPl/src/precompile.jl:3
in expression starting at /Users/bvdmitri/.julia/packages/HTTP/4AUPl/src/HTTP.jl:1
in expression starting at stdin:

installed 1.12-beta from juliaup

julia> versioninfo()
Julia Version 1.12.0-beta1
Commit c175ace780d (2025-04-02 11:19 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin24.0.0)
  CPU: 11 × Apple M3 Pro
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, apple-m3)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 5 virtual cores)

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