intel / media-driver

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

[Bug]: media-driver 24.2.2 fails to compile with gcc-14.1 #1797

Closed heitbaum closed 3 months ago

heitbaum commented 5 months ago

Which component impacted?

Build

Is it regression? Good in old configuration?

No, this issue exist a long time

What happened?

When compiling with gcc-14.1 (rc) media-driver 24.2.2 fails to compile with the following errors.

error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]

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

Others

What impacted?

Unable to compile with gcc-14.1

Debug Information

Na

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

No.

rubin55 commented 4 months ago

FWIW, I just tried to compile 24.2.4 using gcc 14.1.1, this fails with 7 errors:

error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
  109 |         PMOS_INTERFACE osInterface,
      |         ^~~~~~~~~~~~~~

Here's the output log for those interested: output.log

As a workaround you can export CXXFLAGS="-Wno-error=template-id-cdtor", which turns those errors into warnings.

MicroYY commented 4 months ago

Fix by: https://github.com/intel/media-driver/pull/1808

intel-mediadev commented 4 months ago

Auto Created VSMGWL-73974 for further analysis.