Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863248 - net-im/telegram-desktop-4.0.2 compile failed under gcc12: Telegram/ThirdParty/tgcalls/tgcalls/utils/gzip.h:9:25: error: ‘uint8_t’ was not declared in this scope
Summary: net-im/telegram-desktop-4.0.2 compile failed under gcc12: Telegram/ThirdParty...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 863245
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-08-03 05:58 UTC by jinqiang zhang
Modified: 2022-08-03 17:40 UTC (History)
2 users (show)

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


Attachments
The complete build log (7z compress), same as pastebin (build.log.7z,9.08 KB, application/x-7z-compressed)
2022-08-03 06:37 UTC, jinqiang zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jinqiang zhang 2022-08-03 05:58:12 UTC
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>’?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-03 06:00:40 UTC
For completeness, please include the full build.log. It's especially useful for USE flags for people to reproduce.
Comment 2 jinqiang zhang 2022-08-03 06:14:16 UTC
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 .
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-03 06:29:27 UTC
(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.
Comment 4 jinqiang zhang 2022-08-03 06:37:59 UTC
Created attachment 797113 [details]
The complete build log (7z compress), same as pastebin
Comment 5 Larry the Git Cow gentoo-dev 2022-08-03 17:40:25 UTC
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(+)