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

Make fails on CentOS 8 "use of unstable library feature 'matches_macro'" #688

Closed
wreiske opened this issue Nov 2, 2020 · 1 comment
Closed

Comments

@wreiske
Copy link

wreiske commented Nov 2, 2020

make fails on CentOS 8 with a fresh clone of fcbf789

make[1]: Entering directory '/root/quic/nginx-1.16.1'
cd ../quiche && cargo build --release --no-default-features
    Updating crates.io index
  Downloaded lazy_static v1.4.0
  Downloaded log v0.4.11
  Downloaded cmake v0.1.44
  Downloaded libc v0.2.80
  Downloaded libm v0.2.1
  Downloaded cc v1.0.61
  Downloaded cfg-if v0.1.10
  Downloaded ring v0.16.15
  Downloaded spin v0.5.2
  Downloaded untrusted v0.7.1
  Downloaded once_cell v1.4.1
   Compiling cc v1.0.61
   Compiling libc v0.2.80
   Compiling libm v0.2.1
   Compiling log v0.4.11
   Compiling spin v0.5.2
   Compiling cfg-if v0.1.10
   Compiling untrusted v0.7.1
   Compiling once_cell v1.4.1
   Compiling lazy_static v1.4.0
   Compiling cmake v0.1.44
   Compiling ring v0.16.15
   Compiling quiche v0.6.0 (/root/quic/quiche)
error[E0658]: use of unstable library feature 'matches_macro'
    --> src/lib.rs:1075:5
     |
1075 |     matches!(
     |     ^^^^^^^
     |
     = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> src/frame.rs:709:10
    |
709 |         !matches!(self, Frame::Padding { .. } |
    |          ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `quiche`.

To learn more, run the command again with --verbose.
make[1]: *** [objs/Makefile:1361: ../quiche/target/release/libquiche.a] Error 101
make[1]: Leaving directory '/root/quic/nginx-1.16.1'
make: *** [Makefile:8: build] Error 2

rust-lang/rust#65721

@wreiske
Copy link
Author

wreiske commented Nov 2, 2020

I was using the default version of cargo from yum install cargo on CentOS 8 which fails to build quiche. Installing from https://rustup.rs solved the build issue I was having.

@wreiske wreiske closed this as completed Nov 2, 2020
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

1 participant