Thanks to visit codestin.com
Credit goes to github.com

Skip to content

et build no longer works after https://github.com/flutter/flutter/pull/167945 #167970

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

Closed
dkwingsmt opened this issue Apr 29, 2025 · 2 comments
Closed
Labels
c: regression It was better in the past than it is now e: engine-tool Engine-specific tooling (i.e. `tools/engine_tool`). fyi-ios For the attention of iOS platform team P1 High-priority issues at the top of the work list platform-mac Building on or for macOS specifically team-engine Owned by Engine team

Comments

@dkwingsmt
Copy link
Contributor

dkwingsmt commented Apr 29, 2025

Error log:

❯ et build -c host_debug_unopt_arm64
[2025-04-28 19:53:00.328882][macos/host_debug_unopt_arm64: GN]: FAILED
COMMAND:
/Users/tongmu/dev/flutter/engine/src/flutter/tools/gn --runtime-mode debug --unopt --mac-cpu arm64 --xcode-symlinks --rbe --no-goma --lto
STDOUT:

STDERR:
Traceback (most recent call last):
  File "/Users/tongmu/dev/flutter/engine/src/flutter/tools/gn", line 1311, in <module>
    sys.exit(main(sys.argv))
  File "/Users/tongmu/dev/flutter/engine/src/flutter/tools/gn", line 1290, in main
    gn_args = to_command_line(to_gn_args(args))
  File "/Users/tongmu/dev/flutter/engine/src/flutter/tools/gn", line 529, in to_gn_args
    gn_args.update(setup_apple_sdks())
  File "/Users/tongmu/dev/flutter/engine/src/flutter/tools/gn", line 301, in setup_apple_sdks
    platform_entries = os.listdir(platforms_path)
FileNotFoundError: [Errno 2] No such file or directory: '/Users/tongmu/dev/flutter/engine/src/flutter/prebuilts/Platforms'

Running on macOS 15.4.1 (24E263).

I've bisected the culprit to be #167945. @cbracken

@darshankawar darshankawar added in triage Presently being triaged by the triage team tool Affects the "flutter" command-line tool. See also t: labels. platform-mac Building on or for macOS specifically team-macos Owned by the macOS platform team fyi-tool For the attention of Flutter Tool team and removed in triage Presently being triaged by the triage team labels Apr 29, 2025
@matanlurey matanlurey added c: regression It was better in the past than it is now P1 High-priority issues at the top of the work list team-engine Owned by Engine team team-ios Owned by iOS platform team e: engine-tool Engine-specific tooling (i.e. `tools/engine_tool`). fyi-ios For the attention of iOS platform team and removed tool Affects the "flutter" command-line tool. See also t: labels. fyi-tool For the attention of Flutter Tool team team-macos Owned by the macOS platform team team-ios Owned by iOS platform team labels Apr 29, 2025
@jason-simmons
Copy link
Member

Before building an engine tree with #167945, you will need to rerun gclient sync (or et fetch).

That will run the https://github.com/flutter/flutter/blob/master/engine/src/build/mac/apple_sdk.py script and initialize the engine/src/flutter/prebuilts/Platforms directory.

@dkwingsmt
Copy link
Contributor Author

You're right! Thank you. I should have remembered to sync after any checkouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: regression It was better in the past than it is now e: engine-tool Engine-specific tooling (i.e. `tools/engine_tool`). fyi-ios For the attention of iOS platform team P1 High-priority issues at the top of the work list platform-mac Building on or for macOS specifically team-engine Owned by Engine team
Projects
None yet
Development

No branches or pull requests

4 participants