Jutho / TensorKit.jl

A Julia package for large-scale tensor computations, with a hint of category theory
MIT License
234 stars 41 forks source link

libblas not available on nightly #65

Open jishnub opened 2 years ago

jishnub commented 2 years ago

Trying to add TensorKit on julia nightly, I encounter the following error:

ERROR: The following 1 direct dependency failed to precompile:

TensorKit [07d1fe3e-3e46-537d-9eac-e9e13d0d4cec]

Failed to precompile TensorKit [07d1fe3e-3e46-537d-9eac-e9e13d0d4cec] to /home/jb6888/.julia/compiled/v1.9/TensorKit/jl_nB8hAb.
ERROR: LoadError: UndefVarError: libblas not defined
Stacktrace:
 [1] include(mod::Module, _path::String)
   @ Base ./Base.jl:427
 [2] include(x::String)
   @ TensorKit ~/.julia/packages/TensorKit/GctVn/src/TensorKit.jl:6
 [3] top-level scope
   @ ~/.julia/packages/TensorKit/GctVn/src/TensorKit.jl:119
 [4] include
   @ ./Base.jl:427 [inlined]
 [5] 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:1423
 [6] top-level scope
   @ stdin:1
in expression starting at /home/jb6888/.julia/packages/TensorKit/GctVn/src/auxiliary/linalg.jl:5
in expression starting at /home/jb6888/.julia/packages/TensorKit/GctVn/src/TensorKit.jl:6
in expression starting at stdin:1
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/Pkg/src/Types.jl:68
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/Pkg/src/API.jl:1427
 [3] precompile
   @ ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/Pkg/src/API.jl:1060 [inlined]
 [4] #precompile#225
   @ ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/Pkg/src/API.jl:1057 [inlined]
 [5] precompile (repeats 2 times)
   @ ~/packages/julias/julia-latest/share/julia/stdlib/v1.9/Pkg/src/API.jl:1057 [inlined]
 [6] top-level scope
   @ REPL[3]:1

This seems to be because BLAS.libblas has been removed

julia> using LinearAlgebra.BLAS

julia> BLAS.libblas
ERROR: UndefVarError: libblas not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ REPL[6]:1

julia> VERSION
v"1.9.0-DEV.432"
Jutho commented 2 years ago

Yes I will need to change how I deal with this, I will try to fix this soon.