!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

680 Members
Rust154 Servers

Load older messages


SenderMessageTime
9 Mar 2025
@andrew15_5:matrix.orgAndrewso you're saying there should be a cache for llvm?16:21:24
@andrew15_5:matrix.orgAndrewI'm not sure if you build the build tools for different target, how would I then be able to use them to build the program for that target if those build tools are not for my host target.16:23:02
@emilazy:matrix.orgemily they are rebuilt for a different --target, but the same --host. 16:23:18
@andrew15_5:matrix.orgAndrewOr does it compile so that I can run them from the host target to build the target-target?16:23:26
@emilazy:matrix.orgemily that is what pkgsCross.<system>.buildPackages means 16:23:26
@emilazy:matrix.orgemilyno, I'm saying it's probably a packaging infelicity16:23:46
@andrew15_5:matrix.orgAndrewuhhh, so there shouldn't be any cache for llvm?16:24:41
@andrew15_5:matrix.orgAndrew4467 steps is soo much...16:25:10
@andrew15_5:matrix.orgAndrew
    home.packages = with pkgs; [
      cargo
      clippy
      rustc
      pkgsCross.wasi32.buildPackages.rustc
      rustfmt
      rust-analyzer-nightly
      cargo-expand
      pkg-config
    ];
16:47:03
@emilazy:matrix.orgemilybtw at least some WASI stuff should be cached because Firefox uses it.16:48:33
@andrew15_5:matrix.orgAndrew I can't build llvm as it eats all of the memory at step 1321/4467 with a lot of llvm-tblgen processes. 16:48:41
@emilazy:matrix.orgemilyok.p16:48:49
@emilazy:matrix.orgemily* ok.16:48:53
@andrew15_5:matrix.orgAndrewso... I guess I'm back to basics and gonna use rustup like the old times...16:49:29
@phanirithvij:matrix.orgloudgolem you can try swapspace to autogrow your swap 16:50:33
@phanirithvij:matrix.orgloudgolemif you have fast ssd storage to spare16:51:21
@phanirithvij:matrix.orgloudgolem* only if you have fast ssd storage to spare16:51:24
@phanirithvij:matrix.orgloudgolemI have been using it for around a year (and I also maintain it in nixpkgs).16:51:35
@andrew15_5:matrix.orgAndrewidk about fast, but it is SSD16:56:27
@andrew15_5:matrix.orgAndrewDo I need to reboot or no?16:59:48
@phanirithvij:matrix.orgloudgolem systemctl status swapspace should be green 17:01:02
@andrew15_5:matrix.orgAndrew Is services.swapspace.enable = true; enough? 17:01:20
@phanirithvij:matrix.orgloudgolemyes17:01:51
@andrew15_5:matrix.orgAndrewok, I'll try then17:02:00
@phanirithvij:matrix.orgloudgolem then run the build again, also watch swapon --show in another window to monitor your swap 17:02:23
@phanirithvij:matrix.orgloudgolem * then run the build again, also watch swapon --show in another window to monitor your swap files 17:02:27
@andrew15_5:matrix.orgAndrewIt does eat a ton of memory very rapidly, in a matter of 20 seconds or so. Not sure if swapspace can keep up with that17:02:33
@andrew15_5:matrix.orgAndrewYeah, I'm interested in that.17:02:53
@k900:0upti.meK900I'd start by not building on a tmfps17:03:09
@k900:0upti.meK900If you are building on a tmpfs17:03:13

Show newer messages


Back to Room ListRoom Version: 6