Skip to content

Dart SDK support for macOS arm64 (Apple Silicon) #42773

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

Closed
4 tasks done
a-siva opened this issue Jul 21, 2020 · 21 comments
Closed
4 tasks done

Dart SDK support for macOS arm64 (Apple Silicon) #42773

a-siva opened this issue Jul 21, 2020 · 21 comments
Assignees
Labels
area-sdk Use area-sdk for general purpose SDK issues (packaging, distribution, …). P2 A bug or feature request we're likely to work on

Comments

@a-siva
Copy link
Contributor

a-siva commented Jul 21, 2020

Dart SDK support for macOS arm64 (Apple Silicon):

@a-siva a-siva added the area-sdk Use area-sdk for general purpose SDK issues (packaging, distribution, …). label Jul 21, 2020
@a-siva a-siva self-assigned this Jul 21, 2020
@a-siva a-siva added this to the Future milestone Aug 5, 2020
@athomas
Copy link
Member

athomas commented Nov 16, 2020

Note, we won't have the build and test infrastructure set up until Q1, see https://crbug.com/1147828.

@mit-mit
Copy link
Member

mit-mit commented Nov 16, 2020

Related specific issue for Dart native compilation to executables: #44001

@a-siva
Copy link
Contributor Author

a-siva commented Nov 17, 2020

Work on native compilation of Dart SDK for macOS ARM is progressing and we hope to have an initial build done in Q4, for full fledged support of builds and tests please see #42773 (comment)

@acoutts
Copy link

acoutts commented Dec 5, 2020

@a-siva is there anything we can try yet for building dart ourselves on ARM macOS? I tried following the build instructions but ran into the same issue as #43488

@mit-mit mit-mit changed the title Dart SDK version is built for macOS ARM host Dart SDK support for macOS arm64 (Apple Silicon) Jan 27, 2021
@a-siva a-siva modified the milestones: Future, March Beta Release Jan 27, 2021
dart-bot pushed a commit that referenced this issue Feb 10, 2021
Bug: #42773
Change-Id: I7f5715952461ea87310dacb8aa37c66692b1aacc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184060
Reviewed-by: Siva Annamalai <[email protected]>
Commit-Queue: Ryan Macnak <[email protected]>
@mraleph
Copy link
Member

mraleph commented Feb 19, 2021

Blocked on https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=67614 (our toolchain does not properly support Mac ARM64 target yet).

@mraleph mraleph added the status-blocked Blocked from making progress by another (referenced) issue label Feb 19, 2021
@vsmenon
Copy link
Member

vsmenon commented Mar 23, 2021

@a-siva @mit-mit - are we comfortable punting this to the next milestone? I think we discussed that since we're blocked.

@mit-mit
Copy link
Member

mit-mit commented Mar 23, 2021

I don't think we have much choice currently, and I'm not aware of any hard deadlines, so yes

dart-bot pushed a commit that referenced this issue Apr 19, 2021
ARM64 Mac has 16k pages, so we need snapshot parts to be 16k aligned for our ELF loader to load them via mmap.

TEST=ci
Bug: #42773
Change-Id: Ifa3d70e453ea72883d821e48cfc76b0d983391f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193821
Commit-Queue: Ryan Macnak <[email protected]>
Reviewed-by: Siva Annamalai <[email protected]>
dart-bot pushed a commit that referenced this issue Apr 19, 2021
Allow for segment padding when testing that strip decreases snapshot size.

Cf. bc21eda.

TEST=ci
Bug: #42773
Change-Id: Icf533b2caa756488e17856495f3877fb779d2faf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196040
Commit-Queue: Ryan Macnak <[email protected]>
Reviewed-by: Alexander Markov <[email protected]>
@franklinyow
Copy link
Contributor

@a-siva Should this move out of April? Which Milestone we're looking at?

@a-siva
Copy link
Contributor Author

a-siva commented Apr 20, 2021

We are able to build locally, for this to be complete we need to set up the bots to build/test for this configuration. We expect this setup to be ready and done by end of June. So yes the milestone needs to be moved. I will drop April, do you have a milestone for activities to be done by end of June ?

@franklinyow
Copy link
Contributor

@a-siva We have June Milestone open

@alhafoudh
Copy link

alhafoudh commented May 17, 2021

Sorry for maybe dumb and naive question, but will this allow us to run dart analyzer natively on Apple Silicon CPU?

@mraleph
Copy link
Member

mraleph commented May 17, 2021

Sorry for maybe dump and naive question, but will this allow us to run dart analyzer natively on Apple Silicon CPU?

Yes. Once we have a native SDK for Apple Silicon everything will run natively.

@mraleph mraleph removed the status-blocked Blocked from making progress by another (referenced) issue label May 17, 2021
dart-bot pushed a commit that referenced this issue May 20, 2021
Bug: #42773
Change-Id: I24e3e842ffc7b3ac28e3236b1b4ef393762f9c8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193823
Reviewed-by: Alexander Thomas <[email protected]>
Reviewed-by: William Hesse <[email protected]>
Commit-Queue: Alexander Thomas <[email protected]>
dart-bot pushed a commit that referenced this issue May 20, 2021
This reverts commit 660e631.

Reason for revert: Breaks FFI builds: as: unrecognized option '-EL'

Original change's description:
> [infra] Update to a clang with libc++.a for Mac ARM64.
>
> Bug: #42773
> Change-Id: I24e3e842ffc7b3ac28e3236b1b4ef393762f9c8a
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193823
> Reviewed-by: Alexander Thomas <[email protected]>
> Reviewed-by: William Hesse <[email protected]>
> Commit-Queue: Alexander Thomas <[email protected]>

[email protected],[email protected],[email protected]

Change-Id: Ib444653411c9053bd2eb81c2bf54dbbd9f3686b8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: #42773
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200870
Reviewed-by: Alexander Thomas <[email protected]>
Commit-Queue: Alexander Thomas <[email protected]>
dart-bot pushed a commit that referenced this issue May 24, 2021
Adjust Android build.

Bug: #42773
Bug: flutter/flutter#75348
Change-Id: Iae98c03e8e155793648825b3155572412303434b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200903
Reviewed-by: Alexander Aprelev <[email protected]>
Commit-Queue: Ryan Macnak <[email protected]>
@a-siva
Copy link
Contributor Author

a-siva commented Jun 11, 2021

We now have an initial build bot setup for building and testing this variant, see https://ci.chromium.org/p/dart/builders/ci.sandbox/vm-kernel-mac-release-arm64

@a-siva a-siva added the P2 A bug or feature request we're likely to work on label Jun 22, 2021
@acoutts
Copy link

acoutts commented Jul 4, 2021

@a-siva is it possible to download arm64 builds yet?

@mraleph
Copy link
Member

mraleph commented Jul 5, 2021

@acoutts We don't yet have official SDK builds released for ARM64 Macs AFAIK. You can download and try one produced by CI bot if you want, latest build is always available from this bucket: gs://dart-archive/channels/be/raw/latest/sdk/dartsdk-macos-arm64-release.zip ( HTTPS link ). Be aware that it is not signed.

@lesnitsky
Copy link

lesnitsky commented Jul 5, 2021

jit mode works
executable produced by dart compile exe exits immediately

UPD: apparently I did something wrong the first time, AOT also works

@premkumar5012002
Copy link

When dart sdk will release in stable for mac os arm64

@franklinyow
Copy link
Contributor

@a-siva Are we done? Should this move to the next milestone?

@a-siva
Copy link
Contributor Author

a-siva commented Jul 13, 2021

@mit-mit can you add a comment here on when PM would like to announce availability of this configuration.

@mit-mit
Copy link
Member

mit-mit commented Jul 20, 2021

I'm happy to comment that arm64/M1 support is now available in the dev and beta channels from https://dart.dev/tools/sdk/archive

If you experience any problems, kindly file new issues in the present bug tracker. Thanks!

@mit-mit
Copy link
Member

mit-mit commented Jul 20, 2021

@a-siva I think we can close this issue now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-sdk Use area-sdk for general purpose SDK issues (packaging, distribution, …). P2 A bug or feature request we're likely to work on
Projects
None yet
Development

No branches or pull requests

10 participants