Created attachment 681457 [details] build.log dev-util/android-tools fails to build with gcc-11 with : core/fastboot/protocol.cpp:250:58: error: ‘numeric_limits’ is not a member of ‘std’ 250 | int64_t r = _command_start(transport, "upload", std::numeric_limits<int32_t>::max(), nullptr); | ^~~~~~~~~~~~~~
Created attachment 681460 [details, diff] protocolcpp_include-gcc11.patch
Just the usual <limits> issue but, to parrot a third time, preferably report with normal *FLAGS anyway. Can reproduce with gcc-11.0.9999-d54be5a.
This may(?) be fixed upstream (haven't tried), protocol.cpp file was removed entirely: https://android.googlesource.com/platform/system/core/+/db511207ed3b2bb4fc422ef83868009b03692e61
I think it's triggered by USE=python.
(In reply to Sergei Trofimovich from comment #4) > I think it's triggered by USE=python. Attached log was -python, I tried both USE=python and -python with same results
Indeed, failing with -python here too.
*** Bug 768471 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8997323e5e0645fc993041d623ccc270e3fe74dc commit 8997323e5e0645fc993041d623ccc270e3fe74dc Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-12 13:17:32 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-12 13:17:43 +0000 dev-util/android-tools: tweak for gcc-11 Fixed-by: andy Closes: https://bugs.gentoo.org/764071 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild | 4 +++- .../files/android-tools-9.0.0-limits-gcc11.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-)