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

go: support for aarch64 via binary bootstrap #27651

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

elitak
Copy link
Contributor

@elitak elitak commented Jul 26, 2017

Motivation for this change

I wanted to run ipfs on aarch64.

Things done

This is probably still too hacky, but I'd like some feedback before I dig deeper into getting a more sensible bootstrap. What I did is built my own and hand-crafted (just a few renames) a tarball for use as a standin for pkgs.go_bootstrap. I'm hosting this tarball on my own host, so at the very least it could be hosted someplace with higher reliability.

go_1_6 go_1_7 go_1_8 all build. ipfs builds and runs.

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@elitak, thanks for your PR! By analyzing the history of the files in this pull request, we identified @avnik, @LnL7 and @brendanlong to be potential reviewers.

@elitak elitak force-pushed the go-aarch64 branch 4 times, most recently from b5c4df2 to 76686f8 Compare July 26, 2017 11:05
@elitak
Copy link
Contributor Author

elitak commented Jul 26, 2017

The Darwin build keeps failing, despite my rebases. The log doesn't suggest it's caused by my changes. Is the CI buid for Darwin broken?

@cstrahan
Copy link
Contributor

I think there was a recent change to the stdenv that introduced recent Bash syntax (relative to the Bash version that ships on macOS), breaking Darwin's stdenv bootstrap. I think that's either being worked out, or maybe the commit(s) already landed on master, I can't recall.

@elitak
Copy link
Contributor Author

elitak commented Jul 27, 2017

Okay, thanks. I just rebased again and it works now.

@globin globin merged commit 723bd8b into NixOS:master Aug 11, 2017
@elitak elitak deleted the go-aarch64 branch December 29, 2018 08:42
srcOnly {
name = "go-1.8-linux-arm64-bootstrap";
src = fetchurl {
url = "https://cache.xor.us/go-1.8-linux-arm64-bootstrap.tar.xz";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • cache.xor.us now presents the cert for blog.xor.us, breaking TLS
  • even if you allow certificate mismatch, URL returns 404

@bobrik bobrik mentioned this pull request Feb 6, 2021
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants