-
Notifications
You must be signed in to change notification settings - Fork 107
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
Can't build on OSX #4
Comments
in
or go to |
I am on OSX 10.8.5 and got past the "llvm/ADT/OwningPtr.h" error, but now I am stuck with
To get there at all I had to use
(not sure about USECLANG though) and I had to change "-mmacosx-version-min=10.6" to "-mmacosx-version-min=10.7" in Any ideas how to proceed are greatly appreciated! |
Depending on when you pulled the first time, something may have changed upstream in llvm. You should fetch and rebase to |
I agree that one shouldn't edit the makefiles, but I couldn't figure out how to change "10.6" to "10.7" properly. Without that I ran into the problem described here. Anyways, I will try to fetch and rebase ... |
This may go without saying or not be applicable, but just in case: "transitioning" an existing build from 3.3 to llvm-svn is a bad idea. It will be much better to do a separate clean build with the |
Hmm, sorry, I take that back. @Keno did not specify building Julia against LLVM master in the original email. (however, I know Keno does most of his work on llvm master so this may be more fully tested with that configuration). |
@acroy I've seen that issue, I think it's a bug in lldb. Try this:
in the lldb sources |
Thanks @Keno and @ihnorton. I did a completely fresh start (just to be sure) and Keno's patch got me past the "CPU_SUBTYPE_X86_64_H" issue. Now I am getting
|
@acroy I've seen that one as well at times. I think there's a problem with make dependencies not being set up correctly. IIRC, the solution is to manually:
|
@Keno: You saved me once again! It goes almost through. I end up with
|
I'll commit this on master soon |
Thanks again! Now Julia seems to build fine, but building CXX.jl fails (see next comment). In case someone else encounters the same problems, this is what I did to get to this point:
This got a bit longer than anticipated, but maybe it is helpful for someone. |
Ok, back to the building error. After removing
Maybe there is some mismatch between the build flags used in Make.inc and BuildBootstrap.Makefile? |
LLDB seems to be built with python. Try the above. |
On master, I also added a |
Unfortunately, the patch doesn't help, but maybe I did it wrong. Rebuilding llvm gives me:
|
That's odd. That file shouldn't really exist with those flags. How did you rebuild llvm? I would recommend throwing away the entire llvm-svn/build_Release+Asserts directory in case you have stale state. Thanks for being the guinea pig and trying this out BTW. |
No problem. Like everyone else I am quite excited to try this out :-) Regarding the rebuild: I just did |
The patch to Host.cpp has been committed upstream. |
Nope, doesn't work. I started from scratch and as you say the patches to Host.cpp and debuginfo.cpp are already included. I set |
Ok, I got it to build. I suspect that
Running a test doesn't work
Any ideas? |
@acroy see #7 (comment) for a (temporary) solution. |
@ihnorton : Thanks for the pointer. Where exactly did you add |
Right, just below the def'n of julia_type_to_llvm
|
Sorry for my ignorance, but what then? |
You need to change the corresponding call in Cxx.jl
|
I tried that as well :-) But
Actually, it seems that |
It's On Mon, Jul 28, 2014 at 1:58 PM, acroy notifications@github.com wrote:
|
Try adding cjulia_* to julia.expmap
|
No, doesn't help. In which lib does it end up? |
should be in libjulia. |
Mhmm, it is in |
Try the following diff:
(no need for cjulia then, just Cxx.jl as is). This definitely worked for me on OS X. |
Bingo! Thanks a ton. Now the function is found, but your test kicks me out:
|
Can you run it under lldb and get me a backtrace. |
I hope I did it right. The backtrace is in this gist. |
Unfortunately that backtrace doesn't make alll that much sense. You might have to rebuild llvm in debug mode to get a better backtrace ( |
Same error when I run it from the command line. I can try |
Not that I can think of, sorry. This is usually the point where I give up and build the debug version ;). |
Well, I always wanted to build llvm in debug mode :-) I will let you know once I got the chance to look into it. Thanks again. |
The good news is I can now reproduce this failure so, I should have a fix soon. |
Segfault should be fixed in http://reviews.llvm.org/rL215686. There's one more issue I'll need to work around and I have a build fix pending, so maybe don't try just yet, but soon. Edit: GitHub link: llvm-mirror/clang@8444ae7 |
Exciting! I am looking forward to try this. |
I really would like to try CXX on MacOSX to wrap some C++ libraries and code. I tried to install Cxx.jl on Julia v0.3, OSX 10.9 but I get a fatal error:
This is what I did: Added to ~/.julia/Make.user
In the REPL I typed,
I looked for the staged functions, but I am not sure where/how I should install them. |
You need a development version of Julia – v0.3 doesn't have staged functions. |
Thanks! I will try my currently dormant fork of v0.4 . . . |
Still can't build this. On julia commit With my Make.user:
I get this error:
|
@jtravs That error should be fixed by JuliaLang/julia#9263 |
Thanks! Works perfectly now... |
Motivated by John's success I decided to try again ... and now it seems to work! Thanks! I had to manually change Running the tests give me warnings and notes about overridden virtual functions for headers in |
I still can't build on OS X. I get an error about
My Make.user :
|
Ok, this was fixed by installing the full It's maybe worth adding a line about this in the README. |
I tried to build following your mailing list instructions. However I get the following error during compilation of Julia itself:
My Make.user:
My deps/Versions.make
I also merged the branches and applied the patch as stated on the mailing list.
In issue #3 a similar problem arose on Ubuntu, but I'm on OSX. Any ideas how I can solve this? How do I try "the master branch of lldb instead of release_33"
Apologies for the stupid questions.
I'm unreasonably excited about CXX.jl!
Thanks!
The text was updated successfully, but these errors were encountered: