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

Cargo installation fails on Ubuntu 20.04 #8

Closed
Asheboy opened this issue Dec 8, 2020 · 1 comment
Closed

Cargo installation fails on Ubuntu 20.04 #8

Asheboy opened this issue Dec 8, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Asheboy
Copy link

Asheboy commented Dec 8, 2020

Describe the bug
Cargo installation errors and fails to install.

To Reproduce
Steps to reproduce the behavior:

  1. cargo install menyoki

Expected behavior
menyoki should be installed

Screenshots/Logs

    Updating crates.io index
  Installing menyoki v1.0.1
   Compiling autocfg v1.0.1
   Compiling libc v0.2.81
   Compiling cfg-if v1.0.0
   Compiling lazy_static v1.4.0
   Compiling cfg-if v0.1.10
   Compiling byteorder v1.3.4
   Compiling const_fn v0.4.3
   Compiling bitflags v1.2.1
   Compiling crc32fast v1.2.1
   Compiling adler v0.2.3
   Compiling scopeguard v1.1.0
   Compiling adler32 v1.2.0
   Compiling rayon-core v1.9.0
   Compiling proc-macro2 v0.4.30
   Compiling getrandom v0.1.15
   Compiling proc-macro2 v1.0.24
   Compiling bytemuck v1.4.1
   Compiling unicode-xid v0.2.1
   Compiling color_quant v1.1.0
   Compiling unicode-xid v0.1.0
   Compiling syn v1.0.54
   Compiling either v1.6.1
   Compiling syn v0.15.44
   Compiling pkg-config v0.3.19
   Compiling ppv-lite86 v0.2.10
   Compiling num-derive v0.2.5
   Compiling weezl v0.1.3
   Compiling cc v1.0.66
   Compiling maybe-uninit v2.0.0
   Compiling failure_derive v0.1.8
   Compiling gimli v0.23.0
   Compiling lzw v0.10.0
   Compiling unicode-width v0.1.8
   Compiling scoped_threadpool v0.1.9
   Compiling rustc-demangle v0.1.18
   Compiling nix v0.18.0
   Compiling object v0.22.0
   Compiling ahash v0.4.6
   Compiling log v0.4.11
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.2
   Compiling imgref v1.7.0
   Compiling strsim v0.8.0
   Compiling natord v1.0.9
   Compiling wild v2.0.4
   Compiling input-event-codes v0.2.1
   Compiling quick-error v2.0.0
   Compiling mutate_once v0.1.1
   Compiling dunce v1.0.1
   Compiling bytesize v1.0.1
   Compiling dominant_color v0.3.0
   Compiling hex v0.4.2
   Compiling miniz_oxide v0.3.7
   Compiling inflate v0.4.5
   Compiling rgb v0.8.25
   Compiling gif v0.11.1
   Compiling gif v0.10.3
   Compiling hashbrown v0.9.1
   Compiling kamadak-exif v0.5.2
   Compiling crossbeam-utils v0.8.1
   Compiling num-traits v0.2.14
   Compiling memoffset v0.6.1
   Compiling miniz_oxide v0.4.3
   Compiling num-integer v0.1.44
   Compiling rayon v1.5.0
   Compiling num-iter v0.1.42
   Compiling crossbeam-utils v0.7.2
   Compiling num-rational v0.2.4
   Compiling num-rational v0.3.2
   Compiling resize v0.5.5
   Compiling gif-dispose v3.0.1
error[E0599]: no method named `to_int_unchecked` found for type `f32` in the current scope
   --> /home/asheboy/.cargo/registry/src/github.com-1ecc6299db9ec823/resize-0.5.5/src/px.rs:185:45
    |
185 |             (0f32).max(f.round()).min(255.).to_int_unchecked()
    |                                             ^^^^^^^^^^^^^^^^ method not found in `f32`

error[E0599]: no method named `to_int_unchecked` found for type `f32` in the current scope
   --> /home/asheboy/.cargo/registry/src/github.com-1ecc6299db9ec823/resize-0.5.5/src/px.rs:199:47
    |
199 |             (0f32).max(f.round()).min(65535.).to_int_unchecked()
    |                                               ^^^^^^^^^^^^^^^^ method not found in `f32`

error: aborting due to 2 previous errors

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

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `menyoki v1.0.1`, intermediate artifacts can be found at `/tmp/cargo-install5nci6h`

Caused by:
  build failed

System Information

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Neon
Description:    KDE neon User Edition 5.20
Release:        20.04
Codename:       focal
❯ cargo --version
cargo 1.43.
@Asheboy Asheboy added the bug Something isn't working label Dec 8, 2020
@orhun
Copy link
Owner

orhun commented Dec 8, 2020

Docs shows that to_int_unchecked method added in Rust 1.44.0. Try upgrading Rust.

I guess I should mention the min supported version of Rust in README.md...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants