[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors

Evgeny Astigeevich via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 16 09:21:17 PDT 2016


Hi Aleksander,

You have not checked out libcxxabi. It must be checked out together with libcxx.
See http://www.llvm.org/docs/GettingStarted.html  p8.

Kind regards,
Evgeny Astigeevich


-----Original Message-----
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Aleksander Alekseev via llvm-dev
Sent: 16 March 2016 16:07
To: llvm-dev
Subject: [llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors

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/
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list