lilyinstarlight / nixos-cosmic

Flake for using COSMIC on NixOS
MIT License
438 stars 27 forks source link

Build issues on NixOS 24.11 Stable #499

Closed addy419 closed 2 hours ago

addy419 commented 2 hours ago

There's a build error while building cosmic-comp on NixOS 24.11, not sure if this warning is the reason for this:

warning: this function depends on never type fallback being `()`
   --> src/backend/render/mod.rs:502:1
    |
502 | #[profiling::function]
    | ^^^^^^^^^^^^^^^^^^^^^^
    |
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
    = help: specify the types explicitly
note: in edition 2024, the requirement `!: std::default::Default` will fail
   --> src/backend/render/mod.rs:625:5
    |
625 | /     render_input_order(
626 | |         &*shell,
627 | |         output,
628 | |         previous,
...   |
829 | |         },
830 | |     )?;
    | |_____^
    = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default
    = note: this warning originates in the attribute macro `profiling::function` (in Nightly builds, run with -Z macro-backtrace for more in>

thread 'main' panicked at cargo-auditable/src/rustc_wrapper.rs:101:39:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: `cosmic-comp` (bin "cosmic-comp") generated 1 warning
error: could not compile `cosmic-comp` (bin "cosmic-comp"); 1 warning emitted
drakon64 commented 2 hours ago

That's odd, I haven't had any issues building for 24.11 in my own CI

addy419 commented 2 hours ago

@drakon64 My bad, I was running out of memory (according to htop). Using --cores 1 and -j 1, I was able to bring the memory usage down to 50GB and got it compiled successfully.