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 install lsd" failes on raspberry pi 4 (Raspbian OS 32-bit) #534

Closed
John15321 opened this issue Jul 21, 2021 · 4 comments · Fixed by #535
Closed

"cargo install lsd" failes on raspberry pi 4 (Raspbian OS 32-bit) #534

John15321 opened this issue Jul 21, 2021 · 4 comments · Fixed by #535

Comments

@John15321
Copy link

  • os: Raspbian OS ( its 32bit )
  • lsd --version:
  • echo $TERM: xterm-256color
  • echo $LS_COLORS:
rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:

Expected behavior

Well... it should install successfully after running cargo install lsd

Actual behavior

It fails, Im not really a rust programmer so I dont know whats happening but those are the erros:

cargo install lsd
    Updating crates.io index
  Installing lsd v0.20.1
   Compiling libc v0.2.98
   Compiling autocfg v1.0.1
   Compiling proc-macro2 v1.0.27
   Compiling memchr v2.4.0
   Compiling unicode-xid v0.2.2
   Compiling bitflags v1.2.1
   Compiling syn v1.0.73
   Compiling unicode-width v0.1.8
   Compiling serde_derive v1.0.126
   Compiling log v0.4.14
   Compiling cfg-if v1.0.0
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.2
   Compiling strsim v0.8.0
   Compiling serde v1.0.126
   Compiling version_check v0.9.3
   Compiling regex-syntax v0.6.25
   Compiling linked-hash-map v0.5.4
   Compiling dtoa v0.4.8
   Compiling fnv v1.0.7
   Compiling ansi_term v0.12.1
   Compiling human-sort v0.2.2
   Compiling wild v2.0.4
   Compiling xdg v2.1.0
   Compiling term_grid v0.1.7
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling yaml-rust v0.4.5
   Compiling lscolors v0.7.1
   Compiling aho-corasick v0.7.18
   Compiling bstr v0.2.16
   Compiling quote v1.0.9
   Compiling term_size v0.3.2
   Compiling atty v0.2.14
   Compiling time v0.1.43
   Compiling dirs-sys v0.3.6
   Compiling terminal_size v0.1.17
   Compiling users v0.11.0
   Compiling regex v1.5.4
   Compiling textwrap v0.11.0
   Compiling dirs v3.0.2
   Compiling clap v2.33.3
   Compiling globset v0.4.8
   Compiling chrono v0.4.19
   Compiling chrono-humanize v0.1.2
   Compiling lsd v0.20.1
   Compiling serde_yaml v0.8.17
error[E0658]: use of unstable library feature 'matches_macro'
  --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/color.rs:59:9
   |
59 |         matches!(self, Elem::Dir { uid: true } | Elem::File { uid: true, .. })
   |         ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
  --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/display.rs:70:17
   |
70 |             && (matches!(meta.file_type, FileType::Directory{..})
   |                 ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
  --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/display.rs:71:21
   |
71 |                 || (matches!(meta.file_type, FileType::SymLink { is_dir: true })
   |                     ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/display.rs:229:17
    |
229 |                 matches!(x.file_type, FileType::Directory { .. })
    |                 ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
   --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/display.rs:230:25
    |
230 |                     || (matches!(x.file_type, FileType::SymLink { is_dir: true })
    |                         ^^^^^^^
    |
    = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
  --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/flags/layout.rs:34:16
   |
34 |             || matches!(matches.values_of("blocks"), Some(values) if values.len() > 1)
   |                ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error[E0658]: use of unstable library feature 'matches_macro'
  --> /home/jbron/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/lsd-0.20.1/src/meta/filetype.rs:84:9
   |
84 |         matches!(self, FileType::Directory { .. } | FileType::SymLink { is_dir: true })
   |         ^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/65721

error: aborting due to 7 previous errors

For more information about this error, try `rustc --explain E0658`.
error: failed to compile `lsd v0.20.1`, intermediate artifacts can be found at `/tmp/cargo-install4sYw5V`

Caused by:
  could not compile `lsd`.

To learn more, run the command again with --verbose.
@zwpaper
Copy link
Member

zwpaper commented Jul 22, 2021

Hi @John15321 , looks like your rust version is a little bit too old for the matches_macro, could you update your rust version? it needs 1.42 for the matches_macro.

I would fire a PR for the minimal required rust version check

@jemus42
Copy link

jemus42 commented Jul 22, 2021

I came here due to the same issue and my cargo reports as 1.42.1 on a freshly set up raspbian :/

@zwpaper
Copy link
Member

zwpaper commented Jul 23, 2021

Hi @jemus42, what is your error message exactly?

as matches should be stable in 1.42.1, it may be related to something else if errors occurred.

also, could you check the version of rustc by

rustc -V

@jemus42
Copy link

jemus42 commented Jul 23, 2021

I have rustc 1.41.1 but cargo 1.42.1 - I just installed cargo via apt from the default repos, so not sure what to make of that.

I have now installed via rustup for newer versions, 1.53.0 for both cargo and rustc.
cargo install lsd works as expected now :)

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

Successfully merging a pull request may close this issue.

3 participants