LibPQ.jl icon indicating copy to clipboard operation
LibPQ.jl copied to clipboard

dependency Memento makes compilation fail in 1.13.0-rc1

Open sob727 opened this issue 5 months ago • 1 comments

Memento issue logged here: https://github.com/invenia/Memento.jl/issues/196 However Memento seems abandoned. While technically a Memento issue, not sure if LibPQ can rely on it going forward.

$ julia +1.13
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.13.0-rc1 (2026-04-27)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org release
|__/                   |
 
(@v1.13) pkg> activate --temp
  Activating new project at `/tmp/jl_kGkDT7`
 
(jl_kGkDT7) pkg> add LibPQ
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed OrderedCollections ────────── v1.8.2
   Installed ArrowTypes ────────────────── v2.3.0
   Installed Kerberos_krb5_jll ─────────── v1.21.3+0
   Installed ExprTools ─────────────────── v0.1.10
   Installed TimeZones ─────────────────── v1.22.2
   Installed LayerDicts ────────────────── v1.0.0
   Installed InlineStrings ─────────────── v1.4.5
   Installed Compat ────────────────────── v4.18.1
   Installed IteratorInterfaceExtensions ─ v1.0.0
   Installed DataAPI ───────────────────── v1.16.0
   Installed DataValueInterfaces ───────── v1.0.0
   Installed CEnum ─────────────────────── v0.5.0
   Installed Infinity ──────────────────── v0.2.4
   Installed Memento ───────────────────── v1.4.1
   Installed RecipesBase ───────────────── v1.3.4
   Installed Tables ────────────────────── v1.12.1
   Installed PrecompileTools ───────────── v1.3.4
   Installed Requires ──────────────────── v1.3.1
   Installed OffsetArrays ──────────────── v1.17.0
   Installed Scratch ───────────────────── v1.3.0
   Installed SQLStrings ────────────────── v0.1.0
   Installed LibPQ_jll ─────────────────── v16.14.0+0
   Installed DBInterface ───────────────── v2.6.1
   Installed ICU_jll ───────────────────── v76.2.0+0
   Installed TableTraits ───────────────── v1.0.1
   Installed LibPQ ─────────────────────── v1.18.0
   Installed Intervals ─────────────────── v1.11.0
   Installed DocStringExtensions ───────── v0.9.5
   Installed Preferences ───────────────── v1.5.2
   Installed IterTools ─────────────────── v1.10.0
   Installed Decimals ──────────────────── v0.4.1
   Installed TZJData ───────────────────── v1.5.0+2025b
   Installed Mocking ───────────────────── v0.8.1
   Installed UTCDateTimes ──────────────── v1.6.1
   Installed JLLWrappers ───────────────── v1.8.0
  Installing artifacts ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4/4
    Updating `/tmp/jl_kGkDT7/Project.toml`
  [194296ae] + LibPQ v1.18.0
    Updating `/tmp/jl_kGkDT7/Manifest.toml`
  [31f734f8] + ArrowTypes v2.3.0
  [fa961155] + CEnum v0.5.0
  [34da2185] + Compat v4.18.1
  [a10d1c49] + DBInterface v2.6.1
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
⌅ [abce61dc] + Decimals v0.4.1
  [ffbed154] + DocStringExtensions v0.9.5
  [e2ba6199] + ExprTools v0.1.10
  [a303e19e] + Infinity v0.2.4
  [842dd82b] + InlineStrings v1.4.5
  [d8418881] + Intervals v1.11.0
  [c8e1da08] + IterTools v1.10.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.8.0
  [6f188dcb] + LayerDicts v1.0.0
  [194296ae] + LibPQ v1.18.0
  [f28f55f0] + Memento v1.4.1
  [78c3b35d] + Mocking v0.8.1
  [6fe1bfb0] + OffsetArrays v1.17.0
⌅ [bac558e1] + OrderedCollections v1.8.2
  [aea7be01] + PrecompileTools v1.3.4
  [21216c6a] + Preferences v1.5.2
  [3cdcf5f2] + RecipesBase v1.3.4
  [ae029012] + Requires v1.3.1
  [af517c2e] + SQLStrings v0.1.0
  [6c6a2e73] + Scratch v1.3.0
  [dc5dba14] + TZJData v1.5.0+2025b
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.12.1
  [f269a46b] + TimeZones v1.22.2
  [0f7cfa37] + UTCDateTimes v1.6.1
  [a51ab1cf] + ICU_jll v76.2.0+0
  [b39eb1a6] + Kerberos_krb5_jll v1.21.3+0
  [08be9ffa] + LibPQ_jll v16.14.0+0
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [2a0f44e3] + Base64 v1.11.0
  [ade2ca70] + Dates v1.11.0
  [8ba89e20] + Distributed v1.11.0
  [f43a241f] + Downloads v1.7.0
  [7b1f6079] + FileWatching v1.11.0
  [b77e0a4c] + InteractiveUtils v1.11.0
  [ac6e5ff7] + JuliaSyntaxHighlighting v1.12.0
  [b27032c2] + LibCURL v1.0.0
  [8f399da3] + Libdl v1.11.0
  [56ddb016] + Logging v1.11.0
  [d6f4376e] + Markdown v1.11.0
  [ca575930] + NetworkOptions v1.3.0
  [de0858da] + Printf v1.11.0
  [9a3f8284] + Random v1.11.0
  [ea8e919c] + SHA v1.0.0
  [9e88b42a] + Serialization v1.11.0
  [6462fe0b] + Sockets v1.11.0
  [f489334b] + StyledStrings v1.11.0
  [fa267f1f] + TOML v1.0.3
  [8dfed614] + Test v1.11.0
  [cf7118a7] + UUIDs v1.11.0
  [4ec0a83e] + Unicode v1.11.0
  [e66e0078] + CompilerSupportLibraries_jll v1.3.0+1
  [deac9b47] + LibCURL_jll v8.18.0+1
  [29816b5a] + LibSSH2_jll v1.11.3+1
  [14a3606d] + MozillaCACerts_jll v2025.12.2
  [458c3c95] + OpenSSL_jll v3.5.5+0
  [83775a58] + Zlib_jll v1.3.1+2
  [3161d3a3] + Zstd_jll v1.5.7+1
  [8e850ede] + nghttp2_jll v1.67.1+0
  [3f19e933] + p7zip_jll v17.7.0+0
        Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m`
ERROR: LoadError: Precompiled image Base.PkgId(Base.UUID("f28f55f0-a522-5efc-85c2-fe41dfb9b2d9"), "Memento") not available with flags CacheFlags(; use_pkgimages=true, debug_level=1, check_bounds=0, inline=true, opt_level=2)
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:44
  [2] __require_prelocked(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2719
  [3] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2580
  [4] macro expansion
    @ ./loading.jl:2508 [inlined]
  [5] macro expansion
    @ ./lock.jl:376 [inlined]
  [6] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2472
  [7] require
    @ ./loading.jl:2448 [inlined]
  [8] eval_import_path
    @ ./module.jl:36 [inlined]
  [9] eval_import_path_all(at::Module, path::Expr, keyword::String)
    @ Base ./module.jl:60
 [10] _eval_import(::Bool, ::Module, ::Expr, ::Expr, ::Vararg{Expr})
    @ Base ./module.jl:101
 [11] top-level scope
    @ ~/.julia/packages/LibPQ/i4yBe/src/LibPQ.jl:27
 [12] include(mod::Module, _path::String)
    @ Base ./Base.jl:309
 [13] 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:3153
 [14] top-level scope
    @ stdin:5
 [15] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [16] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2999
 [17] include_string
    @ ./loading.jl:3009 [inlined]
 [18] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:342
 [19] _start()
    @ Base ./client.jl:577
in expression starting at /home/sob/.julia/packages/LibPQ/i4yBe/src/LibPQ.jl:1
in expression starting at stdin:5
  ? Memento
  ✗ LibPQ
Precompiling LibPQ finished.
  36 dependencies successfully precompiled in 9 seconds. 26 already precompiled.
  1 dependencies failed but may be precompilable after restarting julia
 
  3 dependencies had output during precompilation:
┌ Memento
│  WARNING: Method definition var"@test_throws"(LineNumberNode, Module, Any, Any, Any) in module Test at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-13/usr/share/julia/stdlib/v1.13/Test/src/Test.jl:876 overwritten in module TestUtils at /home/sob/.julia/packages/Memento/xnHxE/src/memento_test.jl:119.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  
┌ LibPQ
│  [Output was shown above]
└  
┌ UTCDateTimes
│  WARNING: Constructor for type "DateTime" was extended in `UTCDateTimes` without explicit qualification or import.
│    NOTE: Assumed "DateTime" refers to `<null>.DateTime`. This behavior is deprecated and may differ in future versions.
│    NOTE: This behavior may have differed in Julia versions prior to 1.12.
│    Hint: If you intended to create a new generic function of the same name, use `function DateTime end`.
│    Hint: To silence the warning, qualify `DateTime` as `<null>.DateTime` in the method signature or explicitly `import <null>: DateTime`.
└  
The following 1 package failed to precompile:
 
LibPQ 
Failed to precompile LibPQ [194296ae-ab2e-5f79-8cd4-7183a0a5a0d1] to "/home/sob/.julia/compiled/v1.13/LibPQ/jl_8A2CrR" (ProcessExited(1)).
 
(jl_kGkDT7) pkg> 

sob727 avatar Jun 09 '26 01:06 sob727

The immediate Memento.jl issue is resolved for the Julia 1.13 release. I agree that LibPQ.jl should probably plan to move off Memento.jl.

rofinn avatar Jun 10 '26 22:06 rofinn