| 1 Aug 2021 |
John Ericson | wanna make the PR from that? | 18:08:40 |
John Ericson | it won't eval or make much sense | 18:10:47 |
John Ericson | but sterni (he/him) knows the llvm stuff I coppied | 18:11:02 |
John Ericson | and should be able to get it going a bit while I am away from internet most of today | 18:11:25 |
alexfmpe | ok, so I should hmm, cherry-pick this on top of staging and PR that as wip draft ? | 18:11:58 |
John Ericson | don't worry about staging | 18:12:16 |
John Ericson | it is all new stuff | 18:12:19 |
John Ericson | leaving the existing gcc as is | 18:12:23 |
alexfmpe | sure | 18:12:35 |
John Ericson | you can just push that branch as is to your repo and make PR | 18:12:52 |
John Ericson | (and mention the issue number :)) | 18:13:03 |
John Ericson | g2g for now | 18:14:22 |
John Ericson | looking forward to poking at it later! | 18:14:31 |
alexfmpe | https://github.com/NixOS/nixpkgs/pull/132343 | 18:21:15 |
Alyssa Ross | siraben: the canonical GNU triple is actually pdp11-dec-aout | 18:25:58 |
Alyssa Ross | (as reported by config.sub pdp11-aout) | 18:26:10 |
Alyssa Ross | siraben: I think the Nix double here would be pdp11-aout, as opposed to pdp11-none. | 18:36:52 |
| 2 Aug 2021 |
siraben | Alyssa Ross: thanks that seems better | 06:46:38 |
siraben | but I can't compile GNU hello yet | 06:46:43 |
Alyssa Ross | is 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 | maybe I need to use the gcc fork? | 06:47:25 |
siraben | run it at least in a PDP simulator | 06:48:25 |
siraben | because isn't the point of having cross systems is to be able to cross-compile programs? | 06:48:40 |
siraben | e.g. similarly to MMIX support | 06:48:47 |
Alyssa Ross | right, but GNU hello is a Unix program | 07:06:11 |
Alyssa Ross | you're trying to compile to bare metal aiui | 07:06:18 |
siraben | 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 | 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 | hm, maybe need to specify newlib | 07:18:40 |
Alyssa Ross | Is cross compiling to PDP-11 bare metal actually what you want? You don't want to target Unix? | 07:21:46 |