-
Notifications
You must be signed in to change notification settings - Fork 23
Building Julia with CXX
malex984 edited this page Nov 8, 2014
·
24 revisions
- Ensure gcc, g++ are version 4.8 at least (on Ubuntu to set gcc with update-alternatives after installing it)
- Note that using GCC 4.9.* less than 4.9.2 will result in the LLVM compilation problem described at http://comments.gmane.org/gmane.comp.compilers.llvm.cvs/193406
- Ensure you have the ubuntu package libedit-dev
- Ensure gfortran is installed with correct symlinks (http://stackoverflow.com/questions/6302209/building-r-package-getting-error-ld-cannot-find-lgfortran see second answer)
- Download Julia 0.4 nightly from source
- Add appropriate Make.user file to top level of Julia source tree:
LLVM_ASSERTIONS=1
LLVM_VER=svn
BUILD_LLVM_CLANG=1
BUILD_LLDB=1
LLDB_VER=master
USE_LLVM_SHLIB=1
LLDB_DISABLE_PYTHON=1
- make (it will fail)
- one can also do
make julia-debug
- one can also do
- patch llvm-svn http://reviews.llvm.org/D5431 by hand (patch doesn't apply automatically):
- add
-lpthread
to the end ofLLVMLibsOptions
insidedeps/llvm-svn/tools/lldb/lib/Makefile
- add
- make (it may fail: if so,
make clean
(?make cleanall?
) and make again -- will take much less time) - Pkg.clone("https://github.com/Keno/Cxx.jl", "Cxx")
- add
LLDB_LIBS += -llldb -llldbHostPosix
to ~/.julia/v0.4/Cxx/deps/BuildBootstrap.Makefile - Pkg.build("Cxx")
- using Cxx