Skip to content

Fails to build on Julia v1.13 #67

Open

Description

@schillic

This can be seen on the latest PkgEval run.

Info Given SDPA was explicitly requested, output will be shown live 
ERROR: LoadError: UndefVarError: `get_libsdpawrap_path` not defined in `SDPA_jll`
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base_compiler.jl:47
  [2] top-level scope
    @ ~/.julia/packages/SDPA/iAjjh/src/SDPA.jl:13
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:307
  [4] 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:3004
  [5] top-level scope
    @ stdin:6
  [6] eval(m::Module, e::Any)
    @ Core ./boot.jl:486
  [7] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2855
  [8] include_string
    @ ./loading.jl:2865 [inlined]
  [9] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:326
 [10] _start()
    @ Base ./client.jl:556
in expression starting at ~/.julia/packages/SDPA/iAjjh/src/SDPA.jl:6
in expression starting at stdin:6
  ✗ SDPA
Precompiling SDPA finished.
  36 dependencies successfully precompiled in 379 seconds. 25 already precompiled.
  2 dependencies had output during precompilation:
┌ CxxWrap
│  WARNING: Detected access to binding `StdLib.__cxxwrap_pointers` in a world prior to its definition world.
│    Julia 1.12 has introduced more strict world age semantics for global bindings.
│    !!! This code may malfunction under Revise.
│    !!! This code will error in future versions of Julia.
│  Hint: Add an appropriate `invokelatest` around the access to this binding.
│  WARNING: Detected access to binding `StdLib.__cxxwrap_methodkeys` in a world prior to its definition world.
│    Julia 1.12 has introduced more strict world age semantics for global bindings.
│    !!! This code may malfunction under Revise.
│    !!! This code will error in future versions of Julia.
│  Hint: Add an appropriate `invokelatest` around the access to this binding.
└  
┌ MutableArithmetics
│  WARNING: Constructor for type "Matrix" was extended in `MutableArithmetics` without explicit qualification or import.
│    NOTE: Assumed "Matrix" refers to `Base.Matrix`. 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 Matrix end`.
│    Hint: To silence the warning, qualify `Matrix` as `Base.Matrix` or explicitly `import Base: Matrix`
│  WARNING: Constructor for type "Matrix" was extended in `MutableArithmetics` without explicit qualification or import.
│    NOTE: Assumed "Matrix" refers to `Base.Matrix`. 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 Matrix end`.
│    Hint: To silence the warning, qualify `Matrix` as `Base.Matrix` or explicitly `import Base: Matrix`
│  WARNING: Constructor for type "Matrix" was extended in `MutableArithmetics` without explicit qualification or import.
│    NOTE: Assumed "Matrix" refers to `Base.Matrix`. 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 Matrix end`.
│    Hint: To silence the warning, qualify `Matrix` as `Base.Matrix` or explicitly `import Base: Matrix`
│  WARNING: Constructor for type "Matrix" was extended in `MutableArithmetics` without explicit qualification or import.
│    NOTE: Assumed "Matrix" refers to `Base.Matrix`. 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 Matrix end`.
│    Hint: To silence the warning, qualify `Matrix` as `Base.Matrix` or explicitly `import Base: Matrix`
└  

Locally, I can perfectly build on some older v1.12 version, but I can reproduce the crash on v1.13.

I was not sure whether the warnings about CxxWrap and MutableArithmetics are relevant, so I included them.

Activity

  1. odow commented on Feb 13, 2025

    @odow
    Member

    I assume we need to rebuild SDPA_jll to use a newer version of CxxWrap:

    x-ref #56
    x-ref #62

    But also: v1.12 is not even out yet. So I have limited interest in making v1.13 work.

  2. schillic commented on Oct 24, 2025

    @schillic
    Author

    FWIW, this still crashes after the closed x-refs, although with a different error message now. From the latest PkgEval run:

    C++ exception while wrapping module StdLib: invalid subtyping in definition of StdString with supertype CppBasicString
    ERROR: LoadError: invalid subtyping in definition of StdString with supertype CppBasicString

    This might be related to the error I get in Julia v1.12.1. But I will open another issue for that because it may be different.

  3. odow commented on Oct 26, 2025

    @odow
    Member

    Closing in favour of #68. If it won't build on v1.12, it won't build on v1.13.

    The MutableArithmetics warnings seem unrelated, and I think they're just wrong. MutableArithmetics uses function Base.Matrix() end for all methods which extend the constructor. But anyway, unrelated to SDPA.

  4. odow commented on Oct 28, 2025

    @odow
    Member

    SDPA_jll will likely need rebuilding once Julia v1.13 is out. There are some upstream blockers before that can happen.

  5. schillic commented on Dec 2, 2025

    @schillic
    Author

    I just tested the new Julia v1.13.0-alpha2 release and SDPA is still not building. Since these pre-releases are intended to enable a smooth transition, I thought I should ping here again.

  6. odow commented on Dec 2, 2025

    @odow
    Member

    The ongoing issue is that we need to re-compile SDPA_jll for each new Julia release because it depends on libjulia_jll.jl, and there are often incompatibilities between releases of libjulia delays in making it available. Even if we compiled something for the -alpha2 release, we might need to recompile it for the actual release.

    I have no plans to work on making SDPA.jl compatible with any pre-release versions of Julia.

    If you want to use SDPA, I'd just encourage you to stay on older versions of Julia for a while.

  7. schillic commented on Dec 2, 2025

    @schillic
    Author

    Alright, thanks for clarifying. I did not know that this is is required for each version. Makes sense to only do that for full releases.

  8. schillic commented on Sep 23, 2026

    @schillic
    Author

    @odow: Now that v1.13 got released, this is an actual issue...

  9. odow commented on Sep 24, 2026

    @odow
    Member

    I started JuliaPackaging/Yggdrasil#14869 but I didn't look into the failures yet

  10. reopened this on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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