Skip to content

[Bazel CI] Failed cl.exe failed: error executing CppCompile command  #3122

@sgowroji

Description

@sgowroji

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4834#01984f35-790f-491a-98de-d1bb7f6d4e4a

Platform: Windows

Logs:

ERROR: �[0mC:/b/yevs3zr6/external/protobuf+/src/google/protobuf/BUILD.bazel:355:11: Compiling src/google/protobuf/port.cc [for tool] failed: (Exit 2): cl.exe failed: error executing CppCompile command (from cc_library rule target @@protobuf+//src/google/protobuf:port) 
failed: 'Protobuf only supports C++17 and newer.'
failed: 'Protobuf only supports C++17 and newer.'
error: missing ';' before '>'
error: '>'
error: missing ';' before ':'
error: missing ';' before ')'

Culprit:

Steps:

git clone https://github.com/bazel-contrib/rules_python
git reset e6bba92d4a3de943c77a50834c727318870bef48  --hard
export USE_BAZEL_VERSION=00b48b27aa216befc419e540919a1f1df4cda337
bazel build  ... @rules_python//examples/wheel/... 

CC Greenteam @meteorcloudy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions