Error in compiling DifferentialEquantions on chromebook

I’m kind of suspicious that this might be a corrupted cache (.ji files are caches for packages to speed up loading time). This is a long shot, but could you try:

rm.(
    [
        "/home/marongiuluigi/.julia/compiled/v1.4/Sundials/", 
        "/home/marongiuluigi/.julia/compiled/v1.4/DifferentialEquations/", 
        "/home/marongiuluigi/.julia/compiled/v1.4/BoundaryValueDiffEq/"
    ]; 
    recursive = true, force = true
)

to nuke your cache files, then using DifferentialEquations and sit back for a cup of tea (it might take a while to precompile).

even nuking did not work:

# in julia I ran your command and there was no issue
using DifferentialEquations
[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
ERROR: LoadError: Failed to precompile BoundaryValueDiffEq [764a87c0-6b3e-53db-9096-fe964310641d] to /home/marongiuluigi/.julia/compiled/v1.4/BoundaryValueDiffEq/Levrg_dUdWO.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] top-level scope at none:2
 [8] eval at ./boot.jl:331 [inlined]
 [9] eval(::Expr) at ./client.jl:449
 [10] top-level scope at ./none:3
in expression starting at /home/marongiuluigi/.julia/packages/DifferentialEquations/xCZD1/src/DifferentialEquations.jl:12
ERROR: Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /home/marongiuluigi/.julia/compiled/v1.4/DifferentialEquations/UQdwS_dUdWO.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922

Do you have any chance to try this with a different Julia version, for example v1.3.1?

In all other machines I upgraded (ubuntu and mint) the re-compiling worked thus it is OK. It was working on chromebook with 1.3…

I’m lost in your all previous attempts so far, fave you tried already to start from scratch, i.e. rename your ~/.julia directory so that you have a completely clean environment?

nothing even like this. I give up: I simply won’t use D.Eq on a chromebook. Thank you for your persistance and help.

I can run DifferentialEquations.jl without problems with Julia 1.4.1 on my chrombook (also with Intel CPU)…

Some things to try:

  • Start Julia in a new directory, then ]activate . before adding DifferentialEquation
  • Rename ~/.julia to some temporary name before starting Julia, to try with a clean environment.
  • Install Docker, then docker run -it julia and see if you can use DifferentialEquation there.

Just use OrdinaryDiffEq.jl directly if you need the ODE solvers. Unless you’re specificially solving BVPs this is an easy workaround. But indeed this is extremely odd.

1 Like

Could you try and generate an rr trace?

using Pkg; Pkg.add("BugReporting")
using BugReporting
BugReporting.make_interactive_report("rr")
using DifferentialEquations

looks like OrdinaryDiffEq worked:

julia> using Pkg

julia> Pkg.add("OrdinaryDiffEq")
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
   Updating `~/.julia/environments/v1.4/Project.toml`
 [no changes]
   Updating `~/.julia/environments/v1.4/Manifest.toml`
 [no changes]

julia> using OrdinaryDiffEq

julia>

I am here:

julia> BugReporting.make_interactive_report("rr")
rr needs /proc/sys/kernel/perf_event_paranoid <= 1, but it is 2.
Change it to 1, or use 'rr record -n' (slow).
Consider putting 'kernel.perf_event_paranoid = 1' in /etc/sysctl.conf
[ Info: Preparing trace directory for upload (if your trace is large this may take a few minutes)

### IMPORTANT =============================================================
You are about to upload a trace directory to a publicly accessible location.
Such traces contain any information that was accessed by the traced
executable during its execution. This includes any code loaded, any
secrets entered, the contents of any configuration files, etc.
DO NOT proceed, if you do not wish to make this information publicly available.
By proceeding you explicitly agree to waive any privacy interest in the
uploaded information.
### =======================================================================

if you do using DifferentialEquations after that it should upload a report, and then @Keno knows what to do about it and I need to learn.

I got:

To upload a trace, please authenticate, by visiting:

        https://github.com/login/oauth/authorize?client_id=Iv1.c29a629771fe63c4&state=MqZfBfrPIAMCLvg%3D
using DifferentialEquations

[ Info: Uploading Trace directory
Uploaded to https://s3.amazonaws.com/julialang-dumps/reports/2020-05-17T06-17-32-Gigiux.tar.zst

julia> using DifferentialEquations
[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
ERROR: LoadError: Failed to precompile BoundaryValueDiffEq [764a87c0-6b3e-53db-9096-fe964310641d] to /home/marongiuluigi/.julia/compiled/v1.4/BoundaryValueDiffEq/Levrg_dUdWO.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] top-level scope at none:2
 [8] eval at ./boot.jl:331 [inlined]
 [9] eval(::Expr) at ./client.jl:449
 [10] top-level scope at ./none:3
in expression starting at /home/marongiuluigi/.julia/packages/DifferentialEquations/xCZD1/src/DifferentialEquations.jl:12
ERROR: Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /home/marongiuluigi/.julia/compiled/v1.4/DifferentialEquations/UQdwS_dUdWO.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
 [3] _require(::Base.PkgId) at ./loading.jl:1029
 [4] require(::Base.PkgId) at ./loading.jl:927
 [5] require(::Module, ::Symbol) at ./loading.jl:922

> julia

but I don’t know how to open the zst file:

$ tar -I zstd -xvf 2020-05-17T06-17-32-Gigiux.tar.zst 
tar (child): zstd: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
1 Like