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

Errors in suitesparse when compiling #1

Closed
spott opened this issue Jul 12, 2012 · 23 comments
Closed

Errors in suitesparse when compiling #1

spott opened this issue Jul 12, 2012 · 23 comments

Comments

@spott
Copy link

spott commented Jul 12, 2012

When I attempt to compile, I get the error shown here.

Any ideas?

@staticfloat
Copy link
Owner

Looks like SuiteSparse has been updated and Homebrew is lagging behind. I've modified the julia formula to use a custom SuiteSparse formula, and in the meantime submitted a pull request to Homebrew main to accept the new, updated SuiteSparse version.

Additionally, there's a small patch that I needed to get Julia to compile, so I've submitted a pull request to Julia as well, and I'm using my personal fork of Julia in the formula until it is accepted.

@spott
Copy link
Author

spott commented Jul 13, 2012

Hey, thanks for updating so quickly, I'll try again.

@spott
Copy link
Author

spott commented Jul 13, 2012

So, after trying again, I'm getting another error:

https://gist.github.com/3107461

It seems to be complaining about something to do with readline, but I don't know what...

@staticfloat
Copy link
Owner

There's a lot of confusion that arises from Julia's parallel building when
something doesn't go right. I've disabled the parallel build process so
that things are a little easier to read. Can you re-run it now? (I also
submitted a patch for a linker problem that doesn't seem to be your
problem)

Oh, and of course, you will need to brew update in order to make use of
any changes I make in the formula

@spott
Copy link
Author

spott commented Jul 13, 2012

Hopefully this helps:

https://gist.github.com/3107999

Thanks for the help.

@staticfloat
Copy link
Owner

Interesting. This appears to be a segfault while Julia is bootstrapping
the sys0.ji file. This is a julia problem, not a compilation problem. I'd
go ask over at the Julia issues (https://github.com/JuliaLang/julia/issues)
page instead, and see if they can help you.

On Fri, Jul 13, 2012 at 3:36 PM, Andrew Spott <
[email protected]

wrote:

Hopefully this helps:

https://gist.github.com/3107999

Thanks for the help.


Reply to this email directly or view it on GitHub:
#1 (comment)

@samueljohn
Copy link
Contributor

@spott would you mind to try to brew https://github.com/samueljohn/homebrew-julia/blob/master/julia.rb? I had some issues like you (but cannot remember exactly if that one with the segfault was among them). My patch is an attempt (successful so far) to build julia on 10.7.4 with Xcode 4.3.3 (with_out_ the command line tools).

@spott
Copy link
Author

spott commented Jul 15, 2012

@samueljohn I tried to do that... both by using the command you gave (with the install), and by untaping staticfloats homebrew-julia and retapping yours.

It is complaining about a lack of arpack-ng:

Error: No available formula for arpack-ng (dependency of julia)
Please tap it and then try again: brew tap staticfloat/julia

Thanks for the help.

@samueljohn
Copy link
Contributor

oh I see the problem. You need arpack-ng and suite_sparse from staticfloat/julia first. The two dependencies are not automatically installed with the direct web link.

@samueljohn
Copy link
Contributor

So don't untapped staticfloat/julia. Install these two deps and then my julia formula.

@spott
Copy link
Author

spott commented Jul 15, 2012

Ok, I got it to attempt to install, but run into this error:

==> Installing julia
==> Cloning https://github.com/JuliaLang/julia.git
Cloning into '/Library/Caches/Homebrew/julia--git'...
remote: Counting objects: 2276, done.
remote: Compressing objects: 100% (1665/1665), done.
remote: Total 2276 (delta 1212), reused 1162 (delta 534)
Receiving objects: 100% (2276/2276), 2.50 MiB | 162 KiB/s, done.
Resolving deltas: 100% (1212/1212), done.
Submodule 'deps/libuv' (http://github.com/JuliaLang/libuv.git) registered for path 'deps/libuv'
Cloning into 'deps/libuv'...
remote: Counting objects: 11101, done.
remote: Compressing objects: 100% (2776/2776), done.
remote: Total 11101 (delta 8704), reused 10548 (delta 8272)
Receiving objects: 100% (11101/11101), 3.14 MiB | 134 KiB/s, done.
Resolving deltas: 100% (8704/8704), done.
Submodule path 'deps/libuv': checked out 'd48c5bd0adcb08fc8793529aed8a19530efde9ee'
==> Patching
patching file Make.inc
Hunk #1 FAILED at 61.
1 out of 1 hunk FAILED -- saving rejects to file Make.inc.rej
patching file base/Makefile
patching file deps/Makefile
patching file deps/Rmath/src/Makefile
patching file extras/Makefile
Error: Failure while executing: /usr/bin/patch -f -p1 -i 000-homebrew.diff

@samueljohn
Copy link
Contributor

==> Patching
patching file Make.inc
Hunk #1 FAILED at 61.

Well, probably something in Julia's Make.inc was changed upstream in
the meantime. Julia develops quite fast and I think patches are the
wrong way here. I should better try to use homebrew's inreplace
function.

@samueljohn
Copy link
Contributor

Yep, the Make.inc in julia has changed. I adapted to that now.

@spott I updated my formula https://github.com/samueljohn/homebrew-julia/blob/master/julia.rb to use inreplace instead of patches to avoid future breakage.

If you like, please try again.

@spott
Copy link
Author

spott commented Jul 16, 2012

Well, it attempted to compile, but I still get the segfault in the same place:

JULIA usr/lib/julia/sys0.ji
/bin/sh: line 1: 21510 Segmentation fault: 11  /private/tmp/homebrew-julia-HEAD-4Ebo/usr/bin/julia-release-readline -b stage0.jl
make[1]: *** [/private/tmp/homebrew-julia-HEAD-4Ebo/usr/lib/julia/sys0.ji] Error 139

@samueljohn
Copy link
Contributor

Okay, was worth a try.

What does brew --config and brew doctor say? Can you gist that?

@spott
Copy link
Author

spott commented Jul 16, 2012

brew config: https://gist.github.com/3123677

brew doctor: is clean, except for an unlinked keg (which wasn't installed by homebrew, and isn't required by anything).

@samueljohn
Copy link
Contributor

@spott the only difference to my system is:

  • You have installed the command line tools. That should not be a problem. Most often the opposite is true.
  • Your cpu is not detected correctly: CPU: 8-core 64-bit dunno. Mine is CPU: 8-core 64-bit sandybridge.

Any idea what that could be? Do you have one of these ivybridge Retina MBPs?

@spott
Copy link
Author

spott commented Jul 16, 2012

I do have one of the ivy bridge MacBook pros. I don't think that is the
problem though.
On Jul 16, 2012 11:17 AM, "Samuel John" <
[email protected]>
wrote:

@spott the only difference to my system is:

  • You have installed the command line tools. That should not be a problem.
    Most often the opposite is true.
  • Your cpu is not detected correctly: CPU: 8-core 64-bit dunno. Mine is
    CPU: 8-core 64-bit sandybridge.

Any idea what that could be? Do you have one of these ivybridge Retina
MBPs?


Reply to this email directly or view it on GitHub:
#1 (comment)

@samueljohn
Copy link
Contributor

You don't happen to have an older Mac to test on, right?

@spott
Copy link
Author

spott commented Jul 16, 2012

No, I don't... but I did have a very similar problem before when I tried to
install on the old one.
On Jul 16, 2012 11:49 AM, "Samuel John" <
[email protected]>
wrote:

You don't happen to have an older Mac to test on, right?


Reply to this email directly or view it on GitHub:
#1 (comment)

@samueljohn
Copy link
Contributor

As you can guess, I am running out of options. Perhaps post this issue to the julia tracker, they might have a guess or at least know how to debug.

@spott
Copy link
Author

spott commented Jul 16, 2012

I have, thank you for all the help. I'll post the julia issue link when I
am at a computer.
On Jul 16, 2012 11:54 AM, "Samuel John" <
[email protected]>
wrote:

As you can guess, I am running out of options. Perhaps post this issue to
the julia tracker, they might have a guess or at least know how to debug.


Reply to this email directly or view it on GitHub:
#1 (comment)

@staticfloat
Copy link
Owner

I've got your back, @spott.

I'm going to close this issue, marking it as an upstream problem. If the Julia gurus say it's a Homebrew problem, come back here and I'll reopen it.

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

No branches or pull requests

3 participants