You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build script generation for cross compilation from macos to linux fails #176637
$ ./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
@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
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.
Activity
tirth-patel-nc commentedon Oct 8, 2025
@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.
disable metal for crosscompile from mac to linux (#176639)
disable metal for crosscompile from mac to linux (#176639)
github-actions commentedon Nov 11, 2025
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 -vand a minimal reproduction of the issue.disable metal for crosscompile from mac to linux (flutter#176639)