Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build under dev 0.7 #17

Closed
kafisatz opened this issue Apr 3, 2018 · 5 comments
Closed

unable to build under dev 0.7 #17

kafisatz opened this issue Apr 3, 2018 · 5 comments

Comments

@kafisatz
Copy link

kafisatz commented Apr 3, 2018

I ran into the issue below when trying to build (I came across this as I tried using JLD2)

I do not know much about binary dependincies; it is interesting to see that the error refers to a file of BinaryProvider though.

any ideas?

julia> Pkg.checkout("CodecZlib")
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
 in module Main
[ Info: Checking out CodecZlib master...
[ Info: Pulling CodecZlib latest master...
[ Info: No packages to install, update or remove

julia> Pkg.upWARNING: Base.Pkg is deprecated, run `using Pkg` instead
 in module Main
julia> Pkg.update()
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
 in module Main
[ Info: Updating METADATA...
[ Info: Updating CodecZlib master...
┌ Warning: Package FileIO: skipping update (dirty)...
└ @ Pkg.Entry entry.jl:431
[ Info: Updating WinRPM master...
[ Info: Updating JLD2 master...
[ Info: Updating OnlineStatsBase master...
[ Info: Updating PyCall master...
[ Info: Computing changes...
[ Info: No packages to install, update or remove

julia> Pkg.build("CodecZlib")
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
 in module Main
[ Info: Building CodecZlib
┌ Warning: `rsearch(s::AbstractString, c::Char)` is deprecated, use `coalesce(findlast(isequal(c), s), 0)` instead.
│   caller = extract_platform_key(::String) at Prefix.jl:210
└ @ BinaryProvider Prefix.jl:210
┌ Error: ------------------------------------------------------------
│ # Build failed for CodecZlib
│   exception =
│    LoadError: stat: invalid argument (EINVAL)
│    Stacktrace:
│     [1] stat(::String) at .\stat.jl:68
│     [2] isfile at .\stat.jl:303 [inlined]
│     [3] #install#106(::BinaryProvider.Prefix, ::Bool, ::Bool, ::Bool, ::Function, ::String, ::String) at C:\Users\bernhard.konig\.julia\v0.7\BinaryProvider\src\Prefix.jl:273
│     [4] (::getfield(BinaryProvider, Symbol("#kw##install")))(::NamedTuple{(:prefix, :force, :verbose),Tuple{BinaryProvider.Prefix,Bool,Bool}}, ::typeof(BinaryProvider.install), ::String, ::String) at .\<missing>:0
│     [5] top-level scope at C:\Users\bernhard.konig\.julia\v0.7\CodecZlib\deps\build.jl:92
│     [6] include(::Module, ::String) at .\boot.jl:306
│     [7] include_relative(::Module, ::String) at .\loading.jl:1067
│     [8] include at .\sysimg.jl:29 [inlined]
│     [9] include(::String) at .\loading.jl:1101
│     [10] top-level scope
│     [11] eval at .\boot.jl:309 [inlined]
│     [12] eval at .\sysimg.jl:74 [inlined]
│     [13] evalfile(::String, ::Array{String,1}) at .\loading.jl:1096 (repeats 2 times)
│     [14] #6 at .\none:13 [inlined]
│     [15] cd(::getfield(Main, Symbol("##6#8")){String}, ::String) at .\file.jl:61
│     [16] (::getfield(Main, Symbol("##5#7")))(::IOStream) at .\none:12
│     [17] #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
│     [18] open(::Function, ::String, ::String) at .\iostream.jl:367
│     [19] top-level scope
│     [20] eval at .\boot.jl:309 [inlined]
│     [21] eval(::Module, ::Expr) at .\sysimg.jl:74
│     [22] exec_options(::Base.JLOptions) at .\client.jl:304
│     [23] _start() at .\client.jl:455
│    in expression starting at C:\Users\bernhard.konig\.julia\v0.7\CodecZlib\deps\build.jl:92
└ @ Main none:16
┌ Warning: ------------------------------------------------------------
│ # Build error summary
│
│ CodecZlib had build errors.
│
│  - packages with build errors remain installed in C:\Users\bernhard.konig\.julia\v0.7
│  - build the package(s) and all dependencies with `Pkg.build("CodecZlib")`
│  - build a single package by running its `deps/build.jl` script
└ @ Pkg.Entry entry.jl:649

julia> versioninfo()
Julia Version 0.7.0-DEV.4690
Commit 78c7d87369* (2018-03-23 22:25 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
Environment:
  JULIA_BINDIR = C:\Julia-0.7.X\bin\
  JULIA_HOME = C:\Julia-0.6.X\bin\

julia>
@bicycle1885
Copy link
Member

I can see the same problem on AppVeyor, both on 32-bit and 64-bit Windows (https://ci.appveyor.com/project/bicycle1885/codeczlib-jl/build/job/wkj8o5ckq2cj0dd0 and https://ci.appveyor.com/project/bicycle1885/codeczlib-jl/build/job/2we4o0q486fqpwtl).

@staticfloat, could you give us any suggestions, since it seems this problem happens when installing and building CodecZlib.jl via BinaryProvider.jl?

@ararslan
Copy link
Member

ararslan commented Apr 3, 2018

Appears to be JuliaLang/julia#26685

@staticfloat
Copy link
Contributor

Yep, that's exactly what it is. While we're waiting for that to be fixed, I've got a PR that should patch over it on the BinaryProvider end here: JuliaPackaging/BinaryProvider.jl#56

@bicycle1885
Copy link
Member

Thank you all!

@bicycle1885
Copy link
Member

I think this is solved by BinaryProvider.jl v0.2.8. #19 still blocks installing CodecZlib.jl on Julia 0.7, but it is orthogonal to this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants