Skip to content

[Bazel CI] ERROR: bash failed: Error executing Action command (from _md5_sum rule target //computed_dependencies:hash) - Linux commands are not compatible with macOs. #652

@deepalak56

Description

@deepalak56

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5177#019b7295-bcf1-4d28-ae1e-9fdd83c5bd64

Platform: macOs

Logs:

ERROR: /Users/buildkite/builds/bk-macos-arm64-yq36/bazel-org-repo-root/examples/rules/computed_dependencies/BUILD:21:8: Action computed_dependencies/hash.text failed: (Exit 127): bash failed: error executing Action command (from _md5_sum rule target //computed_dependencies:hash)
  (cd /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/bb3fbdda993bfae3be25b6c82acc3ddf/sandbox/darwin-sandbox/3/execroot/_main && \
  exec env - \
    PATH=/bin:/usr/bin:/usr/local/bin \
  /bin/bash -c 'md5sum < computed_dependencies/hello.txt > bazel-out/darwin_arm64-fastbuild/bin/computed_dependencies/hash.text')
# Configuration: bf1aee1b3ceeb28ff4fb2f366daf2da2f9c779d22162c4ff821dec0699ba326a
# Execution platform: @@platforms//host:host
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/bin/bash: md5sum: command not found
(05:06:58) ERROR: /Users/buildkite/builds/bk-macos-arm64-yq36/bazel-org-repo-root/examples/rules/implicit_output/BUILD:6:7: Action implicit_output/build_hash.sha256 failed: (Exit 127): bash failed: error executing Action command (from _hashes rule target //implicit_output:build_hash)
  (cd /Users/buildkite/Library/Caches/bazel/_bazel_buildkite/bb3fbdda993bfae3be25b6c82acc3ddf/sandbox/darwin-sandbox/1/execroot/_main && \
  exec env - \
    PATH=/bin:/usr/bin:/usr/local/bin \
  /bin/bash -c 'sha256sum implicit_output/BUILD > bazel-out/darwin_arm64-fastbuild/bin/implicit_output/build_hash.sha256')
# Configuration: bf1aee1b3ceeb28ff4fb2f366daf2da2f9c779d22162c4ff821dec0699ba326a
# Execution platform: @@platforms//host:host
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/bin/bash: sha256sum: command not found
(05:06:58) INFO: Elapsed time: 4.394s, Critical Path: 0.60s
(05:06:58) INFO: 38 processes: 38 internal.
(05:06:58) ERROR: Build did NOT complete successfully

Culprit: bazelbuild/bazel@ec36eac

Steps:

git clone https://github.com/bazelbuild/examples
git reset f98ef39 --hard
export USE_BAZEL_VERSION=ec36eacc31678ecf4b5c25f9ab7ab166330aff28
bazel build --host_jvm_args=-Djava.net.preferIPv6Addresses=true --remote_cache=... -- ...

CC Greenteam @fweikert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions