Skip to content

[🐛 Bug]: Building Selenium Atoms fails on a MacBookPro M4 (ARM64) #16358

@whimboo

Description

@whimboo

Description

I'm trying to build some Selenium atoms on my MacBookPro M4 but the build process fails with:

Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Analyzed target //javascript/atoms/fragments:get-text (187 packages loaded, 2481 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_henrik/b58f0477e3b952dea2f48025db663106/external/com_google_dagger/BUILD:7:12: Extracting interface @com_google_dagger//:runtime [for host] failed: (Exit 1): ijar failed: error executing command
  (cd /private/var/tmp/_bazel_henrik/b58f0477e3b952dea2f48025db663106/sandbox/darwin-sandbox/4/execroot/selenium && \
  exec env - \
    PATH=/bin:/usr/bin:/usr/local/bin \
  external/remote_java_tools_darwin/java_tools/ijar/ijar external/com_google_dagger/dagger-2.14.1.jar bazel-out/host/bin/external/com_google_dagger/_ijar/runtime/dagger-2.14.1-ijar.jar --target_label @com_google_dagger//:runtime)
# Configuration: edc327570c55dd660daf217ec64d0ee7e1ae72c76baa3e8c0dc2bca0ee5d9c9f
# Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/main/tools/process-wrapper-legacy.cc:80: "execvp(external/remote_java_tools_darwin/java_tools/ijar/ijar, ...)": Bad CPU type in executable
ERROR: /private/var/tmp/_bazel_henrik/b58f0477e3b952dea2f48025db663106/external/com_google_closure_stylesheets/BUILD:7:12: Extracting interface @com_google_closure_stylesheets//:com_google_closure_stylesheets [for host] failed: (Exit 1): ijar failed: error executing command
  (cd /private/var/tmp/_bazel_henrik/b58f0477e3b952dea2f48025db663106/sandbox/darwin-sandbox/5/execroot/selenium && \
  exec env - \
    PATH=/bin:/usr/bin:/usr/local/bin \
  external/remote_java_tools_darwin/java_tools/ijar/ijar external/com_google_closure_stylesheets/closure-stylesheets-1.5.0.jar bazel-out/host/bin/external/com_google_closure_stylesheets/_ijar/com_google_closure_stylesheets/closure-stylesheets-1.5.0-ijar.jar --target_label @com_google_closure_stylesheets//:com_google_closure_stylesheets)
# Configuration: edc327570c55dd660daf217ec64d0ee7e1ae72c76baa3e8c0dc2bca0ee5d9c9f
# Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
src/main/tools/process-wrapper-legacy.cc:80: "execvp(external/remote_java_tools_darwin/java_tools/ijar/ijar, ...)": Bad CPU type in executable
Target //javascript/atoms/fragments:get-text failed to build
INFO: Elapsed time: 74.707s, Critical Path: 0.18s
INFO: 756 processes: 755 internal, 1 darwin-sandbox.
FAILED: Build did NOT complete successfully

As it can be seen binaries for the x86_64 architecture are downloaded but not for aarch64:

 file /private/var/tmp/_bazel_henrik/b58f0477e3b952dea2f48025db663106/external/remote_java_tools_darwin/java_tools/ijar/ijar
/private/var/tmp/_bazel_henrik/b58f0477e3b952dea2f48025db663106/external/remote_java_tools_darwin/java_tools/ijar/ijar: Mach-O 64-bit executable x86_64

Reproducible Code

Just try to run:

> bazel build //javascript/atoms/fragments:get-text

ℹ️ Last known working version: not sure I didn't build for quite some time

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!B-buildIncludes scripting, bazel and CI integrationsI-defectSomething is not working as intendedI-regressionSomething was working but we "fixed" itOS-mac

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions