!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

639 Members
Rust146 Servers

Load older messages


SenderMessageTime
11 Oct 2025
@anders:sorby.xyzAnders I am trying to fix packaging for relibc so that cross compilation to RedoxOS can be enabled again. But I run into trouble when I try to make all:
error occurred: Failed to find tool. Is x86_64-linux-gnu-gcc installed?
I am not cross compiling so how do I fix this?
10:29:11
@anders:sorby.xyzAnders Also, how do I correctly include a git submodule when doing a src = ./. import? 10:32:24
@rosssmyth:matrix.orgrosssmythit is hard to say anything without seeing code15:47:38
@anders:sorby.xyzAndersI got it working15:48:03
@anders:sorby.xyzAndersBut now I have an issue with what I assume is mismatched toolchains15:48:31
@anders:sorby.xyzAnders
relibc-latest> cargo rustc --release -Z build-std=core,alloc,compiler_builtins --target=x86_64-unknown-linux-gnu -- --emit link=/build/source/target/x86_64-unknown-linux-gnu/release/librelibc.a
relibc-latest> error: failed to select a version for the requirement `cfg-if = "^1.0"` (locked to 1.0.1)
relibc-latest> candidate versions found which didn't match: 1.0.3
relibc-latest> location searched: directory source `/build/cargo-vendor-dir` (which is replacing registry `crates-io`)
relibc-latest> required by package `std v0.0.0 (/nix/store/xfljfal6ycn3q5m93v8ycc3qvwn46i8j-rust-nightly-2025-10-03/lib/rustlib/src/rust/library/std)`
relibc-latest>     ... which satisfies path dependency `std` (locked to 0.0.0) of package `sysroot v0.0.0 (/nix/store/xfljfal6ycn3q5m93v8ycc3qvwn46i8j-rust-nightly-2025-10-03/lib/rustlib/src/rust/library/sysroot)`
15:49:10
@anders:sorby.xyzAndersSo my cargo.lock insists on using 1.0.3 while std needs 1.0.1. Why can't it resolve this? Can I force this somehow?15:50:37
@anders:sorby.xyzAndersThe code can be found here https://tangled.org/@anders.sorby.xyz/relibc/tree/add-nix-build if anyone is interested16:55:39
13 Oct 2025
@anders:sorby.xyzAndersBear in mind I am a self thaught professional developer who is relatively new to rust and c build systems. I have opened a thread on discourse too https://discourse.nixos.org/t/rust-building-and-resolving-cfg-if/7079314:48:09
@anders:sorby.xyzAnders I tracked it down to the unstable feature build-std
https://doc.rust-lang.org/cargo/reference/unstable.html#build-std
15:00:52
@anders:sorby.xyzAndersRemoving that solved the issue15:01:06
14 Oct 2025
@chrissq:matrix.orgchris joined the room.08:56:50
@ipsavitsky234:matrix.orgipsavitsky234 joined the room.16:43:51
15 Oct 2025
@andrewzah:matrix.abare.partyAndrew Zah changed their display name from andrewzah to Andrew Zah.09:29:43
@acidbong:envs.netAcid Bong joined the room.18:06:36
16 Oct 2025
@nickorta12:matrix.orgNick joined the room.01:51:39
@nickorta12:matrix.orgNick changed their display name from norta to Nick.02:23:10
@acidbong:envs.netAcid Bong left the room.04:00:15
17 Oct 2025
@tumypmyp:matrix.orgTimur Gainullin changed their profile picture.09:53:41
@bahrom04:floss.uzbahrom04 joined the room.11:07:39
@robert:scs.ems.hostRobert Rose changed their display name from Robert Rose to Robert Rose - 🏝️ bis 10.11.25.13:04:27
@cuer:envs.netCuer joined the room.13:16:02
@cuer:envs.netCuer changed their display name from lubov to Cuer.13:34:00
@cuer:envs.netCuer set a profile picture.14:02:31
@cuer:envs.netCuer changed their profile picture.14:03:36
@cuer:envs.netCuer changed their profile picture.14:10:06
18 Oct 2025
@dawnofmidnight:catgirl.cloud@dawnofmidnight:catgirl.cloud changed their display name from dawnofmidnight to whispers.05:34:39
@paparodeo:matrix.orgreno joined the room.23:00:44
19 Oct 2025
@cashmere:cashmere.rscashmere joined the room.05:22:56
20 Oct 2025
@anders:sorby.xyzAndersSo is anyone else interested in working with getting RedoxOS support and Relibc back into nixpkgs? I have started here, but I run into trouble trying to get nightly rust working (which is necessary atm). What is the recommended way of compiling with nightly rust in nixpkgs? https://github.com/NixOS/nixpkgs/pull/45378608:42:48

Show newer messages


Back to Room ListRoom Version: 6