!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
127 Servers

Load older messages


SenderMessageTime
1 Aug 2021
@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
@siraben:matrix.orgsirabenIf I targeted unix, the syscalls would have to be supported, right?07:23:15
@siraben:matrix.orgsirabenI just thought that bare metal would be easiest to get working07:23:26
@qyliss:fairydust.spaceAlyssa RossWell, do you have any programs that support running on bare metal on a PDP-11?07:40:06
@siraben:matrix.orgsiraben int main () { return 0; } ? 07:58:17
@siraben:matrix.orgsiraben😅07:58:26
@siraben:matrix.orgsirabenI'm not sure if newlib or glibc cross-compiles07:59:19
@siraben:matrix.orgsirabenthe Unix that PDP-11 ran has not been used in decades07:59:27

Show newer messages


Back to Room ListRoom Version: 6