https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-cpp/abseil-cpp-20200225.2-r1 fails to compile with gcc-11. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Created attachment 703797 [details] build.log build log and emerge --info
Possible context of error(s): /var/tmp/portage/dev-cpp/abseil-cpp-20200225.2-r1/work/abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc:451:26: error: ‘numeric_limits’ is not a member of ‘std’
Yes, same problem here. It was emerging ok with older version of gcc. dev-cpp/abseil-cpp-20200225.2-r1 with 11.1.0: abseil-cpp-20200225.2/absl/synchronization/internal/graphcycles.cc:451:26: error: ‘numeric_limits’ is not a member of ‘std’ 451 | if (x->version == std::numeric_limits<uint32_t>::max()) {
Still there. gcc 11 is more and more present. Moreover, it's pretty tricky to move back to gcc 10 because of this bug, it can break libc and other core packages.
it needs to have > #include <limits> in absl/synchronization/internal/graphcycles.cc right after > #include <array> line. can you test it?
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5282497562878d60e3dfccd91702f4bdd7969baa commit 5282497562878d60e3dfccd91702f4bdd7969baa Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-06-17 17:50:24 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-06-17 17:51:05 +0000 dev-cpp/abseil-cpp: include limits Bug: https://bugs.gentoo.org/786726 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> dev-cpp/abseil-cpp/abseil-cpp-20200225.2-r1.ebuild | 1 + dev-cpp/abseil-cpp/files/include_limits.patch | 10 ++++++++++ 2 files changed, 11 insertions(+)
added a patch, let me know if it helps or not. newer versions should already have it.
(In reply to Thomas Capricelli from comment #4) > Still there. gcc 11 is more and more present. Moreover, it's pretty tricky > to move back to gcc 10 because of this bug, it can break libc and other core > packages. It shouldn't make any difference to glibc as it's written in C, but the libstdc++ often breaks (always?) on new GCC versions. You need to rebuild all libstdc++ consumers on downgrading GCC: https://wiki.gentoo.org/wiki/Upgrading_GCC#libstdc.2B.2B.so.6:_version_.60GLIBCXX_3.4.15.27_not_found (https://wiki.gentoo.org/wiki/Upgrading_GCC#ABI_changes_before_gcc-5.1)
got a report it works now, closing. reopen if needed.
I've tested the last ebuild with gcc-11, I can confirm it now works. Thanks !