Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with "error[E0004]: non-exhaustive patterns: sys::AVPixelFormat::AV_PIX_FMT_D3D12 not covered", "error[E0004]: non-exhaustive patterns: sys::AVCodecID::AV_CODEC_ID_LEAD and sys::AVCodecID::AV_CODEC_ID_QOA not covered" and "error[E0004]: non-exhaustive patterns: sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM and 1 more not covered". #653

Closed
dreirund opened this issue Feb 28, 2024 · 7 comments

Comments

@dreirund
Copy link

dreirund commented Feb 28, 2024

Ahoj,

I try to build this (latest git checkout) on Arch Linux using ↗ this recipe, or relase 0.9.0 using ↗ this recipe.

Build fails for me with

  • error[E0004]: non-exhaustive patterns: `sys::AVPixelFormat::AV_PIX_FMT_D3D12` not covered,
  • error[E0004]: non-exhaustive patterns: `sys::AVCodecID::AV_CODEC_ID_LEAD` and `sys::AVCodecID::AV_CODEC_ID_QOA` not covered and
  • error[E0004]: non-exhaustive patterns: `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM`, `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM`, `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM` and 1 more not covered.

Terminal output for the latest git checkout:

[...]
   Compiling matchers v0.1.0
   Compiling tempfile v3.9.0
error[E0004]: non-exhaustive patterns: `sys::AVPixelFormat::AV_PIX_FMT_D3D12` not covered
    --> /tmp/makepkg/.cargo/git/checkouts/rust-ffmpeg-2886213a692344b2/89b1802/src/util/format/pixel.rs:480:15
     |
480  |         match value {
     |               ^^^^^ pattern `sys::AVPixelFormat::AV_PIX_FMT_D3D12` not covered
     |
note: `sys::AVPixelFormat` defined here
    --> /tmp/makepkg/build/gossip-git/src/gossip-git/target/release/build/ffmpeg-sys-next-343eb2436a3e100f/out/bindings.rs:5936:1
     |
5936 | pub enum AVPixelFormat {
     | ^^^^^^^^^^^^^^^^^^^^^^
...
6166 |     AV_PIX_FMT_D3D12 = 228,
     |     ---------------- not covered
     = note: the matched value is of type `sys::AVPixelFormat`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
     |
823  ~             AV_PIX_FMT_GBRAP14LE => Pixel::GBRAP14LE,
824  ~             sys::AVPixelFormat::AV_PIX_FMT_D3D12 => todo!(),
     |

   Compiling sharded-slab v0.1.7
error[E0004]: non-exhaustive patterns: `sys::AVCodecID::AV_CODEC_ID_LEAD` and `sys::AVCodecID::AV_CODEC_ID_QOA` not covered
    --> /tmp/makepkg/.cargo/git/checkouts/rust-ffmpeg-2886213a692344b2/89b1802/src/codec/id.rs:679:15
     |
679  |         match value {
     |               ^^^^^ patterns `sys::AVCodecID::AV_CODEC_ID_LEAD` and `sys::AVCodecID::AV_CODEC_ID_QOA` not covered
     |
note: `sys::AVCodecID` defined here
    --> /tmp/makepkg/build/gossip-git/src/gossip-git/target/release/build/ffmpeg-sys-next-343eb2436a3e100f/out/bindings.rs:8242:1
     |
8242 | pub enum AVCodecID {
     | ^^^^^^^^^^^^^^^^^^
...
8513 |     AV_CODEC_ID_LEAD = 270,
     |     ---------------- not covered
...
8721 |     AV_CODEC_ID_QOA = 86121,
     |     --------------- not covered
     = note: the matched value is of type `sys::AVCodecID`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
     |
1327 ~             AV_CODEC_ID_OSQ => Id::OSQ,
1328 ~             sys::AVCodecID::AV_CODEC_ID_LEAD | sys::AVCodecID::AV_CODEC_ID_QOA => todo!(),
     |

error[E0004]: non-exhaustive patterns: `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM`, `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM`, `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM` and 1 more not covered
    --> /tmp/makepkg/.cargo/git/checkouts/rust-ffmpeg-2886213a692344b2/89b1802/src/codec/packet/side_data.rs:61:15
     |
61   |         match value {
     |               ^^^^^ patterns `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM`, `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM`, `sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM` and 1 more not covered
     |
note: `sys::AVPacketSideDataType` defined here
    --> /tmp/makepkg/build/gossip-git/src/gossip-git/target/release/build/ffmpeg-sys-next-343eb2436a3e100f/out/bindings.rs:9391:1
     |
9391 | pub enum AVPacketSideDataType {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
9457 |     AV_PKT_DATA_IAMF_MIX_GAIN_PARAM = 32,
     |     ------------------------------- not covered
9458 |     #[doc = " IAMF Demixing Info Parameter Dat...
9459 |     AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM = 33,
     |     ------------------------------------ not covered
9460 |     #[doc = " IAMF Recon Gain Info Parameter D...
9461 |     AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM = 34,
     |     -------------------------------------- not covered
9462 |     #[doc = " Ambient viewing environment metadata, as defined by H.274. This metadata\n should be associated with a video stream and contains data in the form\n of the AVAmbientViewingEnvironment struct."]
9463 |     AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT = 35,
     |     --------------------------------------- not covered
     = note: the matched value is of type `sys::AVPacketSideDataType`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms
     |
108  ~             AV_PKT_DATA_DYNAMIC_HDR10_PLUS => Type::DYNAMIC_HDR10_PLUS,
109  ~             _ => todo!(),
     |

For more information about this error, try `rustc --explain E0004`.
error: could not compile `ffmpeg-next` (lib) due to 3 previous errors

Regards!

@dreirund dreirund changed the title Build fails with error[E0004]: non-exhaustive patterns: sys::AVPixelFormat::AV_PIX_FMT_D3D12 not covered, error[E0004]: non-exhaustive patterns: sys::AVCodecID::AV_CODEC_ID_LEAD and sys::AVCodecID::AV_CODEC_ID_QOA not covered and error[E0004]: non-exhaustive patterns: sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM and 1 more not covered `error[E0004]: non-exhaustive patterns: sys::AVPixelFormat::AV_PIX_FMT_D3D12 not covered, error[E0004]: non-exhaustive patterns: sys::AVCodecID::AV_CODEC_ID_LEAD and sys::AVCodecID::AV_CODEC_ID_QOA not covered and error[E0004]: non-exhaustive patterns: sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM and 1 more not covered` Feb 28, 2024
@dreirund dreirund changed the title `error[E0004]: non-exhaustive patterns: sys::AVPixelFormat::AV_PIX_FMT_D3D12 not covered, error[E0004]: non-exhaustive patterns: sys::AVCodecID::AV_CODEC_ID_LEAD and sys::AVCodecID::AV_CODEC_ID_QOA not covered and error[E0004]: non-exhaustive patterns: sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM and 1 more not covered` Build fails with "error[E0004]: non-exhaustive patterns: sys::AVPixelFormat::AV_PIX_FMT_D3D12 not covered", "error[E0004]: non-exhaustive patterns: sys::AVCodecID::AV_CODEC_ID_LEAD and sys::AVCodecID::AV_CODEC_ID_QOA not covered" and "error[E0004]: non-exhaustive patterns: sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_MIX_GAIN_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_DEMIXING_INFO_PARAM, sys::AVPacketSideDataType::AV_PKT_DATA_IAMF_RECON_GAIN_INFO_PARAM and 1 more not covered". Feb 28, 2024
@mikedilger
Copy link
Owner

I just pushed an update to the unstable branch. It won't fix the AUR package yet, but if you could try cloning and building from the unstable branch and let me know? If we got it working I'll move it to master and that will fix the AUR package.

@dreirund
Copy link
Author

dreirund commented Feb 28, 2024 via email

@mikedilger
Copy link
Owner

Thanks. Do you know what version of rust you are using? Do you know what version of ffmpeg is on your system? When did you last do a pacman -Syu

@dreirund
Copy link
Author

dreirund commented Feb 28, 2024 via email

@mikedilger
Copy link
Owner

Ok. Your version of ffmpeg N-113802-g22845fbb80 is newer than the latest release. You must be following some master branch AUR version of ffmpeg? Until upstream releases these changes we won't be supporting them because they may change multiple times before then.

I'd just compile gossip without 'video-ffmpeg' feature and click the link that opens the video in your browser.

@dreirund
Copy link
Author

dreirund commented Feb 28, 2024 via email

@mikedilger
Copy link
Owner

We just call https://docs.rs/egui/latest/egui/struct.Context.html#method.open_url

There are a lot of desktop and platform libraries underneath that, and I'm not willing to dive into that adder's nest to try to tweak it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants