Skip to content

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

Closed

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

Activity

  1. tirth-patel-nc commented on Oct 8, 2025

    @tirth-patel-nc
    Member

    @planetmarshall thanks for the report and potential fix. I tried running command but I do not have necessary setup. Keeping it open for team's tracking.

    tirthpatel@Tirths-MacBook-Pro 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=/
    env: vpython3: No such file or directory
  2. added
    engineflutter/engine related. See also e: labels.
    e: engine-toolEngine-specific tooling (i.e. `tools/engine_tool`).
    and removed
    in triagePresently being triaged by the triage team
    on Oct 8, 2025
  3. added
    P2Important issues not at the top of the work list
    on Oct 20, 2025
  4. added a commit that references this issue on Oct 27, 2025
    eb713a5
  5. added a commit that references this issue on Oct 31, 2025
    6a7dc58
  6. github-actions commented on Nov 11, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Nov 11, 2025
  8. added a commit that references this issue on Dec 10, 2025
    d5fd1de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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