Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompiling NLSolversBase for Julia v 1.0.0 fails. #91

Closed
amit112amit opened this issue Aug 29, 2018 · 4 comments
Closed

Precompiling NLSolversBase for Julia v 1.0.0 fails. #91

amit112amit opened this issue Aug 29, 2018 · 4 comments

Comments

@amit112amit
Copy link

amit112amit commented Aug 29, 2018

I am trying to use the OnceDifferentiable() method from Julia v1.0.0. I get the following error:

[ Info: Precompiling NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c]
ERROR: LoadError: LoadError: UndefVarError: start not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /home/amit/.julia/packages/ForwardDiff/2v3a4/src/ForwardDiff.jl:3
 [6] top-level scope at none:0
 [7] top-level scope at none:2
in expression starting at /home/amit/.julia/packages/ForwardDiff/2v3a4/src/partials.jl:25
in expression starting at /home/amit/.julia/packages/ForwardDiff/2v3a4/src/ForwardDiff.jl:16
ERROR: LoadError: Failed to precompile ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] to /home/amit/.julia/compiled/v1.0/ForwardDiff/k0ETY.ji.
Stacktrace:
 [1] top-level scope at none:2
in expression starting at /home/amit/.julia/packages/NLSolversBase/Cvvki/src/NLSolversBase.jl:5
ERROR: LoadError: Failed to precompile NLSolversBase [d41bc354-129a-5804-8e4c-c37616107c6c] to /home/amit/.julia/compiled/v1.0/NLSolversBase/NEDD6.ji.
Stacktrace:
 [1] macro expansion at ./logging.jl:313 [inlined]
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
 [3] macro expansion at ./logging.jl:311 [inlined]
 [4] _require(::Base.PkgId) at ./loading.jl:941
 [5] require(::Base.PkgId) at ./loading.jl:852
 [6] macro expansion at ./logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at ./loading.jl:834
 [8] include(::String) at ./client.jl:388
 [9] top-level scope at none:0
in expression starting at /home/amit/WorkSpace/learning-julia/Driver.jl:2

Output of versioninfo()

julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4

Adding output of ] status:

julia> 
(v1.0) pkg> status
    Status `~/.julia/environments/v1.0/Project.toml`
  [c52e3926] Atom v0.7.4
  [7e4cc7a5] AutoDiffSource v0.2.3
  [6e4b80f9] BenchmarkTools v0.4.0
  [336ed68f] CSV v0.3.1
  [49dc2e85] Calculus v0.4.1
  [aaaa29a8] Clustering v0.12.0
  [f65535da] Convex v0.5.0
  [0fe7c1db] DataArrays v0.7.0
  [a93c6f00] DataFrames v0.13.1
  [864edb3b] DataStructures v0.11.1
  [0c46a032] DifferentialEquations v5.3.0
  [b4f34e82] Distances v0.7.3
  [aaf54ef3] DistributedArrays v0.5.1
  [31c24e10] Distributions v0.16.2
  [fa6b7ba4] DualNumbers v0.4.0
  [7a1cc6ca] FFTW v0.2.4
  [f6369f11] ForwardDiff v0.7.5
  [38e38edf] GLM v0.11.0
  [4086de5b] GLVisualize v0.7.0
  [c91e804a] Gadfly v0.7.0
  [fd0ad045] GeometricalPredicates v0.1.0
  [f67ccb44] HDF5 v0.10.0
  [50ceba7f] HyperDualNumbers v3.0.1
  [09f84164] HypothesisTests v0.7.0
  [7073ff75] IJulia v1.10.0
  [c601a237] Interact v0.9.0
  [42fd0dbc] IterativeSolvers v0.7.1
  [4076af6c] JuMP v0.18.2
  [e5e0dc1b] Juno v0.5.2
  [5ab0869b] KernelDensity v0.5.0
  [093fc24a] LightGraphs v1.0.2
  [d3d80556] LineSearches v7.0.0
  [d4b2101a] Lint v0.5.2
  [8c227e2d] MCMC v0.3.0
  [f0e99cf1] MLBase v0.7.0
  [6f286f6a] MultivariateStats v0.5.0
  [d41bc354] NLSolversBase v7.1.0
  [2774e3e8] NLsolve v2.1.0
  [6ef6ca0d] NMF v0.3.0
  [429524aa] Optim v0.17.0
  [91a5bcdd] Plots v0.20.0
  [c46f51b8] ProfileView v0.3.0
  [438e738f] PyCall v1.18.2
  [d330b81b] PyPlot v2.6.2
  [1fd47b50] QuadGK v2.0.1
  [f2b01f46] Roots v0.7.2
  [90137ffa] StaticArrays v0.8.3
  [2913bbd2] StatsBase v0.25.0
  [123dc426] SymEngine v0.4.3
  [24249f21] SymPy v0.8.0
  [6aa5eb33] TaylorSeries v0.7.4
  [9e3dc215] TimeSeries v0.12.0
  [37b6cedf] Traceur v0.1.1
  [72f80fcb] VoronoiDelaunay v0.2.0
  [44d3d7a6] Weave v0.6.1
  [8bb1440f] DelimitedFiles 
  [44cfe95a] Pkg 
@pkofod
Copy link
Member

pkofod commented Aug 29, 2018

What about ] status?

@amit112amit
Copy link
Author

Sorry I did not include it the first time. I have included it in the top comment now. Thank you for maintaining this code.

@pkofod
Copy link
Member

pkofod commented Sep 1, 2018

So I'm not exactly sure why, but one of your packages seem to be holding back ForwardDiff (that NLSolversBase depends on) to a version before 0.8.4 which is where ForwardDiff fixed a lot of v0.7/1.0 stuff. So you need to find the package that puts a bound on ForwardDiff somehow.

@pkofod
Copy link
Member

pkofod commented Sep 21, 2018

Please try to get help on discourse or slack if this problem persists.

@pkofod pkofod closed this as completed Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants