Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875575 - dev-util/android-tools: fails to compile with gcc-13: error: 'uint32_t' does not name a type
Summary: dev-util/android-tools: fails to compile with gcc-13: error: 'uint32_t' does ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL: https://android-review.googlesource.c...
Whiteboard:
Keywords:
: 890704 (view as bug list)
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2022-10-06 07:11 UTC by WANG Xuerui
Modified: 2023-01-27 05:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WANG Xuerui gentoo-dev 2022-10-06 07:11:48 UTC
/usr/bin/x86_64-pc-linux-gnu-g++ -DADB_HOST=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3_build/vendor -I/tmp/portage/dev-util/android-tools-33.
0.3-r1/work/android-tools-33.0.3/vendor/base/libs/androidfw/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/boringssl/include -I/tmp/portage/dev-util/android-tools-33.0.3
-r1/work/android-tools-33.0.3/vendor/adb -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/crypto/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.
0.3/vendor/adb/pairing_auth/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/pairing_connection/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-to
ols-33.0.3/vendor/adb/tls/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/core/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/co
re/libcrypto_utils/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/core/libcutils/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor
/libbase/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/libziparchive/include -I/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/native/inc
lude  -march=native -mtune=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=128 -fuse-linker-plugin -pipe -ggdb -Wl,-O1 -Wl,--as-needed -Wl
,--hash-style=gnu -Wl,-z,pack-relative-relocs -Wno-attributes -std=gnu++20 -MD -MT vendor/CMakeFiles/libadb.dir/adb/client/file_sync_client.cpp.o -MF vendor/CMakeFiles/libadb.dir/adb/client/file_sync_client.cpp.
o.d -o vendor/CMakeFiles/libadb.dir/adb/client/file_sync_client.cpp.o -c /tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/client/file_sync_client.cpp
In file included from /tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/client/file_sync_client.h:22,
                 from /tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/client/file_sync_client.cpp:17:
/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/file_sync_protocol.h:41:5: error: 'uint32_t' does not name a type
   41 |     uint32_t id;           // ID_STAT, et cetera.
      |     ^~~~~~~~
/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/file_sync_protocol.h:1:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
  +++ |+#include <cstdint>
    1 | /*
/tmp/portage/dev-util/android-tools-33.0.3-r1/work/android-tools-33.0.3/vendor/adb/file_sync_protocol.h:42:5: error: 'uint32_t' does not name a type
   42 |     uint32_t path_length;  // <= 1024
      |     ^~~~~~~~

(tens of similar errors following)
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-13 15:41:39 UTC
*** Bug 890704 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2023-01-27 05:26:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5216d3cd0bf3a81048897d15ba4c00e0559ccf11

commit 5216d3cd0bf3a81048897d15ba4c00e0559ccf11
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-01-27 05:23:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-01-27 05:23:31 +0000

    dev-util/android-tools: fix build w/ gcc 13
    
    Closes: https://bugs.gentoo.org/875575
    Signed-off-by: Sam James <sam@gentoo.org>

 .../android-tools/android-tools-33.0.3-r1.ebuild   |  3 ++-
 .../files/android-tools-33.0.3-adb-gcc-13.patch    | 25 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)