-
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
lighttpd, fftw, arpack-ng cannot be linked. Homebrew has it already. #3
Comments
This shouldn't be an issue, as Are you using my formula or has yours been modified? All of the |
Yep, I'll check that. Perhaps it's my changes to your formula. |
I have
in my build log You could perhaps try to |
I changed the title to reflect that this issue is about all three conflicts I have found, because you closed the others as dupes. Sorry for kinda "spamming" your issues here :-) Because I use the the julia formula from #2, I am not 100% sure if you can reproduce but to me it looks like you would get the same conflicts, too. Could it be the case that julia copies all the needed libs into it's lib directory? |
My julia formula depends on I installed your formula on my Macbook Pro (via |
Thanks for your help, I'll check that and report back. |
Julia does indeed copy 3rd party libraries into its own local lib dir, (Check out lines 38-43 in my formula for where I manually symlink |
Normally the LDFLAGS are used during linking to find the necessary libs. Perhaps we have to check if julia uses the LDFLAGS in all necessary places in its Makefiles. |
I'm not talking about compile-time finding of libraries, I'm talking about runtime finding of libraries. Dynamic libraries, as opposed to static ones. Did you run the cleanup and prune after removing julia? That's the next thing I can think of...... |
I updated to ML and gfortran (the bottle) is not ready for ML, so I can't install julia right now :-( To the library thing: |
Sorry, gfortran has been updated. I was in the wrong (old) branch. I'll continue testing tomorrow. |
No rush. Enjoy life. :) On Wed, Jul 25, 2012 at 3:11 PM, Samuel John <
|
I expected the same (no problems, due to absolute path linking in the rpath), but I ran into problems, because the rpath was relative...... I think. It may be worthwhile messing with the formula to see if we don't need to do that! And thanks for the update about gfortran; I'm about to upgrade to ML myself. :P |
It turns out that I was the one with the screwed-up system, at least in the case of I seem to be getting errors using the web REPL however, as the julia process backing the session seems to exit randomly. I'll take a further look soon. |
Good to hear, you are making some progress in this linking issues! |
@samueljohn; I've pushed some changes which should solve everything EXCEPT
|
@samueljohn; Is it possible for you to try this out? |
Yes, sorry I have quite a backlog of things to finish first. I hope I can get to my "installing julia"-hobby this evening CET. |
I failed to do this. So sorry. So busy. |
No problem. :D On Wed, Aug 22, 2012 at 2:03 PM, Samuel John [email protected]:
|
This is suspicious and pops up during compilation:
|
Whoopsies, you're absolutely right, I hardcoded a path in there when I really meant to use HOMEBREW_PREFIX. Should be fixed now. |
Thanks. |
Also:
Looks like julia still tries to overwrite glpk which may perhaps break octave (which also needs this lib) |
Is this a problem? |
In
I added # Remove some libs that are already at HOMEBREW_PREFIX/lib
rm Dir["#{lib}/libfftw*"]
rm lib/"libarpack.dylib" to my local version. |
This is normal. In the bootstrapping process, Julia uses one Base module to replace another one. |
@StefanKarpinski thanks! |
@samueljohn, Awesome! It works with FFTW being compiled by Julia then. (Because I am not using the system FFTW in this formula right now, it makes its own FFTW libraries which is why you're getting the FFTW linking problems.) Now, my real question is can you duplicate the errors above by adding
|
@staticfloat I actually was annoyed julia compiled it's own fftw (don't get me wrong: nice that it can do it) so I added the You should, perhaps remove old installs of llvm, fftw and so on to get a fresh start. |
Darn. It must be something on my machine then. (Just to double-check, you |
I am on 10.8. |
Not sure if it is relevant at all, but we build FFTW twice: once for single precision and once for double precision. It's weird, but that's the way the library works. |
Yes, homebrew builds it for single, double and long double in the same way.
|
Ok, sorry for the noise! Carry on... |
This issue here would be fixed by #6. |
I wouldn't stress too much about lighttpd. We are planning on getting rid of it and replacing with nginx. |
I'm going to close this issue as linking problems shouldn't bother us anymore with proper compilation, and open a new issue for my |
Yes can be closed. |
Looks like lighttpd is built by julia, right? It's a dupe to homebrew's and that can make the
brew link
to fail. See below:The text was updated successfully, but these errors were encountered: