9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Sigrid Solveig Haflínudóttir" <ftrvxmtrx@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Cross compiling golang from amd64 to arm64
Date: Sun, 16 Jan 2022 14:39:02 +0100	[thread overview]
Message-ID: <CADuwikUoTd-bbcDBmEFoiFUvuBTNrmcHX708bTw1MB_prcS9eg@mail.gmail.com> (raw)
In-Reply-To: <16423395520.07A520f.886322@composer.9fans.topicbox.com>

On Sun, Jan 16, 2022 at 2:26 PM <mjl@altq.se> wrote:
>
> I am trying to cross compile golang to arm64 on a amd64 machine running 9front. I am using the amd64 1.16.3 bootstrap package from 9legacy.org.
>
> toolchain1, 2, and 3 builds cleanly, as could be expected. However, it all falls apart in the end, stating that the combination plan9/arm64 is not supported.
>
> This is what it looks like (I am following the steps from https://9lab.org/plan9/go/).
>
> cpu% GOARCH=arm64 make.rc
> Building Go cmd/dist using /tmp/go-plan9-amd64-bootstrap
> Building Go toolchain1 using /tmp/go-plan9-amd64-bootstrap.
> Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
> Building Go toolchain2 using go_bootstrap and Go toolchain1.
> Building Go toolchain3 using go_bootstrap and Go toolchain2.
> Building packages and commands for host, plan9/amd64.
> Building packages and commands for target, plan9/arm64.
> cmd/go: unsupported GOOS/GOARCH pair plan9/arm64
> go tool dist: FAILED: /sys/lib/go/arm64-1.17.6/pkg/tool/plan9_amd64/go_bootstrap install -gcflags=all= -ldflags=all= std cmd: exit status: 'go_bootstrap 24113: 2'
>
> I will try to dig into the failure a bit more on my own, but any additional input, suggestions, or knowledge would be greatly appreciated.

Go does not have support for Plan 9 on aarch64. Someone has to add
that support for this to work. That means writing code.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T9245e4a0ee87f10b-Mc477b9f9b27700a817a11082
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

      reply	other threads:[~2022-01-16 13:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-16 13:25 mjl
2022-01-16 13:39 ` Sigrid Solveig Haflínudóttir [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADuwikUoTd-bbcDBmEFoiFUvuBTNrmcHX708bTw1MB_prcS9eg@mail.gmail.com \
    --to=ftrvxmtrx@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).