intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
1.01k stars 346 forks source link

[Bug]: Missing cstdint compiled with GCC 15 #1848

Open blackteahamburger opened 2 months ago

blackteahamburger commented 2 months ago

Which component impacted?

Build

Is it regression? Good in old configuration?

None

What happened?

Build with GCC 15, too long lines were shrinked:

[362/1593] /usr/bin/x86_64-pc-linux-gnu-g++ -DCLASS_TRACE=0 -DENABLE_KERNELS -DENABLE_XE_KMD -DHEVC_FEI_ENABLE_CMRT -DIGFX_ARL_SUPPORTED -DIGFX_DG2_SUPPORTED -DIGFX_GEN11_ICLLP_SUPPORTED -DIGFX_GEN11_JSL_SUPPOR>
FAILED: media_driver/CMakeFiles/iHD_drv_video_SOFTLET_COMMON.dir/__/media_softlet/agnostic/common/shared/features/media_feature.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DCLASS_TRACE=0 -DENABLE_KERNELS -DENABLE_XE_KMD -DHEVC_FEI_ENABLE_CMRT -DIGFX_ARL_SUPPORTED -DIGFX_DG2_SUPPORTED -DIGFX_GEN11_ICLLP_SUPPORTED -DIGFX_GEN11_JSL_SUPPORTED -DIGFX_>
In file included from /var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_common/agnostic/common/os/user_setting/media_user_setting_definition.h:34,
                 from /var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_common/agnostic/common/os/user_setting/media_user_setting_configure.h:31,
                 from /var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_common/agnostic/common/os/user_setting/media_user_setting.h:49,
                 from /var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_softlet/agnostic/common/shared/features/media_feature.h:29,
                 from /var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_softlet/agnostic/common/shared/features/media_feature.cpp:27:
/var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_common/linux/common/os/mos_defs_specific.h:37:9: error: ‘uint32_t’ does not name a type
   37 | typedef uint32_t                UFKEY, *PUFKEY;                           //!< Handle of user feature key
      |         ^~~~~~~~
/var/tmp/portage/media-libs/libva-intel-media-driver-24.3.1-r1/work/media-driver-intel-media-24.3.1/media_common/linux/common/os/mos_defs_specific.h:32:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this>
   31 | #include <semaphore.h>
  +++ |+#include <cstdint>
   32 | #include <string>

Ref: https://bugs.gentoo.org/938537

What's the usage scenario when you are seeing the problem?

Others

What impacted?

Unable to build.

Debug Information

Intel Media Driver version: 24.3.1

Do you want to contribute a patch to fix the issue?

Yes, I'm glad to submit a patch to fix it