Skip to content

update to new cross toolchain#2037

Merged
AkihiroSuda merged 3 commits intomoby:masterfrom
tonistiigi:xxv2
Mar 24, 2021
Merged

update to new cross toolchain#2037
AkihiroSuda merged 3 commits intomoby:masterfrom
tonistiigi:xxv2

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

  • Switch distro to Alpine
  • Cross compile is not amd64 specific anymore. Can build from any arch into any arch. Important when working on arm64 machines that are common now.
  • Rootless dependencies do not compile under qemu anymore
  • Added darwin/arm64 and windows/arm64

@AkihiroSuda @crazy-max

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
FROM gostable AS go-linux
FROM golatest AS go-darwin
FROM golatest AS go-windows-amd64
FROM golatest AS go-windows-386
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we want to support windows 386?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I only left amd64&arm64 in the CI. These are just to cover all possible options. Once we don't need to switch between go versions this can be all removed.

# xx is a helper for cross-compilation
FROM --platform=$BUILDPLATFORM tonistiigi/xx:golang@sha256:810dc54d5144f133a218e88e319184bf8b9ce01d37d46ddb37573e90decd9eef AS xx

FROM --platform=$BUILDPLATFORM golang:1.13-alpine AS gostable
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(Can be another PR, but we seriously need to move away from Go 1.13)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@tiborvass has a spreadsheet with all the possible EINTR for syscalls handlers for go1.13+ that needs to be confirmed to not have possible unfixed cases. @tiborvass please share with @AkihiroSuda

But yes, unrelated to this PR.

@AkihiroSuda AkihiroSuda merged commit ba2ddc7 into moby:master Mar 24, 2021
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.

2 participants