<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - can't build llvm (with libcxx) on ubuntu 14.04"
href="https://llvm.org/bugs/show_bug.cgi?id=31291">31291</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>can't build llvm (with libcxx) on ubuntu 14.04
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>3.9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>akotulski@fb.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I'm having trouble compiling llvm with clang, compiler-rt and libcxx on ubuntu
14.04 (LTS, it's supported until 2019). I used default gcc-4.8.4 which should
be new enough to compile llvm. I used code from 3.9.1 branch
I'm getting bunch of linking errors related to C++ stdlib such as " undefined
reference to `__cxa_allocate_exception'" (see attached files for full output)
I tried passing -DCMAKE_SHARED_LINKER_FLAGS='-lstdc++' but it didn't help.
This is what I ran when creating those files:
cmake -G 'Unix Makefiles' ../llvm -DCMAKE_INSTALL_PREFIX=`pwd`/install
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On
-DLLVM_ENABLE_RTTI=On -DCMAKE_SHARED_LINKER_FLAGS='-lstdc++' && make all
It also fails with very similar/same errors when I ran without
DCMAKE_SHARED_LINKER_FLAGS flag:
cmake -G 'Unix Makefiles' ../llvm -DCMAKE_INSTALL_PREFIX=`pwd`/install
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=Off -DLLVM_ENABLE_EH=On
-DLLVM_ENABLE_RTTI=On && make all</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>