-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad CPU type in executable protoc-jar #227
Comments
Hmm, I'm also using M3 Max, but I don't see the issue.
Is it possible that you installed x86 JDK? And, from the error message,
Looks like it tries to run x86 protoc? |
And do you have |
I do have xcode installed. I tried with openjdk 11 as well.
It seems to be arm64 build:
I also have protoc installed and seems to be arm64 version:
I still see the same issue 😕 |
Is it possible due to this protocolbuffers/protobuf#8557? |
Do you install |
I tried installing protobuf with homebrew as well as manually. In either case, maven runs the downloaded one, which is not really an arm64 build even though it pretends to be. As a workaround, I ran the following comment to enable x86 compatibility mode (as suggested in protocolbuffers/protobuf#8557) and the build now works. softwareupdate --install-rosetta |
Hmm, it's weird. I don't remember I've installed rosetta. @sunchao Do you have it? |
I don't think I installed Rosetta either. |
This is no longer an issue for me and we have not had other reports of this happening, so will close this |
Describe the bug
I am trying to build Comet on a new Macbook Pro M3 Max and I am running into this error:
Steps to reproduce
I installed openjdk@17 and protoc using homebrew. I am using the following command to build the project.
make release PROFILES="-Pspark-3.4"
Here is some of the log output:
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: