JuliaLang / MbedTLS.jl

Wrapper around mbedtls
Other
41 stars 50 forks source link

(v0.7.0-DEV) Build error on Windows 10 #144

Closed EricForgy closed 6 years ago

EricForgy commented 6 years ago

Hi,

This is a companion issue to #133 but I'm on Windows 10 with VS 2017 and all the developer goodies so should have all the latest and greatest Powershell stuff already.

julia> Pkg.build("MbedTLS")
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
 in module Main
[ Info: Building MbedTLS
┌ Warning: `rsearch(s::AbstractString, c::Char)` is deprecated, use `coalesce(findlast(isequal(c), s), 0)` instead.
│   caller = extract_platform_key(::String) at Prefix.jl:223
└ @ BinaryProvider Prefix.jl:223
┌ Warning: `wait(t::Task)` is deprecated, use `fetch(t)` instead.
│   caller = macro expansion at OutputCollector.jl:62 [inlined]
└ @ Core OutputCollector.jl:62
┌ Warning: `wait(t::Task)` is deprecated, use `fetch(t)` instead.
│   caller = wait(::BinaryProvider.OutputCollector) at OutputCollector.jl:158
└ @ BinaryProvider OutputCollector.jl:158
┌ Warning: `wait(t::Task)` is deprecated, use `fetch(t)` instead.
│   caller = wait(::BinaryProvider.OutputCollector) at OutputCollector.jl:159
└ @ BinaryProvider OutputCollector.jl:159
┌ Warning: `find` is deprecated, use `findall` instead.
│   caller = parse_7z_list(::String) at PlatformEngines.jl:366
└ @ BinaryProvider PlatformEngines.jl:366
┌ Warning: `contains(haystack, needle)` is deprecated, use `occursin(needle, haystack)` instead.
│   caller = #75 at <missing>:0 [inlined]
└ @ Core <missing>:0
┌ Warning: `contains(haystack, needle)` is deprecated, use `occursin(needle, haystack)` instead.
│   caller = #75 at <missing>:0 [inlined]
└ @ Core <missing>:0
┌ Error: ------------------------------------------------------------
│ # Build failed for MbedTLS
│   exception =
│    LoadError: MethodError: no method matching keys(::Base.Generator{Array{SubString{String},1},getfield(BinaryProvider, Symbol("##75#81"))})
│    Closest candidates are:
│      keys(::Cmd) at process.jl:838
│      keys(::Tuple) at tuple.jl:42
│      keys(::Tuple, ::Tuple...) at tuple.jl:48
│      ...
│    Stacktrace:
│     [1] pairs(::Base.Generator{Array{SubString{String},1},getfield(BinaryProvider, Symbol("##75#81"))}) at .\abstractdict.jl:138
│     [2] findall at .\array.jl:1969 [inlined]
│     [3] find(::Base.Generator{Array{SubString{String},1},getfield(BinaryProvider, Symbol("##75#81"))}) at .\deprecated.jl:32
│     [4] parse_7z_list(::String) at C:\Users\Eric\.julia\v0.7\BinaryProvider\src\PlatformEngines.jl:366
│     [5] #list_tarball_files#119(::Bool, ::Function, ::String) at C:\Users\Eric\.julia\v0.7\BinaryProvider\src\Prefix.jl:446
│     [6] list_tarball_files at C:\Users\Eric\.julia\v0.7\BinaryProvider\src\Prefix.jl:433 [inlined]
│     [7] #install#109(::BinaryProvider.Prefix, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at C:\Users\Eric\.julia\v0.7\BinaryProvider\src\Prefix.jl:302
│     [8] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{BinaryProvider.Prefix,Bool,Bool}}, ::typeof(BinaryProvider.install), ::String, ::String) at .\<missing>:0
│     [9] top-level scope at C:\Users\Eric\.julia\v0.7\MbedTLS\deps\build.jl:40
│     [10] include(::Module, ::String) at .\boot.jl:306
│     [11] include_relative(::Module, ::String) at .\loading.jl:1067
│     [12] include at .\sysimg.jl:29 [inlined]
│     [13] include(::String) at .\loading.jl:1101
│     [14] top-level scope
│     [15] eval at .\boot.jl:309 [inlined]
│     [16] eval at .\sysimg.jl:74 [inlined]
│     [17] evalfile(::String, ::Array{String,1}) at .\loading.jl:1096 (repeats 2 times)
│     [18] #6 at .\none:13 [inlined]
│     [19] cd(::getfield(Main, Symbol("##6#8")){String}, ::String) at .\file.jl:61
│     [20] (::getfield(Main, Symbol("##5#7")))(::IOStream) at .\none:12
│     [21] #open#321(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(Main, Symbol("##5#7")), ::String, ::Vararg{String,N} where N) at .\iostream.jl:369
│     [22] open(::Function, ::String, ::String) at .\iostream.jl:367
│     [23] top-level scope
│     [24] eval at .\boot.jl:309 [inlined]
│     [25] eval(::Module, ::Expr) at .\sysimg.jl:74
│     [26] exec_options(::Base.JLOptions) at .\client.jl:304
│     [27] _start() at .\client.jl:455
│    in expression starting at C:\Users\Eric\.julia\v0.7\MbedTLS\deps\build.jl:40
└ @ Main none:16
┌ Warning: ------------------------------------------------------------
│ # Build error summary
│
│ MbedTLS had build errors.
│
│  - packages with build errors remain installed in C:\Users\Eric\.julia\v0.7
│  - build the package(s) and all dependencies with `Pkg.build("MbedTLS")`
│  - build a single package by running its `deps/build.jl` script
└ @ Pkg.Entry entry.jl:649

Am I jumping the gun trying this on v0.7.0-DEV?

quinnj commented 6 years ago

Looks like a BinaryProvider issue for windows; @staticfloat @Keno

staticfloat commented 6 years ago

This is fixed on the latest BinaryProvider, try Pkg.checkout(“BinaryProvider”) and run it again.

quinnj commented 6 years ago

Please re-open if there are other issues.