<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 - MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP fails to build with newer libstdc++"
href="https://bugs.llvm.org/show_bug.cgi?id=38654">38654</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP fails to build with newer libstdc++
</td>
</tr>
<tr>
<th>Product</th>
<td>Test Suite
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Programs Tests
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tstellar@redhat.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>38406
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20750" name="attach_20750" title="Build fix">attachment 20750</a> <a href="attachment.cgi?id=20750&action=edit" title="Build fix">[details]</a></span>
Build fix
I get the following error with gcc/libstdc++ 8.2 when trying to compile
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP. The attached patch fixes it
for me.
gcc -DNDEBUG
-I/usr/share/llvm-test-suite/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR
-IMultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR -O2 -DNDEBUG -o
MallocPlus.cpp.o -c
/usr/share/llvm-test-suite/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.cpp
In file included from /usr/include/c++/8/map:60,
from
/usr/share/llvm-test-suite/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.h:56,
from
/usr/share/llvm-test-suite/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.cpp:61:
/usr/include/c++/8/bits/stl_tree.h: In instantiation of 'class
std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const
std::__cxx11::basic_string<char>, malloc_plus_memory_entry*>,
std::_Select1st<std::pair<const std::__cxx11::basic_string<char>,
malloc_plus_memory_entry*> >, cmp_str, std::allocator<std::pair<const
std::__cxx11::basic_string<char>, malloc_plus_memory_entry*> > >':
/usr/include/c++/8/bits/stl_map.h:151:17: required from 'class
std::map<std::__cxx11::basic_string<char>, malloc_plus_memory_entry*, cmp_str>'
/usr/share/llvm-test-suite/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.cpp:97:48:
required from here
/usr/include/c++/8/bits/stl_tree.h:452:21: error: static assertion failed:
comparison object must be invocable with two arguments of key type
static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{},</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta] 7.0.0 Release Blockers"
href="https://bugs.llvm.org/show_bug.cgi?id=38406">Bug 38406</a>] [meta] 7.0.0 Release Blockers
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>