Build failed under gcc12, miss header <cstdint> Reproducible: Always Actual Results: In file included from /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.cpp:1: /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:9:25: error: ‘uint8_t’ was not declared in this scope 9 | bool isGzip(std::vector<uint8_t> const &data); | ^~~~~~~ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:5:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 4 | #include <absl/types/optional.h> +++ |+#include <cstdint> 5 | #include <vector> /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:9:32: error: template argument 1 is invalid 9 | bool isGzip(std::vector<uint8_t> const &data); | ^ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:9:32: error: template argument 2 is invalid /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:28: error: ‘uint8_t’ was not declared in this scope 10 | absl::optional<std::vector<uint8_t>> gzipData(std::vector<uint8_t> const &data); | ^~~~~~~ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:28: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:28: error: template argument 1 is invalid /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:28: error: template argument 2 is invalid /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:35: error: template argument 1 is invalid 10 | absl::optional<std::vector<uint8_t>> gzipData(std::vector<uint8_t> const &data); | ^~ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:59: error: ‘uint8_t’ was not declared in this scope 10 | absl::optional<std::vector<uint8_t>> gzipData(std::vector<uint8_t> const &data); | ^~~~~~~ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:59: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:66: error: template argument 1 is invalid 10 | absl::optional<std::vector<uint8_t>> gzipData(std::vector<uint8_t> const &data); | ^ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:10:66: error: template argument 2 is invalid /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:11:28: error: ‘uint8_t’ was not declared in this scope 11 | absl::optional<std::vector<uint8_t>> gunzipData(std::vector<uint8_t> const &data, size_t sizeLimit); | ^~~~~~~ /var/tmp/portage/portage/net-im/telegram-desktop-4.0.2/work/tdesktop-4.0.2-full/Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:11:28: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
For completeness, please include the full build.log. It's especially useful for USE flags for people to reproduce.
I can't upload the complete build.log to bugziila's attachment. It shows "Internal Server Error". So I upload it to pastebin: https://paste.aosc.io/paste/VhbAUSiJAUYNM-vs-tklIA .
(In reply to jinqiang zhang from comment #2) > I can't upload the complete build.log to bugziila's attachment. It shows > "Internal Server Error". So I upload it to pastebin: > https://paste.aosc.io/paste/VhbAUSiJAUYNM-vs-tklIA . Make sure your browser has permissions to read it.
Created attachment 797113 [details] The complete build log (7z compress), same as pastebin
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1af7aefbf83a1092af70ffd11cffd8f964e34660 commit 1af7aefbf83a1092af70ffd11cffd8f964e34660 Author: peeweep <peeweep@0x0.ee> AuthorDate: 2022-08-03 06:00:39 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2022-08-03 17:39:26 +0000 net-im/telegram-desktop: fix gcc12 build fail Closes: https://bugs.gentoo.org/863248 Signed-off-by: peeweep <peeweep@0x0.ee> Closes: https://github.com/gentoo/gentoo/pull/26715 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../files/tdesktop-4.0.2-fix-gcc12-cstdint.patch | 10 ++++++++++ net-im/telegram-desktop/telegram-desktop-4.0.2.ebuild | 1 + 2 files changed, 11 insertions(+)