!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

512 Members
112 Servers

Load older messages


SenderMessageTime
2 Aug 2021
@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
@qyliss:fairydust.spaceAlyssa Rosswhat are you intending on running on this, then?08:00:13
@siraben:matrix.orgsirabenliterally just doing it to make it a cross target08:04:08
@siraben:matrix.orgsirabensame motivation as MMIX08:04:14
@siraben:matrix.orgsiraben * same motivation as MMIX, at most there's a simulator08:04:22
@qyliss:fairydust.spaceAlyssa Rosshmm, I'm not sure about adding cross targets that don't even have a realistic use case08:05:11
@qyliss:fairydust.spaceAlyssa Rossnot because I'm opposed to more cross targets, but just because it's too hard to know whether we've got it right08:05:23
@siraben:matrix.orgsirabenthey don't add load on hydra and encourage build diversity08:05:32
@qyliss:fairydust.spaceAlyssa Rossyou don't have to convince me that more cross targets in general are a good thing08:05:50
@siraben:matrix.orgsirabenok08:06:02
@siraben:matrix.orgsirabenYeah, getting it right is the hard bit08:06:06
@siraben:matrix.orgsirabenI usually use GNU Hello as "good enough"08:06:11
@qyliss:fairydust.spaceAlyssa Rossbut in this case, where there's no software we can even build for this thing, there's no way for us to even test it08:06:14
@qyliss:fairydust.spaceAlyssa Rossso I don't think it really makes sense to have this particular target in Nixpkgs08:08:41
@siraben:matrix.orgsirabenI see08:12:41
@siraben:matrix.orgsirabenClosing, then.08:12:59

There are no newer messages yet.


Back to Room ListRoom Version: 6