qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
18.36k stars 605 forks source link

M1 MAC - could not compile - build failed (Unrecognized option: 'diagnostic-width') #1245

Closed jrdwiz closed 3 months ago

jrdwiz commented 3 months ago

Bug Description

Error when trying to compile on M1 MAC.

error: Unrecognized option: 'diagnostic-width' error: could not compile jpeg-decoder (lib) warning: build failed, waiting for other jobs to finish...

❯ cd ~/projects/czkawka
❯ git pull
Already up to date.
❯ cargo run --release --bin czkawka_gui
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)
info: downloading component 'rust-src'
info: installing component 'rust-src'
info: syncing channel updates for 'stable-aarch64-apple-darwin'
info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)
info: component 'rust-src' is up to date
   Compiling jpeg-decoder v0.3.1
   Compiling proc-macro-error v1.0.4
   Compiling intl-memoizer v0.5.1
   Compiling objc_id v0.1.1
   Compiling hashbrown v0.13.2
   Compiling fluent-langneg v0.13.0
   Compiling intl_pluralrules v7.0.2
   Compiling blake3 v1.5.0
error: Unrecognized option: 'diagnostic-width'

error: could not compile `jpeg-decoder` (lib)
warning: build failed, waiting for other jobs to finish...

System

Czkawka version 7.0.0 GUI OS version: MacOS Sonoma 14.3.1 ARM (23D60) Installation method: GitHub Clone

qarmin commented 3 months ago

This not looks like czkawka bug, but non-official rustc/rustup. I see similar issues:

Looks that someone even fixed problem - https://github.com/rust-lang/rust/issues/118385#issuecomment-1897381569

jrdwiz commented 3 months ago

Resolved.

Thank you. I needed to uninstall Rust, previously installed with MacPorts.