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

Could not tap staticfloat/julia/suite-sparse #9

Closed
cbare opened this issue Sep 21, 2012 · 10 comments
Closed

Could not tap staticfloat/julia/suite-sparse #9

cbare opened this issue Sep 21, 2012 · 10 comments

Comments

@cbare
Copy link

cbare commented Sep 21, 2012

Hi SF,

I got the following error. I hope it's helpful to report it here.

Has the julia/suite-sparse repo moved?

$ brew install gfortran
Error: gfortran-4.2.4-5666.3 already installed

$ brew tap staticfloat/julia
Cloning into '/usr/local/Library/Taps/staticfloat-julia'...
remote: Counting objects: 122, done.
remote: Compressing objects: 100% (90/90), done.
remote: Total 122 (delta 64), reused 89 (delta 31)
Receiving objects: 100% (122/122), 19.34 KiB, done.
Resolving deltas: 100% (64/64), done.
Warning: Could not tap staticfloat/julia/suite-sparse over mxcl/master/suite-sparse
Tapped 3 formula

$ brew tap homebrew/dupes
Cloning into '/usr/local/Library/Taps/homebrew-dupes'...
remote: Counting objects: 569, done.
remote: Compressing objects: 100% (231/231), done.
remote: Total 569 (delta 357), reused 546 (delta 338)
Receiving objects: 100% (569/569), 82.43 KiB, done.
Resolving deltas: 100% (357/357), done.
Tapped 36 formula

$ brew install --HEAD julia
Error: undefined method `env' for Julia:Class
Please report this bug:
    https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
/usr/local/Library/Formula/julia.rb:31
/usr/local/Library/Homebrew/formula.rb:393:in `require'
/usr/local/Library/Homebrew/formula.rb:393:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:20:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:21:in `install'
/usr/local/bin/brew:80:in `send'
/usr/local/bin/brew:80
@staticfloat
Copy link
Owner

Hey cbare, when was the last time you did a brew update?

@linse
Copy link

linse commented Oct 9, 2012

I have the same error, and did not update brew for about a month. Updating it just now now caused the error.
Failed to update tap: staticfloat/julia
So I untapped brew untap staticfloat/julia which gave me Untapped 3 formula and tapped again:

brew tap staticfloat/julia
Cloning into /usr/local/Library/Taps/staticfloat-julia...
remote: Counting objects: 145, done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 145 (delta 79), reused 100 (delta 34)
Receiving objects: 100% (145/145), 22.95 KiB, done.
Resolving deltas: 100% (79/79), done.
Warning: Could not tap staticfloat/julia/suite-sparse over mxcl/master/suite-sparse
Tapped 3 formula

@staticfloat
Copy link
Owner

Interesting, no idea what that Failed to update tap error is about. Am I correct in assuming that in the end, everything worked out correctly when you ran brew untap staticfloat/julia; brew tap staticfloat/julia?

@linse
Copy link

linse commented Oct 10, 2012

The repo seems to work after untap and tap, installing julia does not. Also, I just remembered: when I tried to install Julia the first time (2.5 months ago), I was instructed to try some special magic because I am on a Mac. I think I installed openblas separately. Maybe the above poster did this, too?
And this is exactly where my install fails now:

brew install --HEAD julia
Warning: Your Xcode (4.3.3) is outdated
Please install Xcode 4.5.
Error: No available formula for zlib (dependency of julia)
Please tap it and then try again: brew tap homebrew/dupes
brew tap homebrew/dupes
Cloning into /usr/local/Library/Taps/homebrew-dupes...
remote: Counting objects: 575, done.
remote: Compressing objects: 100% (236/236), done.
remote: Total 575 (delta 361), reused 550 (delta 339)
Receiving objects: 100% (575/575), 82.97 KiB, done.
Resolving deltas: 100% (361/361), done.
Tapped 36 formula
brew install --HEAD julia
Warning: Your Xcode (4.3.3) is outdated
Please install Xcode 4.5.
==> Installing julia dependency: zlib
==> Downloading http://zlib.net/zlib-1.2.7.tar.gz
######################################################################## 100.0%
==> Patching
patching file configure
==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.7
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/zlib/lib
    CPPFLAGS: -I/usr/local/opt/zlib/include

==> Summary
/usr/local/Cellar/zlib/1.2.7: 9 files, 380K, built in 4 seconds
==> Installing julia dependency: openblas
==> Downloading http://github.com/xianyi/OpenBLAS/zipball/v0.2.3
Already downloaded: /Users/linse/Library/Caches/Homebrew/openblas-0.2.3.zip
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make CC=/usr/bin/llvm-gcc -Os -w -pipe -march=core2 -msse4 -mmacosx-version-min=10.7 FC=/usr/local/bin/gfortran
{standard input}:unknown:Undefined local symbol L_.str47
make: *** [getarch] Error 1
Makefile.system:68: Makefile.conf: No such file or directory
Makefile.system:619: Makefile.: No such file or directory
make: *** No rule to make target `Makefile.'.  Stop.

Error: openblas did not build
Logs: /Users/linse/Library/Logs/Homebrew/openblas/
Help: https://github.com/mxcl/homebrew/wiki/troubleshooting

Logs on pastebin

@staticfloat
Copy link
Owner

First off, thank you for the very detailed error report. Secondly, my guess is that this is an issue with the age of your Xcode install. I'm using Xcode 4.5, and while I know that it's quite a large download to upgrade, I'm pretty sure this will fix your problem.

One thing you could try first is installing openblas manually, and specifying --use-clang:

$ brew install staticfloat/julia/openblas --use-clang

If that works, you can then continue building Julia, but no guarantees that the rest of the build process will work, unfortunately. Alternatively, you could download an upgraded Command Line Tools (You'll have to enter your Apple ID to get to that page) and see if that helps out.

The compiler this is most tested on is clang v3.1, I see that you have clang 2.1 installed, but it's not being used, llvm-gcc is.

@linse
Copy link

linse commented Oct 11, 2012

Thanks for your reply. Now this is interesting. Openblas manual install with --use-clang failed. Then I upgraded my Xcode to 4.5.1 and also the Command Line Tools.
The install still fails. Do you have other ideas?

brew install --HEAD julia==> Cloning https://github.com/JuliaLang/julia.git
Updating /Users/linse/Library/Caches/Homebrew/julia--git
Submodule 'deps/libuv' () registered for path 'deps/libuv'
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file extras/Makefile
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 8 with fuzz 1.
patching file deps/Makefile
Hunk #1 succeeded at 672 with fuzz 1 (offset 18 lines).
patch unexpectedly ends in middle of line
Hunk #2 succeeded at 870 with fuzz 1 (offset 23 lines).
patching file Make.inc
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make -C contrib -f repackage_system_suitesparse4.make PREFIX=/usr/local/Cell
==> make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG
==> install_name_tool -add_rpath /usr/local/lib usr/bin/julia-release-basic
==> install_name_tool -add_rpath /usr/local/lib usr/bin/julia-release-readline
==> install_name_tool -add_rpath /usr/local/lib usr/bin/julia-release-webserver
==> install_name_tool -add_rpath /usr/local/Cellar/openblas/0.2.3/lib usr/bin/ju
==> install_name_tool -add_rpath /usr/local/Cellar/openblas/0.2.3/lib usr/bin/ju
==> install_name_tool -add_rpath /usr/local/Cellar/openblas/0.2.3/lib usr/bin/ju
==> make PREFIX=/usr/local/Cellar/julia/HEAD FC=/usr/local/bin/gfortran USECLANG
==> make -C test/unicode/
Error: File exists - /usr/local/Cellar/julia/HEAD/lib/julia

@staticfloat
Copy link
Owner

If Julia is installing, that means that the OpenBLAS install worked! So that's one hurdle down. I guess it really did just need a newer compiler.

I think this is a mismatch between my formula and the Julia build process, I've committed a newer version, can you see if that compiles for you? Also, note that until this pull request goes through, you won't get the documentation or examples in the $HOMEBREW_PREFIX/share/julia folder like you should. Once that pull request is merged however, a brew rm julia; brew install --HEAD julia should fix things right up.

@staticfloat
Copy link
Owner

To try out the newer version, just run brew update and then brew rm julia; brew install -v --HEAD julia. The brew rm julia isn't strictly necessary, it's just in case brew thinks julia's installed and has a half-baked installation around.

@linse
Copy link

linse commented Oct 11, 2012

That works! Thanks for the fix. I did brew test -v julia just for fun, and SUCCESS. :-)

@staticfloat
Copy link
Owner

Awesome, enjoy Julia! I'm going to close this issue since it worked for you and @cbare hasn't shown up for a while. If the problem occurs again for either of you, comment here and I'll re-open.

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

3 participants