-
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
Build issues on linux #27
Comments
I found that this is a problem on my side. I had missing dependencies for lldb, but the build didn't fail. Now struggling with another failure: Edit: I hacked around it by adding |
Problem is not solved. Building lldb seemed to succeed, but using Cxx didn't work later on. The reason is that libcxxffi.so has undefined symbols from llvm. From the names of these symbols I guessed that they are related to threading. I guess lldb somehow requires llvm to be build with threads enabled, but julia disables them in (deps/Makefile). I'm now trying to build llvm with threads enabled. |
It works now. There seem to be four problems. Edit: Enabling threads is not necessary, but then you need to pass -lpthread while linking liblldb.so and libcxxffi.so. Here is what I did:
|
@few, I ran into what I suspect is the same error:
I made the changes described in your post above, but got this:
I'm a build noob. Any insights? |
@timholy: As Keno said in some other issue, you don't need lldb. I'd say the easiest way forward for you would be to remove |
Seems like everything in this issue is resolved? If so, I'm gonna close this. Please open new issues for any specific new failures. |
I didn't try the lldb part, but otherwise it works for me. Would you consider dropping the lldb dependency to speedup and simplify the installation for users? |
Yes, that's not an unreasonable request. I'm planning to do something more standalone with lldb in the very near future, so I'll look into build options that allow lldb to use clang as built into this library, but without having to have them be in the same shared library. |
I compiled julia using this Make.user:
LLVM_ASSERTIONS=1
LLVM_VER=svn
BUILD_LLVM_CLANG=1
BUILD_LLDB=1
LLDB_VER=master
USE_LLVM_SHLIB=1
LLDB_DISABLE_PYTHON=1
(this could be added to README.md btw)
and then:
julia> Pkg.clone("https://github.com/Keno/Cxx.jl.git")
INFO: Cloning Cxx from https://github.com/Keno/Cxx.jl.git
INFO: Computing changes...
julia> Pkg.build("Cxx")
INFO: Building Cxx
Tuning for julia installation at: /home/luther/software/julia_cxx/usr/bin
CC /home/luther/.julia/v0.4/Cxx/deps/build/bootstrap.o
LINK /home/luther/.julia/v0.4/Cxx/deps/usr/lib/libcxxffi.so
/usr/bin/ld: cannot find -llldbCore
/usr/bin/ld: cannot find -llldbDataFormatters
/usr/bin/ld: cannot find -llldbExpression
(and lots of other lldb libs)
These libs are indeed missing:
$ ls usr/lib/liblldb*
usr/lib/liblldbAPI.a usr/lib/liblldbBreakpoint.a usr/lib/liblldbCommands.a usr/lib/liblldbInitAndLog.a
The text was updated successfully, but these errors were encountered: