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

Blosc: v0.3.0 => v0.4.1 failed at CentOS #50

Closed
mmikhasenko opened this issue Apr 17, 2018 · 12 comments · Fixed by #54
Closed

Blosc: v0.3.0 => v0.4.1 failed at CentOS #50

mmikhasenko opened this issue Apr 17, 2018 · 12 comments · Fixed by #54

Comments

@mmikhasenko
Copy link

During the update the package building failed witht the error:

============================================[ ERROR: Blosc ]=============================================

LoadError: BinaryProvider.LibraryProduct("${HOME}/.julia/v0.6/Blosc/deps/usr/lib", String["libblosc"], :libblosc, "Prefix(${HOME}/.julia/v0.6/Blosc/deps/usr)") is not satisfied, cannot generate deps.jl!
while loading ${HOME}/.julia/v0.6/Blosc/deps/build.jl, in expression starting on line 40

=========================================================================================================

It is not clear to me what the problem is.

Previous version still works.

julia> Pkg.pin("Blosc", v"0.3.0")
INFO: Creating Blosc branch pinned.0fdded9b.tmp
INFO: No packages to install, update or remove
julia> Pkg.build("Blosc")
INFO: Building Blosc
julia> 
@rob-luke
Copy link

I can confirm the same issue on CentOS7.
Thanks for providing the suggestion to use an older version.

@stevengj
Copy link
Member

What is the output (with the latest version) if you do

rm(Pkg.dir("Blosc", "deps", "usr"), recursive=true)
Pkg.build("Blosc")

@rob-luke
Copy link

rob-luke commented Apr 18, 2018

julia> Pkg.build("Blosc")
INFO: Building Blosc
Info: Downloading https://github.com/stevengj/BloscBuilder/releases/download/v1.14.2+5/Blosc.x86_64-linux-gnu.tar.gz to /home/rluke/.julia/v0.6/Blosc/deps/usr/downloads/Blosc.x86_64-linux-gnu.tar.gz...
[12:50:24] ######################################################################## 100.0%
============================================[ ERROR: Blosc ]=============================================

LoadError: BinaryProvider.LibraryProduct("/home/rluke/.julia/v0.6/Blosc/deps/usr/lib", String["libblosc"], :libblosc, "Prefix(/home/rluke/.julia/v0.6/Blosc/deps/usr)") is not satisfied, cannot generate deps.jl!
while loading /home/rluke/.julia/v0.6/Blosc/deps/build.jl, in expression starting on line 40

=========================================================================================================

============================================[ BUILD ERRORS ]=============================================

WARNING: Blosc had build errors.

 - packages with build errors remain installed in /home/rluke/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("Blosc")`
 - build a single package by running its `deps/build.jl` script

=========================================================================================================

Thanks for the help

@stevengj
Copy link
Member

stevengj commented Apr 18, 2018

Try

push!(ARGS, "--verbose")
Pkg.build("Blosc")

to get more informative output.

@mmikhasenko
Copy link
Author

The previous suggestion to delete and reinstall Blosc folder surprisingly solved the problem at my computer.

julia> rm(Pkg.dir("Blosc", "deps", "usr"), recursive=true)
julia> Pkg.build("Blosc")
INFO: Building Blosc
Info: Downloading https://github.com/stevengj/BloscBuilder/releases/download/v1.14.2+5/Blosc.x86_64-linux-gnu.tar.gz to ${HOME}/.julia/v0.6/Blosc/deps/usr/downloads/Blosc.x86_64-linux-gnu.tar.gz...
[17:57:51] ######################################################################## 100.0%
julia> Pkg.build("Blosc")
INFO: Building Blosc
julia> Pkg.status("Blosc")
 - Blosc                         0.4.1
julia> 

Thank you for your answers!

@stevengj
Copy link
Member

Would be good to know what is causing it to fail for @codles, though, since users shouldn't have to manually delete the deps/usr directory to upgrade.

@floriangriese
Copy link

floriangriese commented May 8, 2018

The same problem occurs on Centos7 julia v0.6.0 for v0.4.2 and

julia> rm(Pkg.dir("Blosc", "deps", "usr"), recursive=true)
julia> Pkg.build("Blosc")

does not solve the problem only version v0.3.0 works. Same Error:

julia> Pkg.build("Blosc")
INFO: Building Blosc
Info: Downloading https://github.com/stevengj/BloscBuilder/releases/download/v1.14.3+2/Blosc.x86_64-linux-gnu.tar.gz to /home/nmrsu/.julia/v0.6/Blosc/deps/usr/downloads/Blosc.x86_64-linux-gnu.tar.gz...
=================================================================================================[ ERROR: Blosc ]==================================================================================================

LoadError: BinaryProvider.LibraryProduct("/home/nmrsu/.julia/v0.6/Blosc/deps/usr/lib", String["libblosc"], :libblosc, "Prefix(/home/nmrsu/.julia/v0.6/Blosc/deps/usr)") is not satisfied, cannot generate deps.jl!
while loading /home/nmrsu/.julia/v0.6/Blosc/deps/build.jl, in expression starting on line 45

@stevengj
Copy link
Member

stevengj commented May 8, 2018

Probably the same as JuliaInterop/ZMQ.jl#176 … the only thing we can do is to add a fallback to deps/build.jl that builds from source if the binary is not working (because of libstdc++ incompatibility).

@dragozzine
Copy link

Had essentially the same error on our Debian 8 machine when trying to install the newest version (v.0.4.2) on julia v0.6.0. Deleting the old files using "rm" did not work, but going back to v0.3.0 using Pkg.pin did work. Just pointing out that this isn't just a CentOS7 problem. Thanks Steven for all your work on julia and these packages.

@stevengj
Copy link
Member

A PR that adds a manual build fallback would be welcome.

@stevengj
Copy link
Member

Can someone on CentOS confirm that this is fixed in the latest master?

Pkg.add("CMakeWrapper")
Pkg.checkout("Blosc")
Pkg.build("Blosc")

@mmikhasenko
Copy link
Author

I switched to Julia from the provided Linux binaries. I can only confirm that current Blosc master builds fine together with CMakeWrapper. Hopefully, someone with from-source-julia can confirm that the problem is solved. Thank you @stevengj !

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

Successfully merging a pull request may close this issue.

5 participants