Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937420 - media-libs/libaom-3.9.1 fails with gcc:15 due to missing #include <cstdint>
Summary: media-libs/libaom-3.9.1 fails with gcc:15 due to missing #include <cstdint>
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-06 04:58 UTC by tdr
Modified: 2024-08-15 00:29 UTC (History)
2 users (show)

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


Attachments
+#include <cstdint> (mkvparser.cc-gcc-15-fix.patch,248 bytes, patch)
2024-08-06 05:00 UTC, tdr
Details | Diff
fail build log (libaom-3.9.1-fail-build.log,153.38 KB, text/plain)
2024-08-06 05:00 UTC, tdr
Details
success build log (libaom-3.9.1-success-build.log,668.88 KB, text/plain)
2024-08-06 05:01 UTC, tdr
Details
include cstdint (mkvparser.cc-include-cstdint.patch,677 bytes, patch)
2024-08-11 15:37 UTC, tdr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-08-06 04:58:02 UTC
third_party/libwebm/mkvparser/mkvparser.cc needs patched to +#include <cstdint>

Reproducible: Always

Steps to Reproduce:
select gcc-15
emerge -va1 media-libs/libaom-3.9.1


Expected Results:  
/var/tmp/portage/media-libs/libaom-3.9.1/work/libaom-3.9.1/third_party/libwebm/mkvparser/mkvparser.cc:249:7: error: ‘uint32_t’ does not name a type
  249 |       uint32_t ff;
      |       ^~~~~~~~
/var/tmp/portage/media-libs/libaom-3.9.1/work/libaom-3.9.1/third_party/libwebm/mkvparser/mkvparser.cc:24:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
Comment 1 tdr 2024-08-06 05:00:00 UTC
Created attachment 899203 [details, diff]
+#include <cstdint>
Comment 2 tdr 2024-08-06 05:00:59 UTC
Created attachment 899204 [details]
fail build log
Comment 3 tdr 2024-08-06 05:01:23 UTC
Created attachment 899205 [details]
success build log
Comment 4 tdr 2024-08-07 05:36:23 UTC
committed upstream for main of libaom (see also link) and libvpx 

ap...@google.com added comment #3:
Project: aom
Branch: main

commit e448dcd13a9f534c7291903e9ab18dfc4fea54ad
Author: James Zern <jzern@google.com>
Date:   Tue Aug 06 10:38:00 2024

    update libwebm to libwebm-1.0.0.31-10-g3b63004
   
    This fixes a build error seen in gcc 15:
    3b63004 mkvparser/mkvparser.cc: add missing <cstdint> include
   
    Bug: aomedia:357622679
Comment 5 tdr 2024-08-11 15:37:17 UTC
Created attachment 899845 [details, diff]
include cstdint
Comment 6 Larry the Git Cow gentoo-dev 2024-08-15 00:29:43 UTC
The bug has been closed via the following commit(s):

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

commit c0f4bc8800030a7ed449f98312c474148a5b327e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-08-15 00:29:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-15 00:29:17 +0000

    media-libs/libaom: fix build w/ gcc-15
    
    Closes: https://bugs.gentoo.org/937420
    Signed-off-by: Sam James <sam@gentoo.org>

 .../libaom/files/libaom-3.9.1-gcc15-cstdint.patch  | 39 ++++++++++++++++++++++
 media-libs/libaom/libaom-3.9.1.ebuild              |  1 +
 2 files changed, 40 insertions(+)