Skip to content

Conversation

@minijackson
Copy link
Member

Description of changes

Adds powerpc64 bootstrap files to linux' stdenv, so that nixpkgs is usable from a powerpc64 machine, or using emulatedSystems = [ "powerpc64-linux" ];.

I'm not sure I got the hashes right the first time, so they might need to be updated the tarballs are uploaded. I'm not sure how to test it while we are missing the uploads.

Things done

@github-actions github-actions bot added the 6.topic: stdenv Standard environment label Jun 9, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 9, 2022
@alyssais alyssais requested a review from r-burns June 13, 2022 14:31
@r-burns
Copy link
Contributor

r-burns commented Jun 13, 2022

Until these are uploaded to tarballs.nixos.org, please use working URLs for ease of testing/verification. Then once we get someone to do the upload, we can change the URLs to point to tarballs.nixos.org and verify that the hashes are the same before merging.

@minijackson minijackson force-pushed the add-powerpc64-bootstrap branch from 135f471 to b031e37 Compare June 16, 2022 07:21
@minijackson
Copy link
Member Author

so after 12h of compilation, Nix started to compile the "real" gcc, but it failed with this output, apparently because the C preprocessor isn't there/detected? But it succeeded in compiling bison, gettext, perl, and other things, so it could be a bug elsewhere, but I'm not sure where.

On another note, would it be possible to replace the value of system by the config config on in nixpkgs systems attrset? Right now cross-compiling for powerpc64-linux and powerpc64-unknown-linux-gnu leads to two different builds of gcc and the rest, to my knowledge only because the name differs.

@OPNA2608 OPNA2608 mentioned this pull request Sep 1, 2022
14 tasks
@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 7, 2023
@minijackson
Copy link
Member Author

Closing as I no longer have a use for it, if someone is interested, feel free to re-open or tag me on another PR.

@minijackson minijackson deleted the add-powerpc64-bootstrap branch July 22, 2025 16:44
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: stdenv Standard environment 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants