!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

687 Members
Rust156 Servers

Load older messages


SenderMessageTime
9 Mar 2025
@phanirithvij:matrix.orgloudgolem swapon [options] [<spec>] Enable devices and files for paging and swapping. 17:06:14
@phanirithvij:matrix.orgloudgolem *

swapon [options] [<spec>]

Enable devices and files for paging and swapping.

 --show[=<columns>]   display summary in definable table
17:06:28
@phanirithvij:matrix.orgloudgolemthis is getting offtopic, so feel free to dm me17:07:14
@phanirithvij:matrix.orgloudgolem this is very important as well Andrew along with -j (jobs) 17:09:36
@andrew15_5:matrix.orgAndrewlast time when it was due to LTO it didn't help17:11:05
@andrew15_5:matrix.orgAndrewwhat did help is to disable LTO attribute17:11:27
@andrew15_5:matrix.orgAndrewthough this time I didn't even reach the last step, so I don't know if the LTO is used for building LLVM.17:14:29
@andrew15_5:matrix.orgAndrewSo, as I was saying, it doesn't do anything, unless I specify the columns, which I don't.17:25:30
@andrew15_5:matrix.orgAndrewimage.png
Download image.png
17:25:37
@andrew15_5:matrix.orgAndrewBut it did work at the last moment, which is pretty cool to see.17:25:55
@phanirithvij:matrix.orgloudgolemswapspace manages your storage <-> swap swapon --show is just to monitor the usage17:26:28
@andrew15_5:matrix.orgAndrew I'm talking about the use of --show argument. 17:26:58
@phanirithvij:matrix.orgloudgolemoh okay, it works without show, didn't know that17:27:22
@phanirithvij:matrix.orgloudgolem I have this aliased as a single mem, so I don't remember how I even know about that 17:32:35
@andrew15_5:matrix.orgAndrewimage.png
Download image.png
18:13:06
@andrew15_5:matrix.orgAndrew I tried pkgsCross.wasi32.buildPackages.libunwind and libunwind and it didn't help. 18:22:23
@andrew15_5:matrix.orgAndrewbut at least llvm compiled successfully. In one hour.18:22:40
@andrew15_5:matrix.orgAndrewIt should install that automatically anyway, otherwise what's the point in reproducibility.18:23:20
@phanirithvij:matrix.orgloudgolem
# nixos-unstable
$ git rev-parse HEAD
36fd87baa9083f34f7f5027900b62ee6d09b1f2f
$ nom build -f default.nix pkgsCross.wasi32.buildPackages.libunwind --print-out-paths
Finished at 23:57:40 after 0s
/nix/store/c3m2ib9lpw24r3amxlfqak6bh515kdnq-libunwind-1.8.1
18:28:25
@phanirithvij:matrix.orgloudgolemmaybe it was broken at some point18:28:37
@phanirithvij:matrix.orgloudgolem if you are using flakes try a nix flake update nixpkgs 18:29:05
@andrew15_5:matrix.orgAndrewI updated it just one day ago18:29:21
@andrew15_5:matrix.orgAndrewit says it's from 2025-03-0618:30:19
@andrew15_5:matrix.orgAndrew you need to build the pkgsCross.wasi32.buildPackages.rustc 18:37:08
@phanirithvij:matrix.orgloudgolemyeah, started the build18:37:23
@phanirithvij:matrix.orgloudgolem llvm> [17/4467] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o 18:38:00
@andrew15_5:matrix.orgAndrewWell, good luck.18:38:35
@andrew15_5:matrix.orgAndrewIs it still going?19:57:07
10 Mar 2025
@phanirithvij:matrix.orgloudgolem
diff --git a/pkgs/development/compilers/rust/rustc.nix b/pkgs/development/compilers/rust/rustc.nix
index d7a1ee625f9c..cf5ab3459894 100644
--- a/pkgs/development/compilers/rust/rustc.nix
+++ b/pkgs/development/compilers/rust/rustc.nix
@@ -360,6 +360,7 @@ stdenv.mkDerivation (finalAttrs: {
         mkdir -p $out/lib
         ln -s ${llvmPackages.libunwind}/lib/libunwind.so $out/lib/libgcc_s.so
         ln -s ${llvmPackages.libunwind}/lib/libunwind.so $out/lib/libgcc_s.so.1
+        ln -s ${llvmPackages.libunwind}/lib/libunwind.so $out/lib/libunwind.so.1
       '')
     ];
 

got past that (I think)

but getting this

wasm32-unknown-wasi-rustc> WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.
wasm32-unknown-wasi-rustc> NOTE: to silence this warning, add `change-id = 133207` at the top of `config.toml`
wasm32-unknown-wasi-rustc> thread 'main' panicked at src/core/build_steps/compile.rs:389:13:
wasm32-unknown-wasi-rustc> Target "wasm32-wasip1" does not have a "wasi-root" key in Config.toml or `$WASI_SDK_PATH` set
wasm32-unknown-wasi-rustc> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
wasm32-unknown-wasi-rustc> Build completed unsuccessfully in 0:00:56

don't know much about wasi or cross compilation

02:51:22
@phanirithvij:matrix.orgloudgolem😅 I had to sleep02:53:09

Show newer messages


Back to Room ListRoom Version: 6