Aleksander Alekseev via llvm-dev
2016-Mar-16 16:07 UTC
[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/
Krzysztof Parzyszek via llvm-dev
2016-Mar-16 16:19 UTC
[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
On 3/16/2016 11:07 AM, Aleksander Alekseev via llvm-dev wrote:> svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxxTry checking out libcxxabi as well. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Evgeny Astigeevich via llvm-dev
2016-Mar-16 16:21 UTC
[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
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
Aleksander Alekseev via llvm-dev
2016-Mar-17 06:10 UTC
[llvm-dev] Trunk: LLVM build is failing with a lot of `undefined reference` errors
> Try checking out libcxxabi as well.It helped, thanks. But I have another problem now. Regression tests don't pass: http://paste.ubuntu.com/15406485/ Also I discovered that build process sometimes consumes about 10 Gb of RAM. Luckily I have total 16 Gb of RAM. Still I had to close Google Chrome and kill KVM guest systems to compile a project. I think its just an insanity. -- Best regards, Aleksander Alekseev http://eax.me/
Seemingly Similar Threads
- Trunk: LLVM build is failing with a lot of `undefined reference` errors
- Small patch: fix a lot of warnings by scan-build on FreeBSD
- Zorg migration to GitHub/monorepo
- Zorg migration to GitHub/monorepo
- Buildbot numbers for the last week of 6/05/2016 - 6/11/2016