Created attachment 681457 [details]
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]
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:
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):
Author: Sergei Trofimovich <email@example.com>
AuthorDate: 2021-02-12 13:17:32 +0000
Commit: Sergei Trofimovich <firstname.lastname@example.org>
CommitDate: 2021-02-12 13:17:43 +0000
dev-util/android-tools: tweak for gcc-11
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <email@example.com>
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(-)