Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863245 - media-libs/tg_owt-0_pre20220507 compile failed under gcc12: src/common_video/h265/h265_pps_parser.h:30:5: error: ‘uint32_t’ does not name a type
Summary: media-libs/tg_owt-0_pre20220507 compile failed under gcc12: src/common_video/...
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:
Blocks: gcc-12 863248
  Show dependency tree
 
Reported: 2022-08-03 05:52 UTC by jinqiang zhang
Modified: 2022-08-03 17:40 UTC (History)
3 users (show)

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


Attachments
complete build log (7z compress) (build.log.7z,44.33 KB, application/x-7z-compressed)
2022-08-03 06:33 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:52:47 UTC
Build failed under gcc12, miss header <cstdint>

Reproducible: Always

Actual Results:  
In file included from /var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.cc:11:
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:30:5: error: ‘uint32_t’ does not name a type
   30 |     uint32_t dependent_slice_segments_enabled_flag = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:15:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   14 | #include "absl/types/optional.h"
  +++ |+#include <cstdint>
   15 |
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:31:5: error: ‘uint32_t’ does not name a type
   31 |     uint32_t cabac_init_present_flag = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:31:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:32:5: error: ‘uint32_t’ does not name a type
   32 |     uint32_t output_flag_present_flag = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:32:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:33:5: error: ‘uint32_t’ does not name a type
   33 |     uint32_t num_extra_slice_header_bits = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:33:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:34:5: error: ‘uint32_t’ does not name a type
   34 |     uint32_t num_ref_idx_l0_default_active_minus1 = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:34:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:35:5: error: ‘uint32_t’ does not name a type
   35 |     uint32_t num_ref_idx_l1_default_active_minus1 = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:35:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:37:5: error: ‘uint32_t’ does not name a type
   37 |     uint32_t weighted_pred_flag = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:37:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:38:5: error: ‘uint32_t’ does not name a type
   38 |     uint32_t weighted_bipred_flag = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:38:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:39:5: error: ‘uint32_t’ does not name a type
   39 |     uint32_t lists_modification_present_flag = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:39:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:40:5: error: ‘uint32_t’ does not name a type
   40 |     uint32_t id = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:40:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:41:5: error: ‘uint32_t’ does not name a type
   41 |     uint32_t sps_id = 0;
      |     ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:41:5: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:45:50: error: ‘uint8_t’ does not name a type
   45 |   static absl::optional<PpsState> ParsePps(const uint8_t* data, size_t length);
      |                                                  ^~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:45:50: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:47:33: error: ‘uint8_t’ does not name a type
   47 |   static bool ParsePpsIds(const uint8_t* data,
      |                                 ^~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:47:33: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:49:27: error: ‘uint32_t’ has not been declared
   49 |                           uint32_t* pps_id,
      |                           ^~~~~~~~
/var/tmp/portage/portage/media-libs/tg_owt-0_pre20220507/work/tg_owt-10d5f4bf77333ef6b43516f90d2ce13273255f41/src/common_video/h265/h265_pps_parser.h:50:27: error: ‘uint32_t’ has not been declared
   50 |                           uint32_t* sps_id);
      |                           ^~~~~~~~


emerge --info:

Portage 3.0.34 (python 3.11.0-beta-5, default/linux/amd64/17.1/systemd, gcc-12.1.1, glibc-2.35-r8, 5.18.15-xanmod1 x86_64)
=================================================================
System uname: Linux-5.18.15-xanmod1-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.35
KiB Mem:   131823068 total,  96609628 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 03 Aug 2022 04:47:02 +0000
Head commit of repository gentoo: 40ee104912b92b4a586c3dab86175718c6fe49b2

Timestamp of repository gentoo-zh: Wed, 03 Aug 2022 01:46:48 +0000
Head commit of repository gentoo-zh: 1c58c121429b7653e2f04f43ae675ff75d6c8df7

Timestamp of repository guru: Tue, 02 Aug 2022 12:01:53 +0000
Head commit of repository guru: de6b4cd8dc0cee9419091ee9e5c03ed06b9b95f3

Head commit of repository peeweep: 49886bdaf2d032d08d5f6ba4501cdad9e5a26e32

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
ccache version 4.6.1 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.10.6::gentoo, 3.11.0_beta5-r1::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/ccache:           4.6.1::gentoo
dev-util/cmake:            3.23.3::gentoo
dev-util/meson:            0.63.0::gentoo
sys-apps/baselayout:       2.8-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.3::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             12.1.1_p20220625::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

peeweep
    location: /var/db/repos/peeweep
    sync-type: git
    sync-uri: https://github.com/peeweep/gentoo-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet --with-bdeps=y --jobs=30 --binpkg-changed-deps=y --binpkg-respect-use=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.bfsu.edu.cn/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j30"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="https://mirrors.bfsu.edu.cn/gentoo/experimental/amd64/binpkg/default/linux/17.1/x86-64/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage"
SHELL="/bin/zsh"
USE="X acl alsa amd64 bzip2 cli crypt dri fortran gdbm grub iconv libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre policykit pulseaudio readline seccomp split-usr ssl systemd udev unicode xattr zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-03 06:00:27 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:12:35 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/Rk08e0KhPVJtKjWyGyqTnQ.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-03 06:29:05 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/Rk08e0KhPVJtKjWyGyqTnQ.

That happens when your browser lacks permissions to access the file.
Comment 4 jinqiang zhang 2022-08-03 06:33:34 UTC
Created attachment 797110 [details]
complete build log (7z compress)
Comment 5 jinqiang zhang 2022-08-03 06:36:43 UTC
(In reply to Sam James from comment #3)
> (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/Rk08e0KhPVJtKjWyGyqTnQ.
> 
> That happens when your browser lacks permissions to access the file.

I notice it, Thanks! This attachment I uploaded is the same as pastebin.

And I also opened a pull request to close this bug.
Comment 6 Agostino Sarubbo gentoo-dev 2022-08-03 06:47:47 UTC
confirmed here
Comment 7 Larry the Git Cow gentoo-dev 2022-08-03 17:40:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ea530c548408b19894cc078170fa9088803423c

commit 4ea530c548408b19894cc078170fa9088803423c
Author:     peeweep <peeweep@0x0.ee>
AuthorDate: 2022-08-03 05:54:49 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-08-03 17:39:24 +0000

    media-libs/tg_owt: fix gcc12 build fail
    
    Closes: https://bugs.gentoo.org/863245
    
    Signed-off-by: peeweep <peeweep@0x0.ee>
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 media-libs/tg_owt/tg_owt-0_pre20220507.ebuild | 1 +
 1 file changed, 1 insertion(+)