!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

582 Members
127 Servers

Load older messages


SenderMessageTime
1 Aug 2021
@Ericson2314:matrix.orgJohn Ericsonwanna make the PR from that?18:08:40
@Ericson2314:matrix.orgJohn Ericsonit won't eval or make much sense18:10:47
@Ericson2314:matrix.orgJohn Ericson but sterni (he/him) knows the llvm stuff I coppied 18:11:02
@Ericson2314:matrix.orgJohn Ericsonand should be able to get it going a bit while I am away from internet most of today18:11:25
@alexfmpe:matrix.orgalexfmpeok, so I should hmm, cherry-pick this on top of staging and PR that as wip draft ?18:11:58
@Ericson2314:matrix.orgJohn Ericsondon't worry about staging18:12:16
@Ericson2314:matrix.orgJohn Ericsonit is all new stuff18:12:19
@Ericson2314:matrix.orgJohn Ericsonleaving the existing gcc as is18:12:23
@alexfmpe:matrix.orgalexfmpesure18:12:35
@Ericson2314:matrix.orgJohn Ericsonyou can just push that branch as is to your repo and make PR18:12:52
@Ericson2314:matrix.orgJohn Ericson(and mention the issue number :))18:13:03
@Ericson2314:matrix.orgJohn Ericsong2g for now18:14:22
@Ericson2314:matrix.orgJohn Ericsonlooking forward to poking at it later!18:14:31
@alexfmpe:matrix.orgalexfmpehttps://github.com/NixOS/nixpkgs/pull/13234318:21:15
@qyliss:fairydust.spaceAlyssa Rosssiraben: the canonical GNU triple is actually pdp11-dec-aout 18:25:58
@qyliss:fairydust.spaceAlyssa Ross (as reported by config.sub pdp11-aout) 18:26:10
@qyliss:fairydust.spaceAlyssa Ross siraben: I think the Nix double here would be pdp11-aout, as opposed to pdp11-none. 18:36:52
2 Aug 2021
@siraben:matrix.orgsiraben Alyssa Ross: thanks that seems better 06:46:38
@siraben:matrix.orgsirabenbut I can't compile GNU hello yet06:46:43
@qyliss:fairydust.spaceAlyssa Rossis your expectation that you'll be able to compile hello and run it on bare metal on the PDP-11? I'm not sure I understand.06:47:37
@siraben:matrix.orgsirabenmaybe I need to use the gcc fork?06:47:25
@siraben:matrix.orgsirabenrun it at least in a PDP simulator06:48:25
@siraben:matrix.orgsirabenbecause isn't the point of having cross systems is to be able to cross-compile programs?06:48:40
@siraben:matrix.orgsirabene.g. similarly to MMIX support06:48:47
@qyliss:fairydust.spaceAlyssa Rossright, but GNU hello is a Unix program07:06:11
@qyliss:fairydust.spaceAlyssa Rossyou're trying to compile to bare metal aiui07:06:18
@siraben:matrix.orgsiraben
In reply to @qyliss:fairydust.space
you're trying to compile to bare metal aiui

even so, I can't obtain a shell with a cross compiler

$ nix-shell --expr --impure 'with import ./. { crossSystem = { config = "pdp11-aout"; }; }; mkShell {}'
error: Unknown libc native/impure
(use '--show-trace' to show detailed location information)
-bash-4.2$ 
07:18:26
@siraben:matrix.orgsiraben
In reply to @qyliss:fairydust.space
you're trying to compile to bare metal aiui
*

even so, I can't obtain a shell with a cross compiler

$ nix-shell --expr --impure 'with import ./. { crossSystem = { config = "pdp11-aout"; }; }; mkShell {}'
error: Unknown libc native/impure
(use '--show-trace' to show detailed location information)
07:18:29
@siraben:matrix.orgsirabenhm, maybe need to specify newlib07:18:40
@qyliss:fairydust.spaceAlyssa RossIs cross compiling to PDP-11 bare metal actually what you want? You don't want to target Unix?07:21:46

Show newer messages


Back to Room ListRoom Version: 6