Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for toolchains for CloudABI / WASI #59285

Open
Ericson2314 opened this issue Apr 10, 2019 · 5 comments
Open

Build for toolchains for CloudABI / WASI #59285

Ericson2314 opened this issue Apr 10, 2019 · 5 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 6.topic: exotic Exotic hardware or software platform

Comments

@Ericson2314
Copy link
Member

https://cloudabi.org/ is a cap-safe "censored POSIX". (https://lwn.net/Articles/674770/ is a good secondary source.) It would be nice if Nixpkgs could cross compiler to this platform. While mainstream software has been ported to run on this platform (https://github.com/NuxiNL/cloudabi-ports), since it is a not standard Unixish, packages shouldn't be expected to work out of the box. Therefore Nixpkgs ought to support it as it does embedded platforms: building toolchains should work (though they aren't cached), but nothing else is supported.

I'm mainly interested in this so we can cross compile [a ported] Nix to that platform (NixOS/nix#2759) so various experiments can take place.

@Ericson2314 Ericson2314 added the 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on label Apr 10, 2019
@edolstra
Copy link
Member

Discussing whether to add support for another platform (especially a non-POSIX platform) is best done via an RFC. A quick look at the number of patches at https://github.com/NuxiNL/cloudabi-ports/tree/master/packages suggests that the overhead in supporting this platform would be considerable.

@Ericson2314
Copy link
Member Author

Ericson2314 commented Apr 11, 2019

best done via an RFC

I'm hoping we end up, per NixOS/rfcs#31 (comment), doing just 1 RFC to establish the criteria for supporting any platform.

suggests that the overhead in supporting this platform would be considerable.

Yes it will be, which is why I suggest treat it like an embedded platform and make no effort to build packages on that platform, just tools for that platform.

Hopefully that RFC, in pivoting to define the criteria for supporting platforms, defines the "embedded platform level of support" precisely.

@Ericson2314 Ericson2314 changed the title Build for CloudABI Build for CloudABI / WASI Apr 11, 2019
@Ericson2314 Ericson2314 changed the title Build for CloudABI / WASI Build for toolchains CloudABI / WASI Apr 11, 2019
@Ericson2314 Ericson2314 changed the title Build for toolchains CloudABI / WASI Build for toolchains for CloudABI / WASI Apr 11, 2019
@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@Ericson2314
Copy link
Member Author

Yeah, it would be still nice to do this.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
@ehmry ehmry added the 6.topic: exotic Exotic hardware or software platform label Nov 3, 2020
@stale
Copy link

stale bot commented Jun 5, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 6.topic: exotic Exotic hardware or software platform
Projects
None yet
Development

No branches or pull requests

3 participants