We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, thanks for this software! I'm trying to compile v0.7.3 on NixOS, using rustc 1.64.0, but I'm hitting E0658:
$ nix -L build ++ env CC_x86_64-unknown-linux-gnu=/nix/store/9yxrwp848f7msm6m2442yfpji8m3206b-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/9yxrwp848f7msm6m2442yfpji8m3206b-gcc-wrapper-11.3.0/bin/c++ CC_x86> Compiling libc v0.2.139 Compiling autocfg v1.1.0 Compiling proc-macro2 v1.0.51 Compiling unicode-ident v1.0.6 Compiling quote v1.0.23 Compiling syn v1.0.107 Compiling cfg-if v1.0.0 Compiling version_check v0.9.4 Compiling futures-core v0.3.26 Compiling memchr v2.5.0 Compiling log v0.4.17 Compiling typenum v1.16.0 Compiling pin-project-lite v0.2.9 Compiling io-lifetimes v1.0.5 Compiling rustix v0.36.8 Compiling futures-task v0.3.26 Compiling futures-sink v0.3.26 Compiling futures-channel v0.3.26 Compiling bitflags v1.3.2 Compiling futures-util v0.3.26 Compiling linux-raw-sys v0.1.4 Compiling serde_derive v1.0.152 Compiling crossbeam-utils v0.8.14 Compiling bytes v1.4.0 Compiling futures-io v0.3.26 Compiling scopeguard v1.1.0 Compiling parking_lot_core v0.8.6 Compiling pin-utils v0.1.0 Compiling serde v1.0.152 Compiling heck v0.4.1 Compiling serde_json v1.0.93 Compiling portable-atomic v0.3.19 Compiling smallvec v1.10.0 Compiling cc v1.0.79 Compiling crc32fast v1.3.2 Compiling os_str_bytes v6.4.1 Compiling anyhow v1.0.69 Compiling itoa v1.0.5 Compiling termcolor v1.2.0 Compiling once_cell v1.17.1 Compiling time-core v0.1.0 Compiling byteorder v1.4.3 Compiling subtle v2.4.1 Compiling ppv-lite86 v0.2.17 Compiling strsim v0.10.0 Compiling ryu v1.0.12 Compiling lazy_static v1.4.0 Compiling unicode-width v0.1.10 Compiling number_prefix v0.4.0 Compiling arrayref v0.3.6 Compiling arrayvec v0.7.2 Compiling constant_time_eq v0.2.4 Compiling infer v0.12.0 Compiling humantime v2.1.0 Compiling shell-escape v0.1.5 Compiling slab v0.4.7 Compiling tokio v1.25.0 Compiling lock_api v0.4.9 Compiling memoffset v0.7.1 Compiling crossbeam-epoch v0.9.13 Compiling instant v0.1.12 Compiling generic-array v0.14.6 Compiling proc-macro-error-attr v1.0.4 Compiling proc-macro-error v1.0.4 Compiling clap_lex v0.3.1 Compiling blake3 v1.3.3 Compiling time-macros v0.2.7 Compiling fxhash v0.2.1 Compiling signal-hook-registry v1.4.1 Compiling num_cpus v1.15.0 Compiling getrandom v0.2.8 Compiling console v0.15.5 Compiling errno v0.2.8 Compiling fs2 v0.4.3 Compiling dirs-sys v0.3.7 Compiling atty v0.2.14 Compiling time v0.3.19 Compiling mio v0.8.6 Compiling rand_core v0.6.4 Compiling parking_lot v0.11.2 Compiling unix-named-pipe v0.2.0 Compiling indicatif v0.17.3 Compiling dirs v4.0.0 Compiling crypto-common v0.1.6 Compiling block-buffer v0.10.3 Compiling terminal_size v0.2.5 Compiling is-terminal v0.4.3 Compiling rand_chacha v0.3.1 Compiling sled v0.34.7 Compiling digest v0.10.6 Compiling rand v0.8.5 Compiling tokio-macros v1.8.2 Compiling futures-macro v0.3.26 Compiling clap_derive v4.1.0 Compiling clap v4.1.6 Compiling tokio-util v0.7.7 Compiling tokio-stream v0.1.11 Compiling futures-executor v0.3.26 Compiling futures v0.3.26 Compiling clap_complete v4.1.2 Compiling ffprobe v0.3.3 Compiling tokio-process-stream v0.3.0 Compiling ab-av1 v0.7.3 (/build/source) error[E0658]: use of unstable library feature 'duration_checked_float' --> src/ffprobe.rs:114:13 | 114 | Duration::try_from_secs_f64(duration_f) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #83400 <https://github.com/rust-lang/rust/issues/83400> for more information For more information about this error, try `rustc --explain E0658`. error: could not compile `ab-av1` due to previous error
Here's the default.nix I'm using:
default.nix
{ lib, fetchFromGitHub, rustPlatform }: rustPlatform.buildRustPackage rec { pname = "ab-av1"; version = "0.7.3"; src = fetchFromGitHub { owner = "alexheretic"; repo = pname; rev = "v${version}"; hash = "sha256-DbZ5ZyhFFINfFMwz4tjUp6hurSY0HQeujo3ejm2gIN4="; }; cargoHash = "sha256-WossT3iASNQnk0GGd0xs6KcGiJ4bKEJX8UVaYvKDuNs="; meta = with lib; { description = "AV1 re-encoding using ffmpeg, svt-av1 & vmaf"; homepage = "https://github.com/alexheretic/ab-av1"; license = licenses.mit; maintainers = [ maintainers.julm ]; }; }
The text was updated successfully, but these errors were encountered:
Ah, I'm using a rustc too old rust-lang/rust#102271 Sorry for the noise.
Sorry, something went wrong.
Yep best to use the latest stable compiler for a new release, see https://github.com/alexheretic/ab-av1#minimum-supported-rust-compiler
No branches or pull requests
Hi, thanks for this software! I'm trying to compile v0.7.3 on NixOS, using rustc 1.64.0, but I'm hitting E0658:
Here's the
default.nix
I'm using:The text was updated successfully, but these errors were encountered: