JuliaPackaging / Homebrew.jl

OSX Binary dependency provider for Julia
Other
27 stars 32 forks source link

CLBLAS #195

Open AshtonSBradley opened 6 years ago

AshtonSBradley commented 6 years ago

Hi @staticfloat just reporting this build error:

julia> Pkg.build("CLBLAS")
INFO: Building Homebrew
INFO: Building CLBLAS
WARNING: Compat.KERNEL is deprecated.
  likely near /Users/abradley/.julia/v0.6/CLBLAS/deps/build.jl:43
WARNING: Compat.KERNEL is deprecated.
  likely near /Users/abradley/.julia/v0.6/CLBLAS/deps/build.jl:43
in can_use at /Users/abradley/.julia/v0.6/Homebrew/src/bindeps_integration.jl
WARNING: Compat.KERNEL is deprecated.
  likely near /Users/abradley/.julia/v0.6/CLBLAS/deps/build.jl:43
in package_available at /Users/abradley/.julia/v0.6/Homebrew/src/bindeps_integration.jl
WARNING: The following packages do not have relocatable bottles, installation may fail!
Please report these packages to https://github.com/JuliaLang/Homebrew.jl:
  homebrew/science/clblas
==============================================[ ERROR: CLBLAS ]===============================================

LoadError: failed process: Process(`/Users/abradley/.julia/v0.6/Homebrew/deps/usr/bin/brew install --ignore-dependencies homebrew/science/clblas`, ProcessExited(1)) [1]
while loading /Users/abradley/.julia/v0.6/CLBLAS/deps/build.jl, in expression starting on line 43

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

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

WARNING: CLBLAS had build errors.

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

==============================================================================================================
julia> VERSION
v"0.6.0"
washir commented 6 years ago

I don't know if it's related, but it might be. For me, tapping homebrew/science in general doesn't work, and hence anything from there does not install; in my case it's nlopt. Here is what happens:

julia> VERSION
v"0.6.0"

julia> Homebrew.brew(`tap homebrew/science`)
==> Tapping homebrew/science
Cloning into '/Users/---/.julia/v0.6/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-science'...
remote: Counting objects: 644, done.
remote: Compressing objects: 100% (639/639), done.
remote: Total 644 (delta 0), reused 52 (delta 0), pack-reused 0
Receiving objects: 100% (644/644), 570.60 KiB | 640.00 KiB/s, done.
Error: Invalid formula: /Users/---/.julia/v0.6/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-science/acado.rb
invalid attribute for formula 'homebrew/science/acado': version (nil)
Error: Invalid formula: /Users/---/.julia/v0.6/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-science/nextflow.rb
invalid attribute for formula 'homebrew/science/nextflow': version (nil)
Error: Cannot tap homebrew/science: invalid syntax in tap!
ERROR: failed process: Process(`/Users/---/.julia/v0.6/Homebrew/deps/usr/bin/brew tap homebrew/science`, ProcessExited(1)) [1]
Stacktrace:
 [1] pipeline_error(::Base.Process) at ./process.jl:682
 [2] run(::Cmd) at ./process.jl:651
 [3] #brew#4(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Cmd) at /Users/---/.julia/v0.6/Homebrew/src/API.jl:19
 [4] brew(::Cmd) at /Users/---/.julia/v0.6/Homebrew/src/API.jl:11

Note that this only happens with Julia v0.6; v0.5 works OK:

julia> VERSION
v"0.5.2"

julia> Homebrew.brew(`tap homebrew/science`)

julia>

EDIT: Apparently it only worked for v0.5 because I had already tapped homebrew/science before when it was still functional. With a fresh ~/.julia/v0.5 directory, I get the same as for v0.6:

julia> VERSION
v"0.5.2"

julia> Homebrew.brew(`tap homebrew/science`)
==> Tapping homebrew/science
Cloning into '/Users/---/.julia/v0.5/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-science'...
remote: Counting objects: 644, done.
remote: Compressing objects: 100% (639/639), done.
remote: Total 644 (delta 0), reused 52 (delta 0), pack-reused 0
Receiving objects: 100% (644/644), 570.60 KiB | 0 bytes/s, done.
Error: Invalid formula: /Users/---/.julia/v0.5/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-science/acado.rb
invalid attribute for formula 'homebrew/science/acado': version (nil)
Error: Invalid formula: /Users/---/.julia/v0.5/Homebrew/deps/usr/Library/Taps/homebrew/homebrew-science/nextflow.rb
invalid attribute for formula 'homebrew/science/nextflow': version (nil)
Error: Cannot tap homebrew/science: invalid syntax in tap!
ERROR: failed process: Process(`/Users/---/.julia/v0.5/Homebrew/deps/usr/bin/brew tap homebrew/science`, ProcessExited(1)) [1]
 in pipeline_error(::Base.Process) at ./process.jl:616
 in run(::Cmd) at ./process.jl:592
 in #brew#4(::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Cmd) at /Users/---/.julia/v0.5/Homebrew/src/API.jl:19
 in brew(::Cmd) at /Users/---/.julia/v0.5/Homebrew/src/API.jl:11
staticfloat commented 6 years ago

We're updating the version of Homebrew.jl in #197, that may help with this.