[llvm-bugs] [Bug 52380] New: error: no matching function for call to object of type '(lambda at /home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)'

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 2 01:06:29 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52380

            Bug ID: 52380
           Summary: error: no matching function for call to object of type
                    '(lambda at
                    /home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target
                    /AMDGPU/SILoadStoreOptimizer.cpp:2051:9)'
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: unassignedbugs at nondot.org
          Reporter: mliska at suse.cz
                CC: llvm-bugs at lists.llvm.org

One can't build LLVM 13 with the current GCC master due to:

[ 3836s] /home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/stage1/bin/clang++
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/build/lib/Target/AMDGPU
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/build/include
-I/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/include -fomit-frame-pointer -O3
-Wall -D_FORTIFY_SOURCE=0 -fstack-protector-strong -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type
-Wno-error  -DNDEBUG -fPIC -fno-semantic-interposition
-fvisibility-inlines-hidden -Wall -Wextra -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wno-noexcept-type
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override
-Wstring-conversion -Wmisleading-indentation -fdiagnostics-color
-ffunction-sections -fdata-sections -flto=thin -g1 -fvisibility=hidden 
-fno-exceptions -std=c++14 -MD -MT
lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILoadStoreOptimizer.cpp.o
-MF
lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILoadStoreOptimizer.cpp.o.d
-o
lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILoadStoreOptimizer.cpp.o
-c
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
[ 3836s] In file included from
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:60:
[ 3836s] In file included from
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/AMDGPU.h:13:
[ 3836s] In file included from
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/include/llvm/IR/PassManager.h:57:
[ 3836s] In file included from
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/list:63:
[ 3836s]
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/bits/stl_list.h:179:13:
error: no matching function for call to object of type '(lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)'
[ 3836s]           { return _M_cmp(*_Iter(__lhs), *_Iter(__rhs)); }
[ 3836s]                    ^~~~~~
[ 3836s]
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/bits/stl_list.h:203:12:
note: in instantiation of member function
'std::__detail::_Scratch_list::_Ptr_cmp<std::_List_const_iterator<(anonymous
namespace)::SILoadStoreOptimizer::CombineInfo>, (lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)>::operator()'
requested here
[ 3836s]               if (__comp(__first2, __first1))
[ 3836s]                   ^
[ 3836s]
/usr/lib/gcc/i586-suse-linux/12/../../../../include/c++/12/bits/list.tcc:640:20:
note: in instantiation of function template specialization
'std::__detail::_Scratch_list::merge<std::__detail::_Scratch_list::_Ptr_cmp<std::_List_const_iterator<(anonymous
namespace)::SILoadStoreOptimizer::CombineInfo>, (lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)>>'
requested here
[ 3836s]                       __counter->merge(__carry, __ptr_comp);
[ 3836s]                                  ^
[ 3836s]
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2050:15:
note: in instantiation of function template specialization
'std::list<(anonymous
namespace)::SILoadStoreOptimizer::CombineInfo>::sort<(lambda at
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9)>'
requested here
[ 3836s]     MergeList.sort(
[ 3836s]               ^
[ 3836s]
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9:
note: candidate function not viable: 2nd argument ('const (anonymous
namespace)::SILoadStoreOptimizer::CombineInfo') would lose const qualifier
[ 3836s]         [] (const CombineInfo &A, CombineInfo &B) {
[ 3836s]         ^
[ 3836s]
/home/abuild/rpmbuild/BUILD/llvm-13.0.0.src/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp:2051:9:
note: conversion candidate of type 'bool (*)(const (anonymous
namespace)::SILoadStoreOptimizer::CombineInfo &, (anonymous
namespace)::SILoadStoreOptimizer::CombineInfo &)'
[ 3836s] 1 error generated.

The code is defined here:
https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp#L2068

-- 
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/20211102/bc097667/attachment-0001.html>


More information about the llvm-bugs mailing list