Skip to content

Build script generation for cross compilation from macos to linux fails #176637

@planetmarshall

Description

@planetmarshall

Steps to reproduce

From a macos host,

  1. After having synced the flutter sources, run
    $ ./engine/src/flutter/tools/gn \
       --disable-desktop-embeddings \
       --enable-minimal-linux \
       --linux-cpu=arm \
       --arm-float-abi=hard \
       --target-os=linux \
       --target-triple=armv7-unknown-linux-gnueabihf  \
       --target-sysroot=/ # some arbitrary path will do if you don't have an actual sysroot available 
    

Expected results

The ninja build files should be generated succesfully

Actual results

The command exits with

ERROR at //flutter/shell/platform/embedder/BUILD.gn:147:21: Undeclared identifier
             cflags_objc = flutter_cflags_objc

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: engine-toolEngine-specific tooling (i.e. `tools/engine_tool`).engineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions