Closed
Description
cf @mcabbott
More specifically, JuliaDiff/DiffRules.jl@e566656 breaks ForwardDiff precompilation. DiffRules 1.1 and 1.2 were released today, so I just noticed it on https://github.com/JuliaSmoothOptimizers/ADNLPModels.jl/pull/18/checks?check_run_id=2984684712#step:6:110.
On a fresh folder:
pkg> activate .
pkg> add DiffRules#e566656
pkg> add ForwardDiff
julia> using ForwardDiff
Fails with
[ Info: Precompiling ForwardDiff [f6369f11-7733-5829-9624-2563aa707210]
ERROR: LoadError: LoadError: ForwardDiff currently only knows how to autogenerate Dual definitions for unary and binary functions.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] top-level scope
@ ~/.julia/packages/ForwardDiff/QOqCN/src/dual.jl:390
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:386
[4] include(x::String)
@ ForwardDiff ~/.julia/packages/ForwardDiff/QOqCN/src/ForwardDiff.jl:1
[5] top-level scope
@ ~/.julia/packages/ForwardDiff/QOqCN/src/ForwardDiff.jl:16
[6] include
@ ./Base.jl:386 [inlined]
[7] 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
[8] top-level scope
@ none:1
[9] eval
@ ./boot.jl:360 [inlined]
[10] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[11] top-level scope
@ none:1
in expression starting at /home/abel/.julia/packages/ForwardDiff/QOqCN/src/dual.jl:383
in expression starting at /home/abel/.julia/packages/ForwardDiff/QOqCN/src/ForwardDiff.jl:1
ERROR: Failed to precompile ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] to /home/abel/.julia/compiled/v1.6/ForwardDiff/jl_fUdWWc.
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
Metadata
Metadata
Assignees
Labels
No labels