-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
[ 56%] Building CXX object absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o
cd /home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/x86_64-redhat-linux-gnu/absl/debugging && /usr/bin/g++ -Dfailure_signal_handler_EXPORTS -I/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -fPIC -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -o CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o -c /home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc: In function ‘bool absl::lts_20210324::SetupAlternateStackOnce()’:
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:139:32: error: no matching function for call to ‘max(long int, int)’
139 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:61,
from /home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:36:
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:139:32: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘int’)
139 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:61,
from /home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:36:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:139:32: note: deduced conflicting types for parameter ‘const _Tp’ (‘long int’ and ‘int’)
139 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:62,
from /home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:36:
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: candidate: ‘template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)’
3461 | max(initializer_list<_Tp> __l)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:139:32: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long int’
139 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
| ~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:62,
from /home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:36:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)’
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:139:32: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long int’
139 | size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
| ~~~~~~~~^~~~~~~~~~~~~~~~~
make[2]: *** [absl/debugging/CMakeFiles/failure_signal_handler.dir/build.make:85: absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/abseil-cpp-20210324.1/x86_64-redhat-linux-gnu'
make[1]: *** [CMakeFiles/Makefile2:1188: absl/debugging/CMakeFiles/failure_signal_handler.dir/all] Error 2Here is why it does not compile https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=d9f462fb372fb02da032cefd6b091d7582c425ae
matovitch