| 9 Mar 2025 |
loudgolem | swapon [options] [<spec>]
Enable devices and files for paging and swapping.
| 17:06:14 |
loudgolem | * swapon [options] [<spec>]
Enable devices and files for paging and swapping.
--show[=<columns>] display summary in definable table
| 17:06:28 |
loudgolem | this is getting offtopic, so feel free to dm me | 17:07:14 |
loudgolem | this is very important as well Andrew along with -j (jobs) | 17:09:36 |
Andrew | last time when it was due to LTO it didn't help | 17:11:05 |
Andrew | what did help is to disable LTO attribute | 17:11:27 |
Andrew | though 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 |
Andrew | So, as I was saying, it doesn't do anything, unless I specify the columns, which I don't. | 17:25:30 |
Andrew |  Download image.png | 17:25:37 |
Andrew | But it did work at the last moment, which is pretty cool to see. | 17:25:55 |
loudgolem | swapspace manages your storage <-> swap
swapon --show is just to monitor the usage | 17:26:28 |
Andrew | I'm talking about the use of --show argument. | 17:26:58 |
loudgolem | oh okay, it works without show, didn't know that | 17:27:22 |
loudgolem | I have this aliased as a single mem, so I don't remember how I even know about that | 17:32:35 |
Andrew |  Download image.png | 18:13:06 |
Andrew | I tried pkgsCross.wasi32.buildPackages.libunwind and libunwind and it didn't help. | 18:22:23 |
Andrew | but at least llvm compiled successfully. In one hour. | 18:22:40 |
Andrew | It should install that automatically anyway, otherwise what's the point in reproducibility. | 18:23:20 |
loudgolem | # 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 |
loudgolem | maybe it was broken at some point | 18:28:37 |
loudgolem | if you are using flakes try a nix flake update nixpkgs | 18:29:05 |
Andrew | I updated it just one day ago | 18:29:21 |
Andrew | it says it's from 2025-03-06 | 18:30:19 |
Andrew | you need to build the pkgsCross.wasi32.buildPackages.rustc | 18:37:08 |
loudgolem | yeah, started the build | 18:37:23 |
loudgolem | llvm> [17/4467] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Allocator.cpp.o | 18:38:00 |
Andrew | Well, good luck. | 18:38:35 |
Andrew | Is it still going? | 19:57:07 |
| 10 Mar 2025 |
loudgolem | 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 |
loudgolem | 😅 I had to sleep | 02:53:09 |