<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - math.h conflicting noexcept declaration"
href="https://bugs.llvm.org/show_bug.cgi?id=37597">37597</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>math.h conflicting noexcept declaration
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Sun
</td>
</tr>
<tr>
<th>OS</th>
<td>Solaris
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>phantall@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Building on Solaris 10 / sparcv9 hardware:
cmake ../src/llvm \
-DCMAKE_C_COMPILER=gcc-7.2.0 \
-DCMAKE_CXX_COMPILER=g++-7.2.0 \
-DGCC_INSTALL_PREFIX=$(dirname $(dirname $(which gcc-7.2.0))) \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j32
I get the following compile error:
In file included from (...)/projects/libcxx/src/debug.cpp:10:0:
(...)/projects/libcxx/include/math.h: In function 'float acosh(float)':
(...)/projects/libcxx/include/__config:776:21: error: 'float acosh(float)'
conflicts with a previous declaration
# define _NOEXCEPT noexcept
^
(...)/projects/libcxx/include/math.h:1038:68: note: in expansion of macro
'_NOEXCEPT'
inline _LIBCPP_INLINE_VISIBILITY float acosh(float __lcpp_x)
_NOEXCEPT {return ::acoshf(__lcpp_x);}
^~~~~~~~~
... for 34 functions declared in math.h:
acosh, asinh, atanh, cbrt, copysign, erf, erfc, exp2, expm1, fdim, fma, fmax,
fmin, hypot, ilogb, lgamma, llrint, llround, log1p, log2, logb, lrint, lround,
nearbyint, nextafter, nexttoward, remainder, remquo, rint, round, scalbln,
scalbn, tgamma, trunc</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>