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

Problems installing on 10.9 #57

Closed
sje30 opened this issue Dec 2, 2013 · 10 comments
Closed

Problems installing on 10.9 #57

sje30 opened this issue Dec 2, 2013 · 10 comments

Comments

@sje30
Copy link

sje30 commented Dec 2, 2013

On my shiny new mac runnnig 10.9, I get the following error with installing julia. Any clues?

brew install --HEAD julia
==> Installing dependencies for julia: openblas-julia, arpack-julia, suit
==> Installing julia dependency: openblas-julia
==> Downloading http://github.com/xianyi/OpenBLAS/archive/v0.2.8.tar.gz
Already downloaded: /Library/Caches/Homebrew/openblas-julia-0.2.8.tar.gz
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> make FC=/usr/local/bin/gfortran
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [getarch_2nd] Error 1
Makefile:129: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not mxcl/homebrew):
https://github.com/staticfloat/homebrew-julia/issues

@staticfloat
Copy link
Owner

Yes, is because the current release of OpenBLAS doesn't yet have your CPU type recorded (It's too new, lucky you). See this issue for discussion. The fix is to manually tell the openblas-julia formula what CPU it should target. Here is a list of values that you can use as the target; I would guess that SANDYBRIDGE is as close as we can get to your CPU type.

So you would need to do this: brew install openblas-julia --target=SANDYBRIDGE, and then everything should work for you.

@sje30
Copy link
Author

sje30 commented Dec 2, 2013

Thank you! trying the compile with --target=SANDYBRIDGE installed openblas-julia; then "brew install julia --HEAD" compiled.

However, testing failed immediately:

$ brew test -v julia
Testing julia
Error: julia: failed

Running the julia binary works though; should I ignore the failure on the test?

@staticfloat
Copy link
Owner

You're not the only one to report this testing error.

What happens if you open up julia and run this:

cd(joinpath(JULIA_HOME,"../share/julia/test"))                           
push!(ARGS,"all")
include("runtests.jl")

@sje30
Copy link
Author

sje30 commented Dec 2, 2013

Thanks. Typed that and I got lots of lines of the sort:

julia> include("runtests.jl")
    From worker 8:       * hashing
    From worker 3:       * keywordargs
    From worker 5:       * strings
    From worker 6:       * unicode
    From worker 4:       * numbers

ending in:

    From worker 7:       * ranges
    SUCCESS

Thank you!

@staticfloat
Copy link
Owner

Looks like all the tests are passing then. I'm not sure why brew thinks they're failing, but perhaps there is some kind of transient error. Thank you for testing for me! If weird stuff crops up in the future, please re-open this issue.

@sje30
Copy link
Author

sje30 commented Dec 2, 2013

Sure. thank you for the prompt support. Let me know if you need anything testing relating to these two issues (SANDYBRIDGE/ "brew test -v julia").

@staticfloat
Copy link
Owner

Aha! I think I just figured something out; Does brew test -v --HEAD julia work for you?

@sje30
Copy link
Author

sje30 commented Dec 2, 2013

Yes!

$ brew test -v --HEAD julia
Testing julia
==> /usr/local/Cellar/julia/HEAD/bin/julia runtests.jl all
    From worker 3:       * keywordargs
...
    From worker 4:       * ranges
    SUCCESS

thanks.

@staticfloat
Copy link
Owner

Fantastic. I've updated the docs to make this a little clearer.

@jbowles
Copy link

jbowles commented May 9, 2014

also, just confirmed that below works on works on 10.9.2

brew install openblas-julia --HEAD
brew install julia
brew test -v julia

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