Support macOS with M1 processor
See original GitHub issuegit clone https://github.com/google/copybara.git
bazel build //java/com/google/copybara
resutls on my macBook (with M1 processor) in:
/private/var/tmp/_bazel_me/7e0c0b9f3cabec19d47f3e37da2ab9de/external/io_bazel/third_party/BUILD:376:20: Extracting interface @io_bazel//third_party:error_prone_annotations_checked_in failed: (Exit 1): ijar failed: error executing command external/remote_java_tools_darwin/java_tools/ijar/ijar external/io_bazel/third_party/error_prone/error_prone_annotations-2.11.0.jar ... (remaining 3 arguments skipped)
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 //java/com/google/copybara:copybara failed to build
Use --verbose_failures to see the command lines of failed build steps.
So far copybara worked for me on Ubuntu 22.04 (with x64)
Used Bazel version: 5.3.2
Or it this an Bazel issue? https://github.com/bazelbuild/bazel/issues/13944
Is there a workaround?
I currently embed copybara this way in my WORKSPACE file:
#-------------------------------------------------------------------------------------
# Copybara
#-------------------------------------------------------------------------------------
# Use local repository
local_repository(
name = "com_github_google_copybara",
path = "third_party/copybara-85f7be9c1761b88e4834bb08e2d6e11faa05b51b",
)
load("@com_github_google_copybara//:repositories.bzl", "copybara_repositories")
copybara_repositories()
load("@com_github_google_copybara//:repositories.maven.bzl", "copybara_maven_repositories")
copybara_maven_repositories()
load("@com_github_google_copybara//:repositories.go.bzl", "copybara_go_repositories")
copybara_go_repositories()
Issue Analytics
- State:
- Created 10 months ago
- Comments:6
Top Results From Across the Web
Mac computers with Apple silicon
Mac computers with Apple silicon · MacBook Air (M2, 2022) · MacBook Pro (13-inch, M2, 2022) · Mac Studio (2022) · MacBook Pro...
Read more >Apple M1 Processor Overview and Compatibility - Toptal
The M1 has a standard range of I/O options with a Thunderbolt controller capable of supporting USB 4. However, there's no support for...
Read more >Apple M1 Chip: Everything You Need to Know - MacRumors
The M1 chip is the most powerful chip that Apple has created to date, and it is similar to the A14 chip in...
Read more >Product Compatibility for Apple M1 Silicon Macs (Updated 14 ...
ScopeBox 4.1 supports m1 Macs for all sources who have updated their driver support. This includes support for Blackmagic Design devices; UVC ...
Read more >Apple M1 - Wikipedia
Apple's macOS and iPadOS operating systems both run on the M1. Initial support for the M1 SoC in the Linux kernel was released...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From what I see from your log, the failure is for:
external/remote_java_tools_darwin/java_tools/ijar/ijar
That is a tool that Bazel ships with it, not Copybara related. So definitely ijar seems to be x64 instead of ARM. Another posibility is that it is in the cached downloads of Bazel. Maybe
bazel clean
fixes the issue.I now have Rosetta 2 installed and need it from time to time for other applications (so I cannot uninstall it) - unfortunately, I have no idea how to check if it would work now without Rosetta 2 - therefore I close this issue since Copybara works now for me on M1