We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp#L2068
The text was updated successfully, but these errors were encountered:
I've just sent patch candidate: https://reviews.llvm.org/D112990.
Sorry, something went wrong.
Fixed.
We should probably have this in 13.0.1.
Merged: 9e084f4
No branches or pull requests
Extended Description
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:/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp#L2068
The text was updated successfully, but these errors were encountered: