Skip to content

arm64 issue when compiling on M1 #59

@bvoq

Description

@bvoq

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:

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "aarch64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "qemuarm64"
DISTRO               = "poky"
DISTRO_VERSION       = "4.0.4"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa57"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "<unknown>:<unknown>"
meta-clang           = "kirkstone:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"
meta-flutter         = "main:3c6ba93ad2de2ae1d9c71a9b34c55fc93d8ef024"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions