# Problems Compiling MKLSparse

**URL:** https://discourse.julialang.org/t/problems-compiling-mklsparse/126131
**Category:** New to Julia
**Created:** [February 20, 2025, 10:59pm UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131 "2025-02-20T22:59:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![PatrickMcFarlane](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/patrickmcfarlane/32/50027_2.png) [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)
#### Post date: [February 20, 2025, 10:59pm UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131/1 "2025-02-20T22:59:44Z")

</div>

I’m having some difficulty with MKLSparse. When the package is precompiling, it throws the following error:

````julia

```ERROR: The following 1 direct dependency failed to precompile:

MKLSparse

Failed to precompile MKLSparse [0c723cd3-b8cd-5d40-b370-ba682dde9aae] to "C:\\Users\\pmcfarla\\.julia\\compiled\\v1.11\\MKLSparse\\jl_9252.tmp".
ERROR: LoadError: too many parameters for type AbstractTriangular
Stacktrace:
 [1] top-level scope
   @ C:\Users\pmcfarla\.julia\packages\MKLSparse\aP1wu\src\interface.jl:17
 [2] include(mod::Module, _path::String)
   @ Base .\Base.jl:558
 [3] include(x::String)
   @ MKLSparse C:\Users\pmcfarla\.julia\packages\MKLSparse\aP1wu\src\MKLSparse.jl:1
 [4] top-level scope
   @ C:\Users\pmcfarla\.julia\packages\MKLSparse\aP1wu\src\MKLSparse.jl:61
 [5] include
   @ .\Base.jl:558 [inlined]
 [6] 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, UInt128}}, source::Nothing)
   @ Base .\loading.jl:2721
 [7] top-level scope
   @ stdin:4
in expression starting at C:\Users\pmcfarla\.julia\packages\MKLSparse\aP1wu\src\interface.jl:10
in expression starting at C:\Users\pmcfarla\.julia\packages\MKLSparse\aP1wu\src\MKLSparse.jl:1
in expression starting at stdin:

````

I’m not very savvy with these things. Hopefully someone can help me to figure out the error.

---

<div class="post-metadata">

### Author: ![cocoa1231](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cocoa1231/32/22215_2.png) [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)
#### Post date: [February 21, 2025, 3:47am UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131/2 "2025-02-21T03:47:26Z")

</div>

Could you provide the details of your current enviornment? You can get that from the REPL

```julia
]st

```

---

<div class="post-metadata">

### Author: ![PatrickMcFarlane](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/patrickmcfarlane/32/50027_2.png) [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)
#### Post date: [February 21, 2025, 4:02am UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131/3 "2025-02-21T04:02:18Z")

</div>

Yes. Here’s the output:

```julia
Status `C:\DoF\Julia Repositories\FiscalHANK_2asset\Project.toml`
  [ec485272] ArnoldiMethod v0.4.0
  [7d9fca2a] Arpack v0.5.4
  [97dd0070] BeepBeep v0.1.0
  [6e4b80f9] BenchmarkTools v1.6.0
  [336ed68f] CSV v0.10.15
  [634d3b9d] DrWatson v2.18.0
  [cc61a311] FLoops v0.2.2
  [f6369f11] ForwardDiff v0.10.38
  [5903a43b] Infiltrator v1.8.6
  [a98d9a8b] Interpolations v0.15.1
  [033835bb] JLD2 v0.5.11
  [0b1a1467] KrylovKit v0.9.4
  [33e6dc65] MKL v0.8.0
  [0c723cd3] MKLSparse v3.0.0
  [76087f3c] NLopt v1.1.3
  [2774e3e8] NLsolve v4.5.1
  [7f7a1694] Optimization v4.1.1
  [4e6fcdb7] OptimizationNLopt v0.3.2
  [afe20452] PCHIPInterpolation v0.2.1
  [d96e819e] Parameters v0.12.3
  [f0f68f2c] PlotlyJS v0.18.15
  [91a5bcdd] Plots v1.40.9
  [8d666b04] PolyChaos v0.2.11
  [3a141323] PolynomialRoots v1.0.0
  [295af30f] Revise v3.7.2
  [efcf1570] Setfield v1.1.1
  [2913bbd2] StatsBase v0.34.4
  [9d95f2ec] TypedTables v1.4.6
  [fdbf4ff8] XLSX v0.10.4
  [37e2e46d] LinearAlgebra v1.11.0
  [2f01184e] SparseArrays v1.11.0

```

But I think I’ve found the problem. Line 11 of interface.jl incorrectly evaluates to “false”:

```julia
julia> VERSION
v"1.11.0-rc1"

julia> VERSION >= v"1.11"
false

```

I think that line should be changed as follows:

```julia
julia> VERSION >= v"1.11-"
true

```

---

<div class="post-metadata">

### Author: ![PatrickMcFarlane](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/patrickmcfarlane/32/50027_2.png) [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)
#### Post date: [February 21, 2025, 1:48pm UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131/4 "2025-02-21T13:48:29Z")

</div>

Only problem now is that I don’t know how to alter the code and use the updated package.
