!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

59 Members
29 Servers

Load older messages


SenderMessageTime
11 Oct 2021
@kity:kity.wtfash (it/its) 🏳️‍⚧️ from discussion in #nix:nixos.org it seems like glibc won't work but musl might. nix requires 3.8 for sandboxing, but the real blocker is systemd which requires 3.13 20:39:18
@kity:kity.wtfash (it/its) 🏳️‍⚧️just nix might work though, without sandboxing20:41:14
13 Oct 2021
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)for those of you interested in SPARC & PowerPC (specifically ppc64le for now), I've started working on getting stdenv working on them: https://github.com/NixOS/nixpkgs/pull/14144804:06:51
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)I've got the bootstrap tools built, now my Hydra "cluster" (it has two machines, but one is a Raspberry Pi so it's not working on this) is churning away at seeing what else I need to tweak to get stdenv building04:07:11
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) * I've got the bootstrap tools built, now my Hydra cluster's churning away at seeing what else I need to tweak to get stdenv building04:07:17
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) * I've got the bootstrap tools built, now my Hydra "cluster" (it has two machines, but one is a Raspberry Pi so it's not working on this) is churning away at seeing what else I need to tweak to get stdenv building04:07:52
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) * for those of you interested in SPARC & PowerPC (specifically sparc64 and ppc64le for now), I've started working on getting stdenv working on them: https://github.com/NixOS/nixpkgs/pull/14144804:09:17
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)

I'd love to hear y'all's thoughts on this:

https://github.com/NixOS/nixpkgs/pull/141448#issuecomment-941916618

W.r.t. bootstrap tools, see also #115406. These always get held up because it's hard to verify that the bootstrap tools are reproducible - how do you do that for native bootstrap tools on a platform we don't support yet? But on the other hand, cross-compiled bootstrap tools won't build stdenv because of #113977, so I'm not really sure how to proceed here.

Very true... it seems like there are three stages to building bootstrap tools:

  1. Cross-compile
  2. Native using cross tools
  3. Native using native tools

Maybe there should be more automation around building these - like, on a system with qemu-binfmt, you have a derivation that runs through all three stages, though that requires having a way to inject the newly built bootstrap tools into nixpkgs.

The first approach that comes to mind would be adding an argument to nixpkgsFun for the seeds, which probably wouldn't be a bad idea in general. I'd love to hear other people's thoughts on that though.

04:47:28
@r-burns:matrix.orgRyan BurnsI think it would be a good idea to try to produce the tarballs entirely on our hydra builders. That way there would be no "leap of faith" where the people in charge of tarballs.nixos.org have to upload an untrusted blob - they would just persist a trusted artifact direct from hydra.04:51:48
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)Do the Hydra builders have qemu-binfmt? If not, we'll need to have a sparc64 and ppc64le (etc) buildbox to run those builds on.04:54:06
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) * Do the Hydra builders have qemu-binfmt? If not, we'll need to have a sparc64 and ppc64le (etc) buildbox to run those builds on.04:54:18
@r-burns:matrix.orgRyan BurnsUnfortunately not. But what about running the build inside a full-fledged VM? We already use VMs for the NixOS tests, and cross-compile entire NixOS systems for embedded hardware. I don't think it would be too much of a leap to cross-compile a testing VM and use it to bootstrap our exotic platforms.04:56:12
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)True, we could do that! Though that means we need to get a NixOS system working before being able to add that platform.04:58:02
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) I wonder what the hurdles would be to getting qemu-binfmt added to the build boxes, that seems like a more elegant solution than a VM and it would mean running it locally would be as easy as nix build (as long as you have qemu-binfmt or a remote builder for the arch) 05:20:57
@r-burns:matrix.orgRyan BurnsMaybe a question for https://github.com/NixOS/nixos-org-configurations/?05:34:04
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) Looks like they have a Matrix room (#infrastructure:nixos.org ), asked there 05:37:59
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)In other news, with this commit you should be able to build a new bootstrap-tools just by building a derivation: https://github.com/NixOS/nixpkgs/pull/141448/commits/422076f81423e6f163669737bb70d7824653ea5d06:05:56
@sternenseemann:systemli.orgsterni
In reply to @piper:lutris.engineering
True, we could do that! Though that means we need to get a NixOS system working before being able to add that platform.
to start out it could be any linux distribution running a nix-daemon
08:33:52
@qyliss:fairydust.spaceAlyssa Rossalthough then trust is expanded to that distro08:35:53
@sternenseemann:systemli.orgsterniif there just was binfmt_misc for macOS huh :p09:28:50
@qyliss:fairydust.spaceAlyssa Rossain't that what Darling is trying to do?09:31:24
@sternenseemann:systemli.orgsterniI just wanted to make a joke about darwin being trusted technically :)09:33:36
@sternenseemann:systemli.orgsterniI wouldn't like trusting macOS for building NixOS/Linux stuff though; it's fine for building darwin ofc09:33:58
14 Oct 2021
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)

I'm getting some really strange test failures on coreutils for ppc64le https://termbin.com/s4vc

Example:

FAIL: tests/du/no-x
===================

--- exp	2021-10-14 16:02:44.259294987 +0000
+++ out	2021-10-14 16:02:44.206294528 +0000
@@ -1 +1 @@
-du: 'd/no-x': Permission denied
+/build/coreutils-8.32/./src/du: cannot access 'd/no-x': Permission denied
FAIL tests/du/no-x.sh (exit status: 1)

Anyone seen anything like this before?

17:06:48
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)This is part of the multi-stage bootstrap tools build, and I'm sadly not sure which stage it's part of - is it possible to show the dependency tree of a derivation?17:07:59
@piper:lutris.engineeringPiper McCorkle (she/her or they/them) Never mind, found nix-tree 17:10:30
@piper:lutris.engineeringPiper McCorkle (she/her or they/them)Ha, turns out I screwed up and it wasn't actually doing a multi-stage build (wasn't propagating an attr), guess I'm glad it didn't succeed and leave me with a cross bootstrap tools17:30:05
17 Oct 2021
@yuka:yuka.devYuka (she/her) joined the room.13:28:51
@mars:jupiterbroadcasting.commars joined the room.19:02:47
21 Oct 2021
@qyliss:fairydust.spaceAlyssa RossJust in case anybody missed it, we can build systemd with musl now thanks to yuka! https://nixpk.gs/pr-tracker.html?pr=14198008:29:22

There are no newer messages yet.


Back to Room List