| 1 Aug 2021 |
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 |
siraben | If I targeted unix, the syscalls would have to be supported, right? | 07:23:15 |
siraben | I just thought that bare metal would be easiest to get working | 07:23:26 |
Alyssa Ross | Well, do you have any programs that support running on bare metal on a PDP-11? | 07:40:06 |
siraben | int main () { return 0; } ? | 07:58:17 |
siraben | 😅 | 07:58:26 |
siraben | I'm not sure if newlib or glibc cross-compiles | 07:59:19 |
siraben | the Unix that PDP-11 ran has not been used in decades | 07:59:27 |