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

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

Closed
jrdwiz opened this issue Mar 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jrdwiz
Copy link

jrdwiz commented Mar 11, 2024

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

@jrdwiz jrdwiz added the bug Something isn't working label Mar 11, 2024
@qarmin
Copy link
Owner

qarmin commented Mar 11, 2024

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

Looks that someone even fixed problem - rust-lang/rust#118385 (comment)

@jrdwiz
Copy link
Author

jrdwiz commented Mar 12, 2024

Resolved.

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

@jrdwiz jrdwiz closed this as completed Mar 12, 2024
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