-
Notifications
You must be signed in to change notification settings - Fork 22
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
arm64 issue when compiling on M1 #59
Comments
Thanks for the issue, but I have never tried to build flutter/engine on aarch64 machines. I'm not sure flutter/engine builds are supported on aarch64 arch. https://github.com/sony/flutter-embedded-linux/wiki/Building-Flutter-Engine-from-source shows how to build on x64 CPUs basically. |
Ok I have more info regarding this. You can simulate x86_64 architecture on Docker on M1 MacBooks but you will into the known Maybe the code would have to be refactored with clang support to support arm? |
What do you mean? meta-flutter doesn't require GCC, it just uses only clang. |
hmm maybe yocto then? because |
Hi, I've created a Dockerfile to reproduce this issue and you can find it here: https://github.com/bvoq/FlutterMetaDockerfile/tree/main/fluttergcc11wayland
You only need Docker installed and you can run
build.sh
and the rest should be taken care of.The code runs successfully on an older Mac with x86_64 architecture but not on arm64 Macs.
The reason is that gcc-multilib is not supported for arm64 architecture.
Installing just g++-11 and gcc-11 separately leads to the following issue:
My build platform is aarch64-linux, since I'm using M1 Mac with Docker.
Failing build configuration:
The text was updated successfully, but these errors were encountered: