Skip to content

Build fails with latest release of ChainRulesCore (0.9.30) #218

@knuesel

Description

@knuesel

With ChainRulesCore 0.9.30:

julia> using DynamicPPL
[ Info: Precompiling DynamicPPL [366bfd00-2699-11ea-058f-f148b4cae6d8]
ERROR: LoadError: LoadError: UndefVarError: rrule not defined
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/ChainRulesCore/EU7hk/src/rule_definition_tools.jl:364
  [2] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [3] include(x::String)
    @ DynamicPPL ~/.julia/dev/DynamicPPL/src/DynamicPPL.jl:1
  [4] top-level scope
    @ ~/.julia/dev/DynamicPPL/src/DynamicPPL.jl:123
  [5] include
    @ ./Base.jl:386 [inlined]
  [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, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1213
  [7] top-level scope
    @ none:1
  [8] eval
    @ ./boot.jl:360 [inlined]
  [9] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [10] top-level scope
    @ none:1
in expression starting at /root/.julia/dev/DynamicPPL/src/compat/ad.jl:2
in expression starting at /root/.julia/dev/DynamicPPL/src/DynamicPPL.jl:1
ERROR: Failed to precompile DynamicPPL [366bfd00-2699-11ea-058f-f148b4cae6d8] to /root/.julia/compiled/v1.6/DynamicPPL/jl_7R1HqT.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
   @ Base ./loading.jl:1360
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1306
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1021
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:914
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:901

Tested on Julia 1.6-rc3 and 1.5.4. It works fine with ChainRulesCore 0.9.29.

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