DSP.jl loading error

In trying to sort out a problem I tried loading DSP.jl into a fresh project on both 1.11.2 and 1.10.7. The error message from 1.10.7 is given below. As I am on Windows 11 I am not sure why it is giving me an error message about riscv64-linux-gnu-libgfortran5.

julia> using DSP
 │ Package DSP not found, but a package named DSP is available from a registry.
 │ Install package?
 │   (jl_oCK3Up) pkg> add DSP
 └ (y/n/o) [y]:
   Resolving package versions...
    Updating `C:\Users\jakez\AppData\Local\Temp\jl_oCK3Up\Project.toml`
  [717857b8] + DSP v0.8.0
    Updating `C:\Users\jakez\AppData\Local\Temp\jl_oCK3Up\Manifest.toml`
  [621f4979] + AbstractFFTs v1.5.0
  [0e736298] + Bessels v0.2.8
  [187b0558] + ConstructionBase v1.5.8
  [717857b8] + DSP v0.8.0
  [ffbed154] + DocStringExtensions v0.9.3
  [7a1cc6ca] + FFTW v1.8.0
  [92d709cd] + IrrationalConstants v0.2.2
  [c8e1da08] + IterTools v1.10.0
  [692b3bcd] + JLLWrappers v1.7.0
  [2ab3a3ac] + LogExpFunctions v0.3.29
  [1914dd2f] + MacroTools v0.5.13
  [bac558e1] + OrderedCollections v1.7.0
  [f27b6e38] + Polynomials v4.0.12
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [3cdcf5f2] + RecipesBase v1.3.4
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [efcf1570] + Setfield v1.1.1
  [276daf66] + SpecialFunctions v2.5.0
  [1e83bf80] + StaticArraysCore v1.4.3
  [f5851436] + FFTW_jll v3.3.10+3
  [1d5cc7b8] + IntelOpenMP_jll v2024.2.1+0
  [856f044c] + MKL_jll v2024.2.0+0
  [efe28fd5] + OpenSpecFun_jll v0.5.6+0
  [1317d2d5] + oneTBB_jll v2021.12.0+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [05823500] + OpenLibm_jll v0.8.1+2
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.11.0+0
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
Precompiling project...
  ✓ OrderedCollections
  ✓ JLLWrappers
  28 dependencies successfully precompiled in 27 seconds. 7 already precompiled.
  2 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions
[ Info: Precompiling DSP [717857b8-e6f2-59f4-9121-6e50c889abd2]
ERROR: LoadError: ArgumentError: Platform `riscv64-linux-gnu-libgfortran5` is not an officially supported platform
Stacktrace:
 [1] parse(::Type{Base.BinaryPlatforms.Platform}, triplet::String; validate_strict::Bool)
   @ Base.BinaryPlatforms .\binaryplatforms.jl:753
 [2] parse(::Type{Base.BinaryPlatforms.Platform}, triplet::String)
   @ Base.BinaryPlatforms .\binaryplatforms.jl:671
 [3] (::OpenSpecFun_jll.var"#parse_wrapper_platform#1")(x::Any)
   @ OpenSpecFun_jll C:\Users\jakez\.julia\packages\JLLWrappers\inPJn\src\toplevel_generators.jl:113
 [4] (::OpenSpecFun_jll.var"#make_wrapper_dict#2"{OpenSpecFun_jll.var"#parse_wrapper_platform#1"})(dir::Any, x::Any)
   @ OpenSpecFun_jll C:\Users\jakez\.julia\packages\JLLWrappers\inPJn\src\toplevel_generators.jl:145
 [5] top-level scope
   @ C:\Users\jakez\.julia\packages\JLLWrappers\inPJn\src\toplevel_generators.jl:160
 [6] include
   @ .\Base.jl:495 [inlined]
 [7] 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::String)
   @ Base .\loading.jl:2285
 [8] top-level scope
   @ stdin:3
