Skip to content

Unable to build Czkawka 9.0.0 on Ubuntu #1518

Description

@jhonny-oliveira

Hi!

I'm having trouble attempting to compile czkawka in any Ubuntu version.

To begin with, I get this error:

cargo build --offline --release --bin czkawka_gui
error: failed to load manifest for workspace member `/build/package/package/czkawka_core`
referenced by workspace at `/build/package/package/Cargo.toml`

Caused by:
  failed to parse manifest at `/build/package/package/czkawka_core/Cargo.toml`

Caused by:
  feature `edition2024` is required

  The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.84.1 (66221abde 2024-11-19)).
  Consider adding `cargo-features = ["edition2024"]` to the top of Cargo.toml (above the [package] table) to tell Cargo you are opting in to use this unstable feature.
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

I applied this patch:

Allow_edition2024.patch
--- a/czkawka_core/Cargo.toml
+++ b/czkawka_core/Cargo.toml
@@ -1,3 +1,4 @@
+cargo-features = ["edition2024"]
 [package]
 name = "czkawka_core"
 version = "9.0.0"
--- a/czkawka_cli/Cargo.toml
+++ b/czkawka_cli/Cargo.toml
@@ -1,3 +1,4 @@
+cargo-features = ["edition2024"]
 [package]
 name = "czkawka_cli"
 version = "9.0.0"
--- a/czkawka_gui/Cargo.toml
+++ b/czkawka_gui/Cargo.toml
@@ -1,3 +1,4 @@
+cargo-features = ["edition2024"]
 [package]
 name = "czkawka_gui"
 version = "9.0.0"
--- a/krokiet/Cargo.toml
+++ b/krokiet/Cargo.toml
@@ -1,3 +1,4 @@
+cargo-features = ["edition2024"]
 [package]
 name = "krokiet"
 version = "9.0.0"

And I get this error:

cargo build --offline --release --bin czkawka_gui
     Locking 884 packages to latest Rust 1.85.0 compatible versions
error: rustc 1.84.1 is not supported by the following packages:
  czkawka_core@9.0.0 requires rustc 1.85.0
  czkawka_core@9.0.0 requires rustc 1.85.0
  czkawka_core@9.0.0 requires rustc 1.85.0
  czkawka_gui@9.0.0 requires rustc 1.85.0

Then, I relaxed the rustc version.

Relax_rustc_version.patch
--- a/czkawka_cli/Cargo.toml
+++ b/czkawka_cli/Cargo.toml
@@ -4,7 +4,7 @@
 version = "9.0.0"
 authors = ["Rafa�~B Mikrut <mikrutrafal@protonmail.com>"]
 edition = "2024"
-rust-version = "1.85.0"
+rust-version = "1.84.1"
 description = "CLI frontend of Czkawka"
 license = "MIT"
 homepage = "https://github.com/qarmin/czkawka"
--- a/czkawka_core/Cargo.toml
+++ b/czkawka_core/Cargo.toml
@@ -4,7 +4,7 @@
 version = "9.0.0"
 authors = ["Rafa�~B Mikrut <mikrutrafal@protonmail.com>"]
 edition = "2024"
-rust-version = "1.85.0"
+rust-version = "1.84.1"
 description = "Core of Czkawka app"
 license = "MIT"
 homepage = "https://github.com/qarmin/czkawka"
--- a/czkawka_gui/Cargo.toml
+++ b/czkawka_gui/Cargo.toml
@@ -4,7 +4,7 @@
 version = "9.0.0"
 authors = ["Rafa�~B Mikrut <mikrutrafal@protonmail.com>"]
 edition = "2024"
-rust-version = "1.85.0"
+rust-version = "1.84.1"
 description = "GTK frontend of Czkawka"
 license = "MIT"
 homepage = "https://github.com/qarmin/czkawka"
--- a/krokiet/Cargo.toml
+++ b/krokiet/Cargo.toml
@@ -4,7 +4,7 @@
 version = "9.0.0"
 authors = ["Rafa�~B Mikrut <mikrutrafal@protonmail.com>"]
 edition = "2024"
-rust-version = "1.85.0"
+rust-version = "1.84.1"
 description = "Slint frontend of Czkawka Core"
 license = "GPL-3.0-only"
 homepage = "https://github.com/qarmin/czkawka"

And finally, I get this error:

(...)
   Compiling czkawka_core v9.0.0 (/build/package/package/czkawka_core)
error: the option `Z` is only accepted on the nightly compiler

help: consider switching to a nightly toolchain: `rustup default nightly`

note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html>

note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features>

error: 1 nightly option were parsed

error: could not compile `czkawka_core` (build script)

Caused by:
  process didn't exit successfully: `rustc --crate-name build_script_build --edition=2024 -Z unstable-options czkawka_core/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="default"' --cfg 'feature="fast_image_resize"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "fast_image_resize", "heif", "libavif", "libraw"))' -C metadata=4ee54962844b2453 -C extra-filename=-4ee54962844b2453 --out-dir /build/package/package/target/release/build/czkawka_core-4ee54962844b2453 -C strip=debuginfo -L dependency=/build/package/package/target/release/deps --extern rustc_version=/build/package/package/target/release/deps/librustc_version-fad1d7b8b1685909.rlib -Cforce-frame-pointers=yes` (exit status: 1)

The most recent version of cargo/rustc available in Ubuntu is: 1.84.1.

Is there any way you can help me successfully build Czkawka 9.0.0 with cargo/rustc version 1.84.1 available on Ubuntu plucky (25.04)?

Thank you!
Jhonny Oliveira @https://xtradeb.net/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions