!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

353 Members
111 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
13 Jan 2024
@samueldr:matrix.orgsamueldrwhatever mechanism to achieve my goal (editing Nixpkgs or not) is okay23:25:01
@samueldr:matrix.orgsamueldrI want to better understand the non-trivial cross-compilation23:25:13
@samueldr:matrix.orgsamueldr a precise goal would be to have an "hello" world C program cross-compiled through as much of stdenv.mkDerivation as feasible 23:26:37
@samueldr:matrix.orgsamueldr(the GNU one most likely can't)23:26:49
14 Jan 2024
@samueldr:matrix.orgsamueldr oh, right, another thing I don't know what to do about: the quatuplet for config, since the (admiteddly old) SDK and all the few remnants of info only specify a triplet 00:24:41
@raitobezarius:matrix.orgraitobezarius(going to sleep for now but I have some ideas)03:52:06
@raitobezarius:matrix.orgraitobezarius
In reply to @samueldr:matrix.org
oh, right, another thing I don't know what to do about: the quatuplet for config, since the (admiteddly old) SDK and all the few remnants of info only specify a triplet
I think you can invent whatever you want and if you feel like it, you can even send it upstream to gnu-config
17:05:24
@raitobezarius:matrix.orgraitobezariusI think it would help a lot if you could share a repo or a branch of nixpkgs so that I can take a look at things17:05:42
@raitobezarius:matrix.orgraitobezarius first step is that I would wire up the libc properly, create a lib/systems/examples.nix for your platform/target thingie, wire the libc in there, then I would add some inspection patterns for this platform, then I would look into stdenv/cross/default.nix and add the special cc for it 17:07:27
@raitobezarius:matrix.orgraitobezarius then… I'd take it for a run with pkgsCross.<my-config-name>.hello ? 17:07:38
@raitobezarius:matrix.orgraitobezarius * then… I'd take it for a run with pkgsCross.<my-example-name>.hello ? 17:07:45
@samueldr:matrix.orgsamueldr

okay, so papercut 1:

checking target system type... Invalid configuration 'i386-unknown-btron-gnu': Kernel 'btron' not known to work with OS 'gnu'.
21:25:49
@samueldr:matrix.orgsamueldr(I'm not done)21:26:09
@samueldr:matrix.orgsamueldrso uh, "OS 'gnu'... weird"21:26:19
@samueldr:matrix.orgsamueldr mostly to make my headcanon more complete, I try i386-unknown-btron-btron in Nixpkgs 21:26:59
@samueldr:matrix.orgsamueldr Unknown ABI: btron 21:27:07
@samueldr:matrix.orgsamueldryeah, my understanding was that the last bit was the ABI, not the "OS"21:27:19
@samueldr:matrix.orgsamueldris it that gnu config thing having other definitions than what Nixpkgs uses?21:27:33

Show newer messages


Back to Room ListRoom Version: 6