JuliaNLSolvers / NLsolve.jl

Julia solvers for systems of nonlinear equations and mixed complementarity problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to precompile on EC2 instance

djsegal opened this issue · comments

repeat of discourse post:


Getting the following error from using NLsolve:

INFO: Precompiling module NLsolve.
Failed to precompile NLsolve to /home/ubuntu/.julia/lib/v0.6/NLsolve.ji.

Stacktrace:
 [1] compilecache(::String) at ./loading.jl:703
 [2] _require(::Symbol) at ./loading.jl:490
 [3] require(::Symbol) at ./loading.jl:398
 [4] include_string(::String, ::String) at ./loading.jl:515

what's going on here? there is no additional message.

Pkg.build("NLsolve") returns:

INFO: Building SpecialFunctions

// some context. this is on an ubuntu server in an ec2 instance



extra info:

> versioninfo()

Julia Version 0.6.0
Commit 9036443 (2017-06-19 13:05 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

> Pkg.status()

6 required packages:
 - DataStructures                0.7.2
 - IJulia                        1.6.2
 - Interact                      0.6.2
 - Julz                          0.0.2+             master
 - Plots                         0.13.1
 - Tokamak                       0.0.0-             master
66 additional packages:
 - AxisAlgorithms                0.2.0
 - BaseTestNext                  0.2.2
 - BinDeps                       0.6.0
 - Calculus                      0.2.2
 - Codecs                        0.4.0
 - ColorTypes                    0.6.4
 - Colors                        0.8.1
 - CommonSubexpressions          0.0.1
 - Compat                        0.33.0
 - Conda                         0.7.0
 - Contour                       0.4.0
 - DataArrays                    0.6.2
 - DataFrames                    0.10.1
 - DeepDiffs                     1.0.1
 - DiffBase                      0.3.2
 - DiffResults                   0.0.1
 - DiffRules                     0.0.1
 - Distances                     0.5.0
 - DocOpt                        0.2.1
 - DocStringExtensions           0.4.1
 - Documenter                    0.12.0
 - DualNumbers                   0.3.0
 - Elliptic                      0.4.1
 - EnglishText                   0.5.0
 - FileIO                        0.5.2
 - FixedPointNumbers             0.4.2
 - ForwardDiff                   0.6.0
 - GZip                          0.3.0
 - Interpolations                0.7.0
 - JSON                          0.15.1
 - LineSearches                  2.2.1
 - MacroTools                    0.3.7
 - MbedTLS                       0.5.1
 - Measures                      0.1.0
 - Memoize                       0.2.0
 - Mustache                      0.3.0
 - NLSolversBase                 2.1.3
 - NLsolve                       0.11.0
 - NaNMath                       0.2.6
 - Parameters                    0.8.0
 - PkgDev                        0.1.6
 - PlotThemes                    0.1.4
 - PlotUtils                     0.4.4
 - Polynomials                   0.1.6
 - PyCall                        1.15.0
 - QuadGK                        0.1.3
 - Ratios                        0.2.0
 - Reactive                      0.6.0
 - RecipesBase                   0.2.3
 - Reexport                      0.0.3
 - Requires                      0.4.3
 - Revise                        0.1.0
 - SHA                           0.5.1
 - ShowItLikeYouBuildIt          0.2.0
 - Showoff                       0.1.1
 - SortingAlgorithms             0.1.1
 - SpecialFunctions              0.3.4
 - StaticArrays                  0.6.4
 - StatsBase                     0.19.0
 - SymPy                         0.5.3
 - TestSetExtensions             1.0.0
 - URIParser                     0.2.0
 - Unitful                       0.3.0
 - WoodburyMatrices              0.2.2
 - YAML                          0.2.1
 - ZMQ                           0.5.0

After removing every package.

Then Pkg.checkout and Pkg.build every package used by NLsolve, I get these messages:

julia> using NLsolve
INFO: Precompiling module NLsolve.
WARNING: Module DiffRules with uuid 1543089379462 is missing from the cache.
This may mean module DiffRules does not support precompilation but is imported by a module that does.
ERROR: LoadError: Declaring __precompile__(false) is not allowed in files that are being precompiled.
Stacktrace:
 [1] _require(::Symbol) at ./loading.jl:448
 [2] require(::Symbol) at ./loading.jl:398
 [3] include_from_node1(::String) at ./loading.jl:569
 [4] include(::String) at ./sysimg.jl:14
 [5] anonymous at ./<missing>:2
while loading /home/ubuntu/.julia/v0.6/ForwardDiff/src/ForwardDiff.jl, in expression starting on line 5
ERROR: LoadError: Failed to precompile ForwardDiff to /home/ubuntu/.julia/lib/v0.6/ForwardDiff.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:703
 [2] _require(::Symbol) at ./loading.jl:456
 [3] require(::Symbol) at ./loading.jl:398
 [4] include_from_node1(::String) at ./loading.jl:569
 [5] include(::String) at ./sysimg.jl:14
 [6] anonymous at ./<missing>:2
while loading /home/ubuntu/.julia/v0.6/NLsolve/src/NLsolve.jl, in expression starting on line 8
ERROR: Failed to precompile NLsolve to /home/ubuntu/.julia/lib/v0.6/NLsolve.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:703
 [2] _require(::Symbol) at ./loading.jl:490
 [3] require(::Symbol) at ./loading.jl:398

Just kept messing with stuff and eventually it started working.

Closing this.