!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
128 Servers

Load older messages


SenderMessageTime
4 Jul 2025
@dramforever:matrix.orgdramforevercan you paste the full log02:35:21
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:40:52
@dramforever:matrix.orgdramforeverthis is a problem with mimalloc, fixed here https://github.com/microsoft/mimalloc/commit/951538d469f72532e43a2437d556a73518f5dde402:50:51
@dramforever:matrix.orgdramforeveroh wait02:51:10
@dramforever:matrix.orgdramforeveri'm not so sure now, let me check02:51:16
@dramforever:matrix.orgdramforeverbut it should be a mimalloc problem nonetheless02:51:47
@dramforever:matrix.orgdramforeversorry that was an old one02:52:21
@dramforever:matrix.orgdramforeveranyway updating mimalloc should fix it02:53:54
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:54:11
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:54:29
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:00
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:03
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:54
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event02:55:56
@dramforever:matrix.orgdramforeveri'd say try including this 951538d as a patch02:56:59
@dramforever:matrix.orgdramforeveror maybe overriding the version and source like https://github.com/NixOS/nixpkgs/pull/41559402:58:32
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:06:41
@dramforever:matrix.orgdramforeveroh okay03:07:39
@dramforever:matrix.orgdramforeveryou've come in the deep end, i see03:07:49
@dramforever:matrix.orgdramforeverhow are you building the thing to begin with?03:07:59
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:11:21
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:11:22
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:11:42
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:12:32
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:13:15
@dramforever:matrix.orgdramforeverare you sure you're new to nix :P03:15:17
@dramforever:matrix.orgdramforever

but anyway i'd say bring in an extra overlay to add a patch

        overlays = [
          (import rust-overlay)
          (final: prev: {
            mimalloc =
              if final.stdenv.hostPlatform.isMusl
              then
                prev.mimalloc.overrideAttrs (old: {
                  patches = (old.patches or []) + [
                    (final.fetchpatch {
                      url = "https://github.com/microsoft/mimalloc/commit/951538d469f72532e43a2437d556a73518f5dde4.patch";
                      hash = ""; # TOFU, update with hash
                    })
                  ];
                })
              else
                prev.mimalloc;
          })
        ];
03:15:32
@dramforever:matrix.orgdramforevernote that i haven't tested this, just typed it out03:15:43
@dramforever:matrix.orgdramforever and the reason it's compiling mimalloc is just something depends on mimalloc 03:16:04
@freexploit:trafkin.com@freexploit:trafkin.comRedacted or Malformed Event03:16:30

Show newer messages


Back to Room ListRoom Version: 6