Skip to content

emsdk can't be used with Bazel 9/10 #1642

@theoparis

Description

@theoparis
ERROR: Traceback (most recent call last):
        File "/home/theo/.cache/bazel/_bazel_theo/a51fe4523e7bd3b5d868cc54ce49e796/external/emsdk+/emscripten_toolchain/toolchain.bzl", line 1148, column 43, in <toplevel>
                emscripten_cc_toolchain_config_rule = rule(
Error in rule: at index 0 of provides, got element of type NoneType, want Provider
ERROR: /home/theo/src/skia/src/gpu/BUILD.bazel:56:16: While resolving toolchains for target //src/gpu:gpu (1c5f67e): invalid registered toolchain '//emscripten_toolchain:cc-toolchain-wasm-emscripten_linux': error loading package '@@emsdk+//emscripten_toolchain': at /home/theo/.cache/bazel/_bazel_theo/a51fe4523e7bd3b5d868cc54ce49e796/external/emsdk+/remote_emscripten_repository.bzl:4:6: initialization of module 'emscripten_toolchain/toolchain.bzl' failed
ERROR: Analysis of target '//src/gpu:gpu' failed; build aborted

Bazel 9.0 is supposed to be released later this month. It seems that this file needs to pull in CcToolchainConfigInfo via load now. This causes my WIP Bazel 9 skia PR to fail to run tests. I could make a PR if that would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bazelIssues related to Bazel toolchain

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions