Skip to content
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 failure in loading Native library in Apple Silicon with M4 Pro #1188

Closed
singhpk234 opened this issue Dec 19, 2024 · 3 comments · Fixed by #1234
Closed
Labels
bug Something isn't working

Comments

@singhpk234
Copy link

singhpk234 commented Dec 19, 2024

Describe the bug

Tried

make

Or

make release PROFILES="-Pspark-3.5 -Pscala-2.13"

[ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project comet-spark-spark3.5_2.13: Unable to execute protoc-jar for /Users/prashantsingh/Desktop/oss-workspace/arrow-datafusion-comet/native/proto/src/proto/partitioning.proto: Cannot run program "/Users/prashantsingh/protoc3071461866139821779.exe": error=86, Bad CPU type in executable -> [Help 1]

Steps to reproduce

Try either

make

OR

make release PROFILES="-Pspark-3.5 -Pscala-2.13"

Expected behavior

To pass

Additional context

java --version 
openjdk 17.0.13 2024-10-15 LTS
OpenJDK Runtime Environment Corretto-17.0.13.11.1 (build 17.0.13+11-LTS)
OpenJDK 64-Bit Server VM Corretto-17.0.13.11.1 (build 17.0.13+11-LTS, mixed mode, sharing)
@singhpk234 singhpk234 added the bug Something isn't working label Dec 19, 2024
@singhpk234
Copy link
Author

similar issue : #227

cc @andygrove @viirya

@wForget
Copy link
Member

wForget commented Jan 8, 2025

protoc-3.19.6-osx-aarch_64.exe seems to be just a copy of protoc-3.19.6-osx-x86_64.exe, so it may not work on arm64 macos.

image

After upgrading the protobuf version to 3.21.12, it works well.

image

@andygrove @viirya Do we have plans to upgrade the protobuf version?

@mbutrovich
Copy link
Contributor

If you're manually installing protobuf anyway, can you try the version supplied by Homebrew? That's what I'm using on my Apple Silicon machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants