-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Failing to build with llvm3.3 #3418
Comments
Can you give some more context? What OS are you running? Is this OS X? I was unaware that LLVM 3.3 had even been released. |
Eh, sorry for leaving that information out. My distro is Arch Linux and here's the distro specific packagelist for llvm: https://www.archlinux.org/packages/?q=llvm |
We will move to LLVM 3.3 when it is officially released. That doesn't seem to be the case yet, but it will happen soon. Thanks for the heads up. |
Ok, it looks like LLVM 3.3 is now official. Since we hope to release 0.2 in a couple weeks, I'd propose waiting until after that to move to 3.3. cc @StefanKarpinski @ViralBShah |
I agree. As part as moving to LLVM 3.3, we should also move to the new MCJIT engine, since the old one is now deprecated and will be removed in 3.4 |
That might be a significant undertaking, but it's a worthwhile one since MCJIT has much better support for doing things with jitted code like debugging it and saving it to binaries. So it's probably a crucial step forward. |
Where did you see the deprecation notice? The only thing I found is that exception handling will be deprecated in 3.4. MCJIT does not support incremental Function compilation which might be painful - at very best - to adapt to: "Basically, with MCJIT once code has been generated for a module nothing else can be added to the Module." There are plans to support multiple modules in one instance, presumably with runtime linking, but this is not yet implemented. Relevant discussions: (I hope I'm wrong! MCJIT will bring some great things if it is feasible to switch. The ObjectCache facility should fix #260 almost for free) |
If you can't interleave compilation and execution, one wonders what they mean by "JIT". |
Indeed. I was under the impression that MCJIT was a replacement for the old JIT just using the new MC backend, but that impression seems to be misguided. I also may have misinterpreted the deprecation of EH for the deprecation of the JIT. |
I like the idea of using llvm 3.3 for the 0.2 release. We should just give enough time for release candidates so that it can be widely tested, and also so that packages have enough time to update to 0.2. |
Let's not cram any more major changes into 0.2. The whole MCJIT discussion is worrying, but this at least is encouraging: http://llvm.1065342.n5.nabble.com/MCJIT-and-Lazy-Compilation-td54448.html#a55039 |
That is encouraging. I think I had to do something like that on .NET; you just keep making new modules as necessary. We might have to dump 100 .so's, but that's not the end of the world. |
Ugh. That would be really annoying – merging .so files seems to be a "hard problem". However, I suspect that with LLVM there will be the option to generate bitcode instead, which should be mergable. |
For what it's worth, we've never really needed the true-JIT feature of the compiler (the current JIT delays compiling a function until it is called for the first time -- but we don't generate the function until we need it anyways). Also, I tried turning on MCJIT a year or so ago and it worked on linux easily and failed completely on Mac. |
That's good to know. Presumably it's more stable across platforms at this point. Especially since LLVM is largely backed by Apple, we can be pretty confident that things will eventually work well on OS X. |
The problem is that none of the developers of LLVM really need the JIT, the sole raison d'être of the MCJIT project is to be used with |
Hopefully, even if that's the case, they recognize that JIT functionality On Tuesday, June 18, 2013, Keno Fischer wrote:
|
Just wanted to jump in and say Homebrew has moved to |
Yeah, I'll work on it. (I have it pretty much done on my kf/ccall3 branch anyway, so I'll extract the relevant changes). |
Thanks @loladiro . Yes, we will move to llvm 3.3 soon, but nobody should ever have an expectation that they can build julia against whatever version of llvm happens to be lying around. The idea of finding libraries only by name and not version is totally broken in the case of llvm, and probably for many other libraries too. Right now it's not a big problem, but the day may come when we decide not to upgrade llvm, or that doing so takes a very long time. Homebrew should not be casually dropping in new versions and expecting everything to just work. |
Thanks @loladiro! :D |
@JeffBezanson I'm not certain the Homebrew maintainers realize the incompatibility between We can, of course, maintain our own |
Using the system llvm package is failing since it got updated to 3.3
src/codegen.cpp: julia won't find some of the headers as they got moved into a subfolder (llvm/DerivedTypes.h, LLVMContext.h, Module.h, Intrinsics.h, Attributes.h, IRBuilder.h moved into llvm/IR/)
But fixing this doesn't solve it
Here is the log for the failure http://pastie.org/8050095
Edit: Forgot the system info
Distro: Arch Linux
The text was updated successfully, but these errors were encountered: