corajr / Faust.jl

Julia wrapper around the Faust DSP compiler.
MIT License
5 stars 2 forks source link

Installing Faust on Julia 1.7.2 fails #2

Open ufechner7 opened 2 years ago

ufechner7 commented 2 years ago
Precompiling project...
  ✗ Faust
  8 dependencies successfully precompiled in 6 seconds (10 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

Fails both on Linux and on Mac.

Full error message:

julia> using Faust
[ Info: Precompiling Faust [b0df9959-3f7b-4e37-9fbf-63cb195e8303]
ERROR: LoadError: InitError: could not load library "/home/ufechner/.julia/artifacts/da33da362bbffbada9bc5c10551c85231d3c94e6/lib/libfaust.so"
libLLVM-11jl.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl ./libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl ./libdl.jl:117
  [3] macro expansion
    @ ~/.julia/packages/JLLWrappers/QpMQW/src/products/library_generators.jl:54 [inlined]
  [4] __init__()
    @ faust_jll ~/.julia/packages/faust_jll/v8hnb/src/wrappers/x86_64-linux-gnu-cxx11.jl:537
  [5] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:768
  [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:854
  [7] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1097
  [8] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
  [9] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
 [11] include(x::String)
    @ Faust ~/.julia/packages/Faust/sNGDa/src/Faust.jl:1
 [12] top-level scope
    @ ~/.julia/packages/Faust/sNGDa/src/Faust.jl:5
 [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
during initialization of module faust_jll
in expression starting at /home/ufechner/.julia/packages/Faust/sNGDa/src/llvm-c-dsp.jl:2
in expression starting at /home/ufechner/.julia/packages/Faust/sNGDa/src/Faust.jl:1
ERROR: Failed to precompile Faust [b0df9959-3f7b-4e37-9fbf-63cb195e8303] to /home/ufechner/.julia/compiled/v1.7/Faust/jl_3t0ekq.
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
corajr commented 2 years ago

Thanks for the report -- the underlying faust_jll package needed to be moved to LLVM 12.

Once https://github.com/JuliaPackaging/Yggdrasil/pull/4965 is landed, it should work again.

corajr commented 2 years ago

Looks like the update to faust_jll landed in Yggdrasil. Please let me know if it works for you now.