<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rianquinn@gmail.com" title="Rian Quinn <rianquinn@gmail.com>"> <span class="fn">Rian Quinn</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - libcxx fails to compile with newlib for cmath functions"
href="https://llvm.org/bugs/show_bug.cgi?id=26128">bug 26128</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - libcxx fails to compile with newlib for cmath functions"
href="https://llvm.org/bugs/show_bug.cgi?id=26128#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - libcxx fails to compile with newlib for cmath functions"
href="https://llvm.org/bugs/show_bug.cgi?id=26128">bug 26128</a>
from <span class="vcard"><a class="email" href="mailto:rianquinn@gmail.com" title="Rian Quinn <rianquinn@gmail.com>"> <span class="fn">Rian Quinn</span></a>
</span></b>
<pre>I was able to verify that when using cmake, this does _not_ seem to be an
issue. We compiled using:
cmake ../libcxx/ \
-DLLVM_PATH=~/clang/llvm \
-DLIBCXX_CXX_ABI=libcxxabi \
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=../libcxxabi/include \
-DCMAKE_INSTALL_PREFIX=$HOME/opt/cross/x86_64-elf/ \
-DLIBCXX_SYSROOT=$HOME/opt/cross/x86_64-elf/ \
-DCMAKE_C_COMPILER=$HOME/opt/cross/bin/x86_64-bareflank-gcc \
-DCMAKE_CXX_COMPILER=$HOME/opt/cross/bin/x86_64-bareflank-g++ \
-DLIBCXX_ENABLE_THREADS=OFF \
-DLIBCXX_ENABLE_MONOTONIC_CLOCK=OFF
We had to wrap gcc in a bash script so that we could properly handle compiling
vs linking as cmake insists on using g++ for linking instead of ld, but it
seems to be working great.
I will note that when you compile with GCC, you get a pretty alarming number of
warnings. And it doesn't seem to compile with "-fno-exceptions" as it complains
about "-Werror=return-type".
I'll mark this as resolved, as it seems there is some magic in cmake that is
making this error go away.</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>