oscar-system/Polymake.jl

cannot precompile

fieker opened this issue · 5 comments

[ Info: Generating module matroid
ERROR: LoadError: InitError: MethodError: no method matching String(::Base.RefValue{String})
Closest candidates are:
  String(::String) at boot.jl:321
  String(::Array{UInt8,1}) at strings/string.jl:39
  String(::Base.CodeUnits{UInt8,String}) at strings/string.jl:77
  ...
Stacktrace:
 [1] __init__() at /home/fieker/.julia/packages/Polymake/Zj1DQ/src/Polymake.jl:99
 [2] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697

sorry, originally

[ Info: Generating module matroid
ERROR: LoadError: InitError: MethodError: no method matching *(::String, ::Base.RefValue{String})
Closest candidates are:
  *(::Any, ::Any, ::Any, ::Any...) at operators.jl:538
  *(::Union{AbstractChar, AbstractString}, ::Union{AbstractChar, AbstractString}...) at strings/basic.jl:251
  *(::Union{Regex, AbstractChar, AbstractString}, ::Union{Regex, AbstractChar, AbstractString}...) at regex.jl:656
  ...
Stacktrace:
 [1] __init__() at /home/fieker/.julia/packages/Polymake/Zj1DQ/src/Polymake.jl:99
 [2] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [3] _require_from_serialized(::String) at ./loading.jl:749

"Fix":
ENV["PATH"] *= ":" * Ninja_jll.PATH[]
ENV["PATH"] *= ":" * Perl_jll.PATH[]
add the [] at the end

That should be fixed in 0.5.2, see https://github.com/oscar-system/Polymake.jl/pull/325/files
(with a isa because at that time only some jll wrappers were using the new style)

@fieker can this be closed now?

I close it