Skip to content

Precompilation fail, @constprop not defined #208

@junglegobs

Description

@junglegobs

I think that v3.1.33 somehow broke other packages, but I wouldn't be able to tell you how. I just know that in my environment, ArrayInterface seems to be unable to precompile but if I pin it to v3.1.32 then it works:

(Julia_Pkg_Dev) pkg> up
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Updating registry at `~/.julia/registries/SpineRegistry`
    Updating git-repo `https://github.com/Spine-project/SpineJuliaRegistry.git`
    Updating `~/Desktop/Julia_Pkg_Dev/Project.toml`
  [4fba245c]  ArrayInterface v3.1.32  v3.1.33
    Updating `~/Desktop/Julia_Pkg_Dev/Manifest.toml`
  [4fba245c]  ArrayInterface v3.1.32  v3.1.33
Precompiling project...
  ✗ ArrayInterface
  0 dependencies successfully precompiled in 2 seconds (115 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

julia> using PowerModels

(Julia_Pkg_Dev) pkg> status
      Status `~/Desktop/Julia_Pkg_Dev/Project.toml`
  [4fba245c] ArrayInterface v3.1.33
  [336ed68f] CSV v0.8.5 ⚲
  [a93c6f00] DataFrames v1.2.2
  [864edb3b] DataStructures v0.18.10
  [31c24e10] Distributions v0.25.16
  [5789e2e9] FileIO v1.11.1
  [033835bb] JLD2 v0.4.14
  [4076af6c] JuMP v0.21.10
  [7eb4fadd] Match v1.1.0
  [bac558e1] OrderedCollections v1.4.1
  [91a5bcdd] Plots v1.22.1
  [c36e90e8] PowerModels v0.18.3
  [d330b81b] PyPlot v2.10.0
  [295af30f] Revise v3.1.19
  [2913bbd2] StatsBase v0.33.10
  [f3b207a7] StatsPlots v0.14.27
  [fd094767] Suppressor v0.2.0
  [3a884ed6] UnPack v1.0.2
  [ddb6d928] YAML v0.4.7
  [37e2e46d] LinearAlgebra
  [8dfed614] Test

julia> using PowerModels
[ Info: Precompiling PowerModels [c36e90e8-916a-50a6-bd94-075b64ef4655]
ERROR: LoadError: LoadError: LoadError: UndefVarError: @constprop not defined
Stacktrace:
 [1] include(mod::Module, _path::String)
   @ Base ./Base.jl:386
 [2] include(x::String)
   @ ArrayInterface ~/.julia/packages/ArrayInterface/61qJ7/src/ArrayInterface.jl:1
 [3] top-level scope
   @ ~/.julia/packages/ArrayInterface/61qJ7/src/ArrayInterface.jl:670
 [4] include
   @ ./Base.jl:386 [inlined]
 [5] 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, UInt64}}, source::String)
   @ Base ./loading.jl:1235
 [6] top-level scope
   @ none:1
 [7] eval
   @ ./boot.jl:360 [inlined]
 [8] eval(x::Expr)
   @ Base.MainInclude ./client.jl:446
 [9] top-level scope
   @ none:1
in expression starting at /home/u0128861/.julia/packages/ArrayInterface/61qJ7/src/dimensions.jl:76
in expression starting at /home/u0128861/.julia/packages/ArrayInterface/61qJ7/src/dimensions.jl:76
in expression starting at /home/u0128861/.julia/packages/ArrayInterface/61qJ7/src/ArrayInterface.jl:1
ERROR: LoadError: Failed to precompile ArrayInterface [4fba245c-0d91-5ea0-9b3e-6abc04ee57a9] to /home/u0128861/.julia/compiled/v1.6/ArrayInterface/jl_IG2up0.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:386 [inlined]
  [8] 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, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /home/u0128861/.julia/packages/FiniteDiff/msXcU/src/FiniteDiff.jl:1
ERROR: LoadError: Failed to precompile FiniteDiff [6a86dc24-6348-571c-b903-95158fe2bd41] to /home/u0128861/.julia/compiled/v1.6/FiniteDiff/jl_0dUTV0.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:386 [inlined]
  [8] 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, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /home/u0128861/.julia/packages/NLSolversBase/GRQ1x/src/NLSolversBase.jl:3
ERROR: LoadError: Failed to precompile NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c] to /home/u0128861/.julia/compiled/v1.6/NLSolversBase/jl_cepoFY.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:386 [inlined]
  [8] 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, UInt64}}, source::String)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /home/u0128861/.julia/packages/NLsolve/gJL1I/src/NLsolve.jl:3
ERROR: LoadError: Failed to precompile NLsolve [2774e3e8-f4cf-5e23-947b-6d7e65073b56] to /home/u0128861/.julia/compiled/v1.6/NLsolve/jl_Bg334Z.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:386 [inlined]
  [8] 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, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /home/u0128861/.julia/packages/PowerModels/KfWfN/src/PowerModels.jl:1
ERROR: Failed to precompile PowerModels [c36e90e8-916a-50a6-bd94-075b64ef4655] to /home/u0128861/.julia/compiled/v1.6/PowerModels/jl_EtBLU9.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] eval
    @ ./boot.jl:360 [inlined]
  [8] eval
    @ ./Base.jl:39 [inlined]
  [9] repleval(m::Module, code::Expr, #unused#::String)
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.3.33/scripts/packages/VSCodeServer/src/repl.jl:157
 [10] (::VSCodeServer.var"#69#71"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.3.33/scripts/packages/VSCodeServer/src/repl.jl:123
 [11] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging ./logging.jl:491
 [12] with_logger
    @ ./logging.jl:603 [inlined]
 [13] (::VSCodeServer.var"#68#70"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.3.33/scripts/packages/VSCodeServer/src/repl.jl:124
 [14] #invokelatest#2
    @ ./essentials.jl:708 [inlined]
 [15] invokelatest(::Any)
    @ Base ./essentials.jl:706
 [16] macro expansion
    @ ~/.vscode/extensions/julialang.language-julia-1.3.33/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
 [17] (::VSCodeServer.var"#53#54")()
    @ VSCodeServer ./task.jl:411

(Julia_Pkg_Dev) pkg> pin ArrayInterface@3.1.32

julia> using PowerModels
# NO ERRORS!

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