-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi,
I have great interest in your NLOptControl package and am trying it recently. But I encountered some problems while precompiling it.
I can add NLOptControl successfully but I cannot precompile NLOptControl and JuMP contained in it. I guess the reason may be that, it contains an out of date version (v0.18.6) of JuMP. When I try to precompile JuMP v0.18.6, it always shows failure, but the JuMP(v0.21.4) can be precompiled successfully after I remove NLOptControl.
#add NLOptControl:
(@v1.6) pkg> add https://github.com/JuliaMPC/NLOptControl.jl
Updating git-repo https://github.com/JuliaMPC/NLOptControl.jl
Resolving package versions...
Updating C:\Users\13614.julia\environments\v1.6\Project.toml
[4076af6c] ↓ JuMP v0.21.4 ⇒ v0.18.6
[290757bd] + NLOptControl v0.3.0 https://github.com/JuliaMPC/NLOptControl.jl#master
Updating C:\Users\13614.julia\environments\v1.6\Manifest.toml
[336ed68f] + CSV v0.8.5
[442a2c76] + FastGaussQuadrature v0.4.5
[4076af6c] ↓ JuMP v0.21.4 ⇒ v0.18.6
[290757bd] + NLOptControl v0.3.0 https://github.com/JuliaMPC/NLOptControl.jl#master
[89212889] + ReverseDiffSparse v0.8.6
[91c51154] + SentinelArrays v1.3.5
Precompiling project...
✗ JuMP
✗ NLOptControl
0 dependencies successfully precompiled in 27 seconds (296 already precompiled)
2 dependencies errored. To see a full report either run import Pkg; Pkg.precompile() or load the packages
julia> Pkg.precompile()
Precompiling project...
✗ JuMP
✗ NLOptControl
0 dependencies successfully precompiled in 29 seconds (296 already precompiled)
ERROR: The following 2 direct dependencies failed to precompile:
NLOptControl [290757bd-39a7-5095-97bb-ca0f46959724]
WARNING: could not import JuMP.setRHS into NLOptControl
WARNING: could not import JuMP.internalmodel into NLOptControl
ERROR: LoadError: LoadError: UndefVarError: Variable not defined
Stacktrace:
[1] top-level scope
@ C:\Users\13614.julia\packages\Parameters\cGriM\src\Parameters.jl:572
[2] include(mod::Module, _path::String)
@ Base .\Base.jl:386
[3] include(x::String)
@ NLOptControl C:\Users\13614.julia\packages\NLOptControl\Yh2kR\src\NLOptControl.jl:3
[4] top-level scope
@ C:\Users\13614.julia\packages\NLOptControl\Yh2kR\src\NLOptControl.jl:36
[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 C:\Users\13614.julia\packages\NLOptControl\Yh2kR\src\types.jl:100
in expression starting at C:\Users\13614.julia\packages\NLOptControl\Yh2kR\src\NLOptControl.jl:3
JuMP [4076af6c-e467-56ae-b986-b466b2749572]
ERROR: LoadError: LoadError: UndefVarError: Grisu not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:26
[2] top-level scope
@ C:\Users\13614.julia\packages\JuMP\I7whV\src\writers.jl:6
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:386
[4] include(x::String)
@ JuMP C:\Users\13614.julia\packages\JuMP\I7whV\src\JuMP.jl:11
[5] top-level scope
@ C:\Users\13614.julia\packages\JuMP\I7whV\src\JuMP.jl:947
[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 C:\Users\13614.julia\packages\JuMP\I7whV\src\writers.jl:5
in expression starting at C:\Users\13614.julia\packages\JuMP\I7whV\src\JuMP.jl:11
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:55
[2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:1244
[3] precompile
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:920 [inlined]
[4] #precompile#196
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:918 [inlined]
[5] precompile()
@ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:918
[6] top-level scope
@ REPL[43]:1
(@v1.6) pkg> rm NLOptControl
Updating C:\Users\13614\.julia\environments\v1.6\Project.toml
[290757bd] - NLOptControl v0.3.0 https://github.com/JuliaMPC/NLOptControl.jl#master
Updating C:\Users\13614\.julia\environments\v1.6\Manifest.toml
[336ed68f] - CSV v0.8.5
[442a2c76] - FastGaussQuadrature v0.4.5
[290757bd] - NLOptControl v0.3.0 https://github.com/JuliaMPC/NLOptControl.jl#master
[91c51154] - SentinelArrays v1.3.5
(@v1.6) pkg> rm JuMP
Updating C:\Users\13614\.julia\environments\v1.6\Project.toml
[4076af6c] - JuMP v0.18.6
Updating C:\Users\13614\.julia\environments\v1.6\Manifest.toml
[49dc2e85] - Calculus v0.5.1
[4076af6c] - JuMP v0.18.6
[89212889] - ReverseDiffSparse v0.8.6
(@v1.6) pkg> add JuMP
Resolving package versions...
Updating C:\Users\13614\.julia\environments\v1.6\Project.toml
[4076af6c] + JuMP v0.21.4
Updating C:\Users\13614\.julia\environments\v1.6\Manifest.toml
[49dc2e85] + Calculus v0.5.1
[4076af6c] + JuMP v0.21.4
julia> Pkg.precompile()
#Success
Could you please help me and solve this problem?