[llvm-bugs] [Bug 38654] New: MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP fails to build with newer libstdc++
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 20 18:56:49 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38654
Bug ID: 38654
Summary: MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMP fails
to build with newer libstdc++
Product: Test Suite
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Programs Tests
Assignee: unassignedbugs at nondot.org
Reporter: tstellar at redhat.com
CC: llvm-bugs at lists.llvm.org
Blocks: 38406
Created attachment 20750
--> https://bugs.llvm.org/attachment.cgi?id=20750&action=edit
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&>{},
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=38406
[Bug 38406] [meta] 7.0.0 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180821/3f9a62d9/attachment.html>
More information about the llvm-bugs
mailing list