!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

547 Members
115 Servers

Load older messages


SenderMessageTime
4 Dec 2025
@hsngrmpf:matrix.orgDavHaufixed: https://github.com/NixOS/nixpkgs/pull/46779612:34:19
@hsngrmpf:matrix.orgDavHauOOps wrong link. Here: https://github.com/NixOS/nixpkgs/pull/46781712:34:45
@hsngrmpf:matrix.orgDavHauWhen will we add a cross package set to hydra BTW?13:06:37
@hsngrmpf:matrix.orgDavHauIt is kind of tiring to fix the same stuff over and over again. Broken cross builds should be a blocker in CI. Too much dev power is wasted on this.13:09:30
@k900:0upti.meK900We have some13:24:33
@k900:0upti.meK900It can't block all the builds13:24:41
@k900:0upti.meK900 That would break very badly 13:24:52
@nicolas-goudry:matrix.orgNicolas Goudry joined the room.14:10:37
@nicolas-goudry:matrix.orgNicolas Goudry

Hi there, I’m posting here (maybe wrong room, dunno) because I’m having an issue with compiling an aarch64-linux package from a darwin remote builder.

To further explain, I've set up the darwin.linux-builder on an M4 Macbook with the goal of being able to build aarch64-linux packages as I don't have any real aarch64-linux machine lying around.

After following the steps from the manual, I have an aarch64-linux builder VM running and have updated the Mac Nix conf with the following:

extra-experimental-features = nix-command flakes
build-users-group = nixbld
extra-trusted-users = nicolas
builders = ssh-ng://builder@linux-builder aarch64-linux /etc/nix/builder_ed25519 8 - - - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=
builders-use-substitutes = true

When I try to build the package, after a few seconds I get the following error: error: creating pipe: Too many open files. I can see the remote builder is used from the brief log messages. Restarting the build does continue the build where it left (well, the built/retrieved dependencies are in the remote store so that's normal) so I guess that if I run the build enough times, it will end up producing the final build output, but it's quite annoying in the meantime.

I looked around a bit (surely not enough) but the only resources I found were referring to systemd. Since MacOS is using launchd, this is not of any help to my issue, or so I think. It's unclear if the error is from the local host or the remote builder.

Does anyone has an idea as to how to fix this?

14:27:15
@k900:0upti.meK900 Try ssh-ng://builder@linux-builder?store=daemon 14:44:41
@nicolas-goudry:matrix.orgNicolas Goudry Got not an absolute path: 'daemon'. Is this setting trying to set a different store location than /nix/store? 14:52:56
@k900:0upti.meK900Ugh14:53:40
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @k900:0upti.me
Try ssh-ng://builder@linux-builder?store=daemon
Not store build remote-store
14:54:11
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @k900:0upti.me
Try ssh-ng://builder@linux-builder?store=daemon
* Not store but remote-store
14:54:16
@k900:0upti.meK900Oh14:54:22
@k900:0upti.meK900Yeah14:54:23
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yeah store should be called storeDir or something. Very confusing14:54:45
@nicolas-goudry:matrix.orgNicolas GoudryBtw is there a reference of all available query-param-style options? Couldn't find one the other day14:55:30
@nicolas-goudry:matrix.orgNicolas GoudryWorks now, I’m hitting an OOM but that's something else, ty!14:55:53
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)https://nix.dev/manual/nix/2.32/store/types/experimental-ssh-store.html#settings14:56:17
@nicolas-goudry:matrix.orgNicolas GoudryNice! Thx a lot14:56:49
@jaafar:kde.orgJaafar joined the room.18:02:33
@jaafar:kde.orgJaafarCan I add a native compiler as well as one or more cross compilers to the same dev shell?19:49:16
@rosssmyth:matrix.orgrosssmythYes, it is pretty common to do so for build->build project artifacts 19:50:23
@rosssmyth:matrix.orgrosssmythFor multiple cross-compilers, I do not see anything particularly wrong but you'll have to be careful with your build system config to make sure it choose the correct compiler(s)19:51:25
@rosssmyth:matrix.orgrosssmyth* For multiple cross-compilers, I do not see anything particularly wrong but you'll have to be careful with your build system config to make sure it chooses the correct compiler(s)19:51:33
@rosssmyth:matrix.orgrosssmyth Generally a native compiler will be accessed via pkgsBuildBuild.stdenv.cc, which should be the same across all nixpkgs instances you make for each cross compiler 19:54:24
@matthewcroughan:defenestrate.itmatthewcroughan FAIL: tests/split/line-bytes.sh for coreutils on musl 22:54:16
@matthewcroughan:defenestrate.itmatthewcroughandamnit22:54:17
5 Dec 2025
@winston:winston.shwinston joined the room.16:04:07

There are no newer messages yet.


Back to Room ListRoom Version: 6