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

Failed to precompile on M1 Mac #830

Closed
jonniedie opened this issue Dec 11, 2021 · 2 comments
Closed

Failed to precompile on M1 Mac #830

jonniedie opened this issue Dec 11, 2021 · 2 comments

Comments

@jonniedie
Copy link

julia> using DifferentialEquations
[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e]
│   exception = Required dependency StatsFuns [4c63d2b9-4356-54db-8cca-17b64c39e42c] failed to load from a cache file.
.
.
.
<A lot of Zygote rule method definition overwrite warnings>
.
.
.
┌ Warning: Replacing module `DiffEqBase`
└ @ Base loading.jl:1036
┌ Warning: Module DiffEqBase with build ID 650629705927522 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module DiffEqBase with build ID 650629705927522 is missing from the cache.
│ This may mean DiffEqBase [2b5f629d-d688-5b77-993f-72d75c75574e] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
WARNING: both DiffEqJump and DiffEqBase export "DiffEqBase"; uses of it in module ModelingToolkit must be qualified
ERROR: LoadError: UndefVarError: DiffEqBase not defined
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/ModelingToolkit/r5ZaU/src/systems/diffeqs/sdesystem.jl:187
  [2] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
  [3] include(x::String)
    @ ModelingToolkit ~/.julia/packages/ModelingToolkit/r5ZaU/src/ModelingToolkit.jl:4
  [4] top-level scope
    @ ~/.julia/packages/ModelingToolkit/r5ZaU/src/ModelingToolkit.jl:128
  [5] include
    @ ./Base.jl:418 [inlined]
  [6] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1149
  [7] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
  [9] include
    @ ./Base.jl:418 [inlined]
 [10] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1149
 [11] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
 [12] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
 [13] include
    @ ./Base.jl:418 [inlined]
 [14] 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:1318
 [15] top-level scope
    @ none:1
 [16] eval
    @ ./boot.jl:373 [inlined]
 [17] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [18] top-level scope
    @ none:1
in expression starting at /Users/jonniediegelman/.julia/packages/ModelingToolkit/r5ZaU/src/systems/diffeqs/sdesystem.jl:187
in expression starting at /Users/jonniediegelman/.julia/packages/ModelingToolkit/r5ZaU/src/ModelingToolkit.jl:1
in expression starting at /Users/jonniediegelman/.julia/packages/ParameterizedFunctions/7Njh1/src/ParameterizedFunctions.jl:3
in expression starting at /Users/jonniediegelman/.julia/packages/DifferentialEquations/GBjZU/src/DifferentialEquations.jl:1
ERROR: Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /Users/jonniediegelman/.julia/compiled/v1.7/DifferentialEquations/jl_89UAuH.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997
(jl_V3Z1GA) pkg> st
      Status `/private/var/folders/jk/zbhsb6bd25b9swwhb_3d6v340000gn/T/jl_V3Z1GA/Project.toml`
  [0c46a032] DifferentialEquations v6.20.0

julia> versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.1.0)
  CPU: Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
Environment:
  JULIA_NUM_THREADS = 8
@jonniedie
Copy link
Author

It works on Julia v1.6 for the same DifferentialEquations version, though

@ChrisRackauckas
Copy link
Member

Report to Julialang/julia?

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