SciML / DifferentialEquations.jl

Multi-language suite for high-performance solvers of differential equations and scientific machine learning (SciML) components. Ordinary differential equations (ODEs), stochastic differential equations (SDEs), delay differential equations (DDEs), differential-algebraic equations (DAEs), and more in Julia.
https://docs.sciml.ai/DiffEqDocs/stable/
Other
2.88k stars 228 forks source link

Failure to Precompile on an M1 Mac #853

Closed dylan-asmar closed 2 years ago

dylan-asmar commented 2 years ago

I am having issues getting DifferentialEquations to precompile on an M1 Mac. I have included some of the outputs below. I cut off lines after the seg fault based on a lot of repeated lines. Is this a Julialang issue?

julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.2.0)
  CPU: Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 10

(diffeq_test) pkg> status
      Status `~/Documents/AA277_Project/diffeq_test/Project.toml`
  [0c46a032] DifferentialEquations v7.1.0

(diffeq_test) pkg> precompile
Precompiling project...
  ✗ DifferentialEquations
  0 dependencies successfully precompiled in 115 seconds (129 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]

Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /Users/dylan/.julia/compiled/v1.7/DifferentialEquations/jl_yLyKmO.
┌ Warning: Replacing module `ForwardDiff`
└ @ Base loading.jl:1036
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module LoopVectorization with build ID 110008755290324 is missing from the cache.
│ This may mean LoopVectorization [bdcacae8-1622-11e9-2a5c-532679323890] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module DiffEqBase with build ID 109987981150029 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 ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Module ForwardDiff with build ID 107107062177148 is missing from the cache.
│ This may mean ForwardDiff [f6369f11-7733-5829-9624-2563aa707210] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Replacing module `ForwardDiff`
└ @ Base loading.jl:1036
┌ Warning: Module DiffEqBase with build ID 109987981150029 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 109987981150029 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 109987981150029 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 RecursiveFactorization with build ID 110001770261989 is missing from the cache.
│ This may mean RecursiveFactorization [f2c3362d-daeb-58d1-803e-2bc74f2840b4] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1107
┌ Warning: Replacing module `ForwardDiff`
└ @ Base loading.jl:1036

signal (11): Segmentation fault: 11
in expression starting at /Users/dylan/.julia/packages/DifferentialEquations/4jfQK/src/DifferentialEquations.jl:10
jl_deserialize_value at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_deserialize_value at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_deserialize_value at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_deserialize_value at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)

(diffeq_test) pkg> st -m
      Status `~/Documents/AA277_Project/diffeq_test/Manifest.toml`
  [79e6a3ab] Adapt v3.3.3
  [ec485272] ArnoldiMethod v0.2.0
  [4fba245c] ArrayInterface v3.2.2
  [4c555306] ArrayLayouts v0.7.10
  [aae01518] BandedMatrices v0.16.11
  [62783981] BitTwiddlingConvenienceFunctions v0.1.3
  [764a87c0] BoundaryValueDiffEq v2.7.1
  [fa961155] CEnum v0.4.1
  [2a0fbf3d] CPUSummary v0.1.11
  [49dc2e85] Calculus v0.5.1
  [d360d2e6] ChainRulesCore v1.13.0
  [9e997f8a] ChangesOfVariables v0.1.2
  [fb6a15b2] CloseOpenIntervals v0.1.6
  [38540f10] CommonSolve v0.2.0
  [bbf7d656] CommonSubexpressions v0.3.0
  [34da2185] Compat v3.41.0
  [187b0558] ConstructionBase v1.3.0
  [754358af] DEDataArrays v0.2.0
  [9a962f9c] DataAPI v1.9.0
  [864edb3b] DataStructures v0.18.11
  [e2d170a0] DataValueInterfaces v1.0.0
  [bcd4f6db] DelayDiffEq v5.35.0
  [b429d917] DensityInterface v0.4.0
  [2b5f629d] DiffEqBase v6.81.4
  [459566f4] DiffEqCallbacks v2.21.0
  [c894b116] DiffEqJump v8.2.1
  [77a26b50] DiffEqNoiseProcess v5.9.0
  [163ba53b] DiffResults v1.0.3
  [b552c78f] DiffRules v1.10.0
  [0c46a032] DifferentialEquations v7.1.0
  [b4f34e82] Distances v0.10.7
  [31c24e10] Distributions v0.25.49
  [ffbed154] DocStringExtensions v0.8.6
  [fa6b7ba4] DualNumbers v0.6.6
  [d4d017d3] ExponentialUtilities v1.12.1
  [7034ab61] FastBroadcast v0.1.12
  [9aa1b823] FastClosures v0.3.2
  [1a297f60] FillArrays v0.12.8
  [6a86dc24] FiniteDiff v2.11.0
  [f6369f11] ForwardDiff v0.10.25
  [069b7b12] FunctionWrappers v1.1.2
  [86223c79] Graphs v1.6.0
  [3e5b6fbb] HostCPUFeatures v0.1.7
  [0e44f5e4] Hwloc v2.0.0
  [34004b35] HypergeometricFunctions v0.3.8
  [615f187c] IfElse v0.1.1
  [d25df0c9] Inflate v0.1.2
  [3587e190] InverseFunctions v0.1.2
  [92d709cd] IrrationalConstants v0.1.1
  [42fd0dbc] IterativeSolvers v0.9.2
  [82899510] IteratorInterfaceExtensions v1.0.0
  [692b3bcd] JLLWrappers v1.4.1
  [ef3ab10e] KLU v0.3.0
  [ba0b0d4f] Krylov v0.7.13
  [0b1a1467] KrylovKit v0.5.3
  [2ee39098] LabelledArrays v1.7.3
  [10f19ff3] LayoutPointers v0.1.6
  [d3d80556] LineSearches v7.1.1
  [7ed4a6bd] LinearSolve v1.12.0
  [2ab3a3ac] LogExpFunctions v0.3.6
  [bdcacae8] LoopVectorization v0.12.103
  [1914dd2f] MacroTools v0.5.9
  [d125e4d3] ManualMemory v0.1.8
  [e1d29d7a] Missings v1.0.2
  [46d2c3a1] MuladdMacro v0.2.2
  [d41bc354] NLSolversBase v7.8.2
  [2774e3e8] NLsolve v4.5.1
  [77ba4419] NaNMath v0.3.7
  [8913a72c] NonlinearSolve v0.3.14
  [6fe1bfb0] OffsetArrays v1.10.8
  [429524aa] Optim v1.6.2
  [bac558e1] OrderedCollections v1.4.1
  [1dea7af3] OrdinaryDiffEq v6.6.6
  [90014a1f] PDMats v0.11.6
  [d96e819e] Parameters v0.12.3
  [e409e4f3] PoissonRandom v0.4.0
  [f517fe37] Polyester v0.6.7
  [1d0040c9] PolyesterWeave v0.1.5
  [85a6dd25] PositiveFactorizations v0.2.4
  [d236fae5] PreallocationTools v0.2.3
  [21216c6a] Preferences v1.2.4
  [1fd47b50] QuadGK v2.4.2
  [74087812] Random123 v1.4.2
  [e6cf234a] RandomNumbers v1.5.3
  [3cdcf5f2] RecipesBase v1.2.1
  [731186ca] RecursiveArrayTools v2.24.2
  [f2c3362d] RecursiveFactorization v0.2.9
  [189a3867] Reexport v1.2.2
  [ae029012] Requires v1.3.0
  [ae5879a3] ResettableStacks v1.1.1
  [79098fc4] Rmath v0.7.0
  [3cdde19b] SIMDDualNumbers v0.1.0
  [94e857df] SIMDTypes v0.1.0
  [476501e8] SLEEFPirates v0.6.31
  [0bca4576] SciMLBase v1.26.3
  [efcf1570] Setfield v0.8.2
  [699a6c99] SimpleTraits v0.9.4
  [a2af1166] SortingAlgorithms v1.0.1
  [47a9eef4] SparseDiffTools v1.20.2
  [276daf66] SpecialFunctions v2.1.4
  [aedffcd0] Static v0.4.1
  [90137ffa] StaticArrays v1.4.1
  [82ae8749] StatsAPI v1.2.1
  [2913bbd2] StatsBase v0.33.16
  [4c63d2b9] StatsFuns v0.9.16
  [9672c7b4] SteadyStateDiffEq v1.6.6
  [789caeaf] StochasticDiffEq v6.44.0
  [7792a7ef] StrideArraysCore v0.2.13
  [c3572dad] Sundials v4.9.2
  [3783bdb8] TableTraits v1.0.1
  [bd369af6] Tables v1.6.1
  [8290d209] ThreadingUtilities v0.5.0
  [a2a6695c] TreeViews v0.3.0
  [d5829a12] TriangularSolve v0.1.11
  [3a884ed6] UnPack v1.0.2
  [3d5dd08c] VectorizationBase v0.21.25
  [19fa3120] VertexSafeGraphs v0.2.0
  [700de1a5] ZygoteRules v0.2.2
  [e33a78d0] Hwloc_jll v2.7.0+0
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
  [f50d1b31] Rmath_jll v0.3.0+0
  [fb77eaff] Sundials_jll v5.2.1+0
  [0dad84c5] ArgTools
  [56f22d72] Artifacts
  [2a0f44e3] Base64
  [ade2ca70] Dates
  [8bb1440f] DelimitedFiles
  [8ba89e20] Distributed
  [f43a241f] Downloads
  [9fa8497b] Future
  [b77e0a4c] InteractiveUtils
  [b27032c2] LibCURL
  [76f85450] LibGit2
  [8f399da3] Libdl
  [37e2e46d] LinearAlgebra
  [56ddb016] Logging
  [d6f4376e] Markdown
  [a63ad114] Mmap
  [ca575930] NetworkOptions
  [44cfe95a] Pkg
  [de0858da] Printf
  [3fa0cd96] REPL
  [9a3f8284] Random
  [ea8e919c] SHA
  [9e88b42a] Serialization
  [1a1011a3] SharedArrays
  [6462fe0b] Sockets
  [2f01184e] SparseArrays
  [10745b16] Statistics
  [4607b0f0] SuiteSparse
  [fa267f1f] TOML
  [a4e569a6] Tar
  [8dfed614] Test
  [cf7118a7] UUIDs
  [4ec0a83e] Unicode
  [e66e0078] CompilerSupportLibraries_jll
  [deac9b47] LibCURL_jll
  [29816b5a] LibSSH2_jll
  [c8ffd9c3] MbedTLS_jll
  [14a3606d] MozillaCACerts_jll
  [4536629a] OpenBLAS_jll
  [05823500] OpenLibm_jll
  [bea87d4a] SuiteSparse_jll
  [83775a58] Zlib_jll
  [8e850b90] libblastrampoline_jll
  [8e850ede] nghttp2_jll
  [3f19e933] p7zip_jll
ChrisRackauckas commented 2 years ago

Please report M1 issues to Julialang/julia.