in expression starting at C:\Users\jakez\.julia\packages\OpenSpecFun_jll\4QIOW\src\OpenSpecFun_jll.jl:2
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile OpenSpecFun_jll [efe28fd5-8261-553b-a9e1-b2916fc3738e] to "C:\\Users\\jakez\\.julia\\compiled\\v1.10\\OpenSpecFun_jll\\jl_33DC.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2531
  [3] compilecache
    @ .\loading.jl:2403 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base .\loading.jl:2037
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
  [6] #mkpidlock#6
    @ C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
  [8] #invokelatest#2
    @ .\essentials.jl:894 [inlined]
  [9] invokelatest
    @ .\essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:3046
 [11] maybe_cachefile_lock
    @ .\loading.jl:3043 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2033
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1875
 [14] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [15] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [16] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1866
 [17] macro expansion
    @ .\loading.jl:1853 [inlined]
 [18] macro expansion
    @ .\lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1816
 [20] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [21] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [22] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1809
 [23] include
    @ .\Base.jl:495 [inlined]
 [24] 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::String)
    @ Base .\loading.jl:2285
 [25] top-level scope
    @ stdin:3
in expression starting at C:\Users\jakez\.julia\packages\SpecialFunctions\Zijv9\src\SpecialFunctions.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] to "C:\\Users\\jakez\\.julia\\compiled\\v1.10\\SpecialFunctions\\jl_32BC.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2531
  [3] compilecache
    @ .\loading.jl:2403 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base .\loading.jl:2037
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
  [6] #mkpidlock#6
    @ C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
  [8] #invokelatest#2
    @ .\essentials.jl:894 [inlined]
  [9] invokelatest
    @ .\essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:3046
 [11] maybe_cachefile_lock
    @ .\loading.jl:3043 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2033
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1875
 [14] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [15] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [16] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1866
 [17] macro expansion
    @ .\loading.jl:1853 [inlined]
 [18] macro expansion
    @ .\lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1816
 [20] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [21] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [22] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1809
 [23] include(mod::Module, _path::String)
    @ Base .\Base.jl:495
 [24] include(x::String)
    @ DSP C:\Users\jakez\.julia\packages\DSP\qzZ42\src\DSP.jl:1
 [25] top-level scope
    @ C:\Users\jakez\.julia\packages\DSP\qzZ42\src\DSP.jl:20
 [26] include
    @ .\Base.jl:495 [inlined]
 [27] 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:2285
 [28] top-level scope
    @ stdin:3
in expression starting at C:\Users\jakez\.julia\packages\DSP\qzZ42\src\Filters\Filters.jl:1
in expression starting at C:\Users\jakez\.julia\packages\DSP\qzZ42\src\DSP.jl:1
in expression starting at stdin:3
ERROR: Failed to precompile DSP [717857b8-e6f2-59f4-9121-6e50c889abd2] to "C:\\Users\\jakez\\.julia\\compiled\\v1.10\\DSP\\jl_D8AD.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2531
  [3] compilecache
    @ .\loading.jl:2403 [inlined]
  [4] (::Base.var"#969#970"{Base.PkgId})()
    @ Base .\loading.jl:2037
  [5] mkpidlock(f::Base.var"#969#970"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:93
  [6] #mkpidlock#6
    @ C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile C:\Users\jakez\.julia\juliaup\julia-1.10.7+0.x64.w64.mingw32\share\julia\stdlib\v1.10\FileWatching\src\pidfile.jl:111
  [8] #invokelatest#2
    @ .\essentials.jl:894 [inlined]
  [9] invokelatest
    @ .\essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#969#970"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base .\loading.jl:3046
 [11] maybe_cachefile_lock
    @ .\loading.jl:3043 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:2033
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1875
 [14] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [15] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [16] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1866
 [17] macro expansion
    @ .\loading.jl:1853 [inlined]
 [18] macro expansion
    @ .\lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1816
 [20] #invoke_in_world#3
    @ .\essentials.jl:926 [inlined]
 [21] invoke_in_world
    @ .\essentials.jl:923 [inlined]
 [22] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1809

julia>
2 Likes

Update JLLWrappers to v1.7.0 in your global environment. This is an issue with stacked environment, where Pkg mixes incompatible packages if already loaded (note that in this environment you nominally have JLLWrappers@1.7.0 but that’s not actually being used).

3 Likes

Thank!
It also worked for me! I had a problem compiling Bootstrap.jl in the notebook only, so I used Pkg.update to update JLLWrappers.

For the record, Julia v1.11.3 will hide this issue (but it remains the fact a technically incompatible version of a package is actually being loaded)