| 11 Oct 2025 |
Anders | 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 | Also, how do I correctly include a git submodule when doing a src = ./. import? | 10:32:24 |
rosssmyth | it is hard to say anything without seeing code | 15:47:38 |
Anders | I got it working | 15:48:03 |
Anders | But now I have an issue with what I assume is mismatched toolchains | 15:48:31 |
Anders | 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 | So 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 | The code can be found here https://tangled.org/@anders.sorby.xyz/relibc/tree/add-nix-build if anyone is interested | 16:55:39 |
| 13 Oct 2025 |
Anders | Bear 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/70793 | 14:48:09 |
Anders | 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 | Removing that solved the issue | 15:01:06 |
| 14 Oct 2025 |
| chris joined the room. | 08:56:50 |
| ipsavitsky234 joined the room. | 16:43:51 |
| 15 Oct 2025 |
| Andrew Zah changed their display name from andrewzah to Andrew Zah. | 09:29:43 |
| Acid Bong joined the room. | 18:06:36 |
| 16 Oct 2025 |
| Nick joined the room. | 01:51:39 |
| Nick changed their display name from norta to Nick. | 02:23:10 |
| Acid Bong left the room. | 04:00:15 |
| 17 Oct 2025 |
| Timur Gainullin changed their profile picture. | 09:53:41 |
| bahrom04 joined the room. | 11:07:39 |
| Robert Rose changed their display name from Robert Rose to Robert Rose - 🏝️ bis 10.11.25. | 13:04:27 |
| Cuer joined the room. | 13:16:02 |
| Cuer changed their display name from lubov to Cuer. | 13:34:00 |
| Cuer set a profile picture. | 14:02:31 |
| Cuer changed their profile picture. | 14:03:36 |
| Cuer changed their profile picture. | 14:10:06 |
| 18 Oct 2025 |
| @dawnofmidnight:catgirl.cloud changed their display name from dawnofmidnight to whispers. | 05:34:39 |
| reno joined the room. | 23:00:44 |
| 19 Oct 2025 |
| cashmere joined the room. | 05:22:56 |
| 20 Oct 2025 |
Anders | So 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/453786 | 08:42:48 |