!9IQChSjwSHXPPWTa:lix.systems

Lix

1087 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms290 Servers

Load older messages


SenderMessageTime
7 Nov 2025
@kuruczgy:matrix.orgkuruczgyYes, btrfs18:33:31
@da157:catgirl.cloud0xda157 joined the room.18:37:06
@awwpotato:envs.net@awwpotato:envs.net left the room.18:41:54
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)

When trying to overlay the monorepoSrc on llvmPackages.override I get

> mismatch in the minor version! we have version 21.1.2 and expected the minor version to be '1'; the source has '0' instead
21:39:57
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)ah21:49:43
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)it was just21:49:45
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)version?21:49:46
8 Nov 2025
@aloisw:julia0815.dealoisw The "standard" procedure is deleting /nix/var/nix/db/reserved, but given that it's a relatively small file of zeroes it may not be enough. 06:57:15
@emma:rory.gayEmma [it/its]TIL that file exists08:12:45
@emma:rory.gayEmma [it/its] personally i'd go with rm -rfI /tmp/* 08:13:34
@aloisw:julia0815.dealoisw If your /tmp is on the same partition as /nix, that should work too of course. But on many systems it isn't. 08:34:20
@aloisw:julia0815.dealoisw I wonder if we should just make the reserved file larger (maybe ~200 MiB, which is a bit above the 160 MiB required for the WAL) and fill it with random data. 08:35:08
@srtcd424:auxolotl.orgtc424 (Steve D)Feels like something that could usefully be configurable, given the behaviour of different filesystems etc is likely to have an impact09:49:04
@aloisw:julia0815.dealoisw Hm, what are you thinking about in concrete terms? I only know the behaviours "deleting the file frees the space it occupies" (which is the full size with random data), "deleting the file is useless" (don't hardlink or reflink that file then) or "deleting the file fails with ENOSPC`. In none of these cases a configurable size helps, except for maybe turning off the reserve file entirely if you expect it to be useless anyway. 09:52:46
@uep:matrix.orguepdo note that there is now a tmp build dir under /nix10:17:15
@uep:matrix.orguep /nix/var/nix/builds so the first thing to do would be make sure that's empty 10:18:01
@aloisw:julia0815.dealoisw Sure, but that doesn't help you if it is empty (which it usually is). The reserved file is about resolving the deadlock between garbage collection and the disk filling up. 10:19:16
@uep:matrix.orguepyeah, just worth checking, since building is a common reason why it might fill10:19:44
@aloisw:julia0815.dealoisw Well, the other common reason is that you just forgot to run GC until it's too late… 10:20:13
@aloisw:julia0815.dealoisw Particularly when running a VM with relatively small virtual disk using certain filesystems that will happily tell you it still has 10 GiB free while already throwing ENOSPC. 10:23:24
@srtcd424:auxolotl.orgtc424 (Steve D)More half-formed cursed thoughts .. have the daemon disable WAL when disk usage hits a particular %age?10:30:44
@srtcd424:auxolotl.orgtc424 (Steve D)(I'm under medical advice to give up caffeine, so excuse gibberish)10:33:31
@lillecarl:matrix.orglillecarl

I'm trying to run nix-daemon against an alternative socket path and a chroot store so I can mess around without ruining my nixos installation.
I did

just build
ln -s ./build/lix/nix/nix ./build/lix/nix/nix-daemon
NIX_REMOTE=unix://$PWD/socket sudo -E ./build/lix/nix/nix-daemon --store /tnix -vvv

(essentially-ish) but it takes over /nix/var/nix/daemon-socket/socket anyways?

18:15:05
@lillecarl:matrix.orglillecarlNIX_DAEMON_SOCKET_PATH found it, sry I'll look harder next time 😄18:25:06
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)
[187/4787] Building RuntimeLibcalls.inc...
FAILED: [code=1] include/llvm/IR/RuntimeLibcalls.inc /build/llvm-src-21.0.0/llvm/build/include/llvm/IR/RuntimeLibcalls.inc 
cd /build/llvm-src-21.0.0/llvm/build/include/llvm/IR && /nix/store/6nd5nl6iqcbfh21hp3y26l28fmgv1bjg-llvm-tblgen-21.1.2/bin/llvm-tblgen -gen-runtime-libcalls -I/build/llvm-src-21.0.0/llvm/include/llvm/IR -I/build/llvm-src-21.0.0/llvm/build/include -I/build/llvm-src-21.0.0/llvm/include /build/llvm-src-21.0.0/llvm/include/llvm/IR/RuntimeLibcalls.td --write-if-changed -o RuntimeLibcalls.inc -d RuntimeLibcalls.inc.d && /nix/store/5bn5f4ivqf4xn19khh4kcg4ngnjs6spg-cmake-4.1.2/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /build/llvm-src-21.0.0/llvm /build/llvm-src-21.0.0/llvm/include/llvm/IR /build/llvm-src-21.0.0/llvm/build /build/llvm-src-21.0.0/llvm/build/include/llvm/IR /build/llvm-src-21.0.0/llvm/build/include/llvm/IR/RuntimeLibcalls.inc.d /build/llvm-src-21.0.0/llvm/build/CMakeFiles/d/30e77c83f02c7836d6e9f82549f72b45e78203b17873909d437c76b9ff3281df.d
error: The class 'SystemRuntimeLibrary' is not defined
{ llvmPackages_21, fetchFromGitHub }:
(llvmPackages_21.override 
{
  version = "21.0.0";
  monorepoSrc = fetchFromGitHub {
    owner = "bloomberg";
    repo = "clang-p2996";
    rev = "p2996";
    hash = "sha256-xadn+JyvUceIsbSzLvdjAuzzN3l/qWbEmgH93kyPM8I=";
  };
}).clang
19:34:39
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)ugh....19:34:42
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)or..... should I patch it? upstream LLVM has a patch for this19:35:11
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)how can I remove a patch from llvm?20:13:56
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)like20:13:57
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)that gnu install dirs one20:14:08

Show newer messages


Back to Room ListRoom Version: 10