Skip to content

wasm_release / wasm_debug_unopt broken in staging #180648

Closed

Description

@jtmcdole

https://ci.chromium.org/ui/p/flutter/builders/staging/Linux%20local_engine_builds?limit=100

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8693463348822775377/+/u/gn_--web_--runtime-mode_release_--no-rbe_--no-goma/stdout

Generating GN files in: out/wasm_release
ERROR at //build/config/darwin/darwin_sdk.gni:109:7: Script returned non-zero exit code.
      exec_script(rebase_path("//build/mac/darwin_sdk.py"), _args, "scope")
      ^----------
Current dir: /Volumes/Work/s/w/ir/cache/builder/engine/src/out/wasm_release/
Command: vpython3 /Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py --print-paths
Returned 1.
stderr:

xcode-select: error: Unable to get active developer directory. Use `sudo xcode-select --switch path/to/Xcode.app` to set one (or see `man xcode-select`)
Traceback (most recent call last):
  File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 171, in <module>
    sys.exit(main(sys.argv))
  File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 150, in main
    sdk_info = get_sdk_info(sdks)
  File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 88, in get_sdk_info
    sdk_info = SdkInfo(get_toolchain_path(), [])
  File "/Volumes/Work/s/w/ir/cache/builder/engine/src/build/mac/darwin_sdk.py", line 57, in get_toolchain_path
    xcode_path = subprocess.check_output(['xcode-select', '-print-path'], timeout=300).decode('utf-8').strip()
  File "/Users/chrome-bot/Library/Caches/vpython-root.502/store/cpython+fa1ipv0hcetnii1ulq4856mmfk/contents/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Users/chrome-bot/Library/Caches/vpython-root.502/store/cpython+fa1ipv0hcetnii1ulq4856mmfk/contents/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['xcode-select', '-print-path']' returned non-zero exit status 2.

See //build/toolchain/mac/BUILD.gn:7:1: whence it was imported.
import("//build/config/darwin/darwin_sdk.gni")
^--------------------------------------------
See //build/compiled_action.gni:179:14: which caused the file to be included.
    deps = [ host_tool ]
             ^--------

Activity

  1. added
    in triagePresently being triaged by the triage team
    engineflutter/engine related. See also e: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Jan 8, 2026
  2. added
    P2Important issues not at the top of the work list
    on Jan 27, 2026
  3. jmagman commented on Feb 19, 2026

    @jmagman
    Member

    The right thing to do is figure out why the Mac wasm builds are pulling in the host build logic, see #162164
    But the easiest thing to do is to re-add xcode as a dependency to the macOS wasm builders. You can see non-iOS/host builds doing this, for example Android:

    "$flutter/osx_sdk": {
    "sdk_version": "16c5032a"
    }

  4. jason-simmons commented on Jul 28, 2026

    @jason-simmons
    Contributor

    Looked at this now.

    The macos/wasm_release and macos/wasm_debug_unopt builders depend on the //build/toolchain/mac host toolchain because they build Wimp/Impeller.

    Impeller includes some host binaries (the impellerc shader compiler and the flatc FlatBuffer compiler). These builds invoke //build/toolchain/mac scripts that require Xcode.

    Running flutter/third_party/gn/gn desc --all --tree out/wasm_release //flutter/wasm will show the dependency tree of targets and their toolchains.

    The tree only uses the Wasm toolchain if I remove //flutter/third_party/canvaskit:wimp_group from the contents of flutter_web_sdk_archive in https://github.com/flutter/flutter/blob/master/engine/src/flutter/web_sdk/BUILD.gn

    If this builder needs to do a full Wasm engine build including Wimp, then the CI environment should install Xcode.

  5. mdebbar commented on Sep 4, 2026

    @mdebbar
    Contributor

    Re-added the xcode dependency to support the wimp build: #192238

    Running with led confirms that the PR fixes the build:

    1. Before the PR (failed):
      https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Linux%20local_engine_builds/2/overview
      https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20Staging%20Engine%20Drone/715/overview
    led get-builder 'luci.flutter.staging:Linux local_engine_builds' \
      | led edit -pa git_ref='refs/heads/master' \
      | led edit -pa git_url='https://github.com/flutter/flutter' \
      | led launch
    
    1. After the PR (succeeded):
      https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Linux%20local_engine_builds/1/overview
      https://ci.chromium.org/ui/p/flutter/builders/staging.shadow/Mac%20Staging%20Engine%20Drone/696/overview
    led get-builder 'luci.flutter.staging:Linux local_engine_builds' \
      | led edit -pa git_ref='refs/pull/192238/head' \
      | led edit -pa git_url='https://github.com/flutter/flutter' \
      | led launch
    
  6. self-assigned this
    on Sep 9, 2026
  7. github-actions commented on Sep 23, 2026

    @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.

  8. locked as resolved and limited conversation to collaborators on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.team-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