-
Notifications
You must be signed in to change notification settings - Fork 35
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
llvm: library not found for -lLLVMHexagonCodeGen #23
Comments
What version of
Also, can you run the following? It sounds like you might have a missing
|
ok..
and
in fact llvm was pulled in as a dependency while installing julia |
bump... i'm still stuck at fatal: Could not chdir to '../../../../../../../../../../private/tmp/julia-5wHQ/deps/Rmath': No such file or directory
|
I am having a similar issue @staticfloat, but with
|
@seancarmody Clearing the homebrew cache fixes that particular issue. The build process still fails due to other errors. |
@nilsbecker, can you clear out your homebrew cache and try this again? I have recently pushed some fixes which may clear up some of the problems people have been having. Thanks! |
@staticfloat, ok i tried again:
this fails at the dependency DSFMT, with
|
Looks like it's failing at openlibm, but I can't see why as it's hiding the compilation log. Can you do |
ok, does this work: |
Perfect, looks like we're still hitting the
|
much better, but fails at the testing stage: |
You are the only person to have this |
removing and reinstalling llvm was not very long via homebrew but did not change the result. still this hexagon lib is not found. after some problems with building non-homebrew software with the homebrew installed pkg-config, i have the following env variable set:
resetting this did not help either. |
@nilsbecker; can you try installing |
And if you are tired of trying, you can go ahead and just close this issue. :) |
ok, i am trying again. first https://gist.github.com/nilsbecker/d332cdfa5ea7e04f0a71 pretty much the same result: |
Doesn't llvm comes with Mac OS X by default? Check PATH in .profile or .bashrc. Maybe you added a path to a wrong llvm, which actually does not make, but who knows. |
@Lenskiy, yes, |
@nilsbecker; can you go into your homebrew Cellar, then go into
I'm trying to figure out which libraries of yours are trying to link to the Hexagon code gen...... because none of them should be. If that doesn't show anything, it's likely there's some other piece of software getting linked into Julia that is demanding the Hexagon code gen. |
ok, so in /usr/local/Cellar/llvm/3.2/lib i do
|
Yeap, your LLVM install is definitely fine. I just realized there is another tool I can use; can you edit your julia.rb file at line 125; change it from:
to:
This'll make Julia spit out a lot more stuff. Compile with verbose mode turned on after that, and it shuold (hopefully) give us the command that is causing the error. I want to see what options are being passed to the compiler and linker for that step, as I don't understand why it's looking for a nonexistent library. Thanks! |
ok, tried the julia install again after editing as above. https://gist.github.com/nilsbecker/fb820a316d34f9232f23 |
You ran into the
|
d'oh. i thought those were still set. since |
btw. how do i force brew to overwrite my edited formula? |
Wow, I never saw these last comments. I'm sorry. If brew doesn't want to overwrite your edited formula, there's likely a permissions issue with your homebrew installation. Did you install it as root perhaps? Out of curiosity, what does |
Also, I updated the title to reflect the actual problem here. |
@staticfloat thanks for following up. brew doctor complains about additional config scripts existing on my system outside of homebrew. these are all from third party software (anaconda python distro) this actually includes a config file for llvm in the bin directory of anaconda, which is also on my $PATH. maybe this is the problem? that said, after my system upgrade to mountain lion, brew install --HEAD julia currently fails earlier, with
this is already after reinstalling gfortran on mountain lion. |
Make sure you are installing gfortran with --universal parameter. |
The gfortran problem is because when gfortran gets updated, you must recompile arpack, suitesparse and openblas. I don't know a way around this yet. |
ok, did a fresh install of gfortran with --universal flag, and then reinstalled the julia arpack, suitesparse and openblas support packages. now i get
|
Please install with I would also think that your llvm problems may be caused by your llvm stuff from anaconda. If this ends up being the same LLVM error, can you try removing those files (backing them up, of course, I don't want you to mess up your other software!) and reinstalling? |
I think I am getting the same error. Please check if the error you are getting is If it is, then the problem is in llvm version. LLVM 3.2 installs headers to |
@Lenskiy , you were right; i get
so what can i do about the llvm version? i have 3.3 ; is this just a bug in the fomula? |
@nilsbecker; support for |
... and i'm back to the old
i have updated the gist at https://gist.github.com/nilsbecker/fb820a316d34f9232f23 with the stdout and stderr. |
Can you try removing those non-homebrew files related to |
ok, sure, i had forgotten about that.
this now gives a different error about some .dylibs not being found. see the same gist |
the other think i could try is move the anaconda base directory somewhere and leave my PATH as it was before. should i try that as well? |
Yes, that's right. You need to move it out of not In general, it would help me if you combined your STDERR and STDOUT into one file, so I can see where the errors match up with the normal output. Right now, it's difficult to tell where the missing file errors are coming from. I would leave your PATH alone and just move the llvm files away, and see what happens. |
ok, i did that. ie. move $HOME/Apps/anaconda/ to another directory, left the $PATH alone. brew doctor now only finds a single complaint about a config file unrelated to llvm. then
the stdout&err is on https://gist.github.com/nilsbecker/fb820a316d34f9232f23 |
Progress! This is a really good sign. This is a problem during Julia's bootstrap phase, (when Julia is building up the system image with precompiled code for everything in |
Good news; I ran into this problem on a linux box I'm using. Once I narrow down what the cause is, I'll let you know. |
@nilsbecker can you try again? A fix was pushed that will hopefully fix that problem. |
success! there are some warning during install but brew test -v julia passes. this is after moving my anaconda install to another dir. presently trying again with anaconda in $HOME/Apps/ ... |
ok, that still does not work. so the remaining problem is that the julia install does not tolerate other llvm installations such as the one of the anaconda python distribution. (i suspect some people interested in julia will have that installed also) |
We do not do anything special with building llvm - so this may just be a link problem. |
yes, i think it is. i'm just saying that if possible, it would be good to make the julia build process robust against llvm header files outside homebrew. let me know if i can test something.. |
I don't think it's the header files that are screwing it up, I think it's the libool |
i get the following output on 10.7:
calling brew install --HEAD julia once more then fails with
The text was updated successfully, but these errors were encountered: