[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
Aleksander Alekseev via llvm-dev
llvm-dev at lists.llvm.org
Wed Mar 16 09:07:02 PDT 2016
Hello
I'm trying to compile LLVM, Clang and LLDB on Ubuntu 14.04 LTS as
described on llvm.org [1][2]:
```
sudo apt-get install subversion cmake ninja-build doxygen \
swig libedit-dev libncurses5-dev libxml2-dev
mkdir llvm-src
cd llvm-src
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
svn co http://llvm.org/svn/llvm-project/lldb/trunk lldb
cd clang/tools
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra
cd ../../../projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx
cd ../..
mkdir build
cd build
cmake ../llvm -G Ninja -DLLDB_DISABLE_CURSES:BOOL=TRUE \
-DCMAKE_C_COMPILER=/usr/bin/clang-3.6 \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-3.6
ninja -j4
```
After some time (ninja shows 1836/3922) I got a lot of `undefined
reference` errors:
http://paste.ubuntu.com/15402351/
I also tried to use `gcc` instead of `clang` and `make` instead of
`ninja` --- same result.
What am I doing wrong?
[1] http://clang.llvm.org/get_started.html#build
[2] http://lldb.llvm.org/build.html#BuildingLldbOnLinux
--
Best regards,
Aleksander Alekseev
http://eax.me/
More information about the llvm-dev
mailing list