./protoc-gen-grpc-java-1.59.0-osx-aarch_64.exe: Bad CPU type in executable

513 views
Skip to first unread message

Bela Ban

unread,
Nov 17, 2023, 2:14:01 PM11/17/23
to grpc.io
Hi

on a Mac M2 Pro (Darwin device-76.home 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64):

I'm trying to generate Java code via protoc-gen-grpc-java. I downloaded the ARM64 executable at https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.59.0/, protoc-gen-grpc-java-1.59.0-osx-aarch_64.exe, but it fails to execute with the above error.

Note that protoc-3.25.1-osx-aarch_64.exe *does* work.

I also tried other versions (e.g. 1.56), to no avail.

I assume the executable I downloaded is the right one.
Grateful for any help!

Cheers, Bela

Bela Ban

unread,
Nov 18, 2023, 3:52:08 PM11/18/23
to grpc.io
Meanwhile, I found that installing Rosetta fixed the issue. But I'm still wondering why the executables with the ARM suffix don't work on ARM!
Cheers,

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/b636b55c-6eaa-4220-89b1-794f294de8adn%40googlegroups.com.

Sergii Tkachenko

unread,
Nov 21, 2023, 1:20:39 PM11/21/23
to grpc.io
More information is available in the ticket filed for this exect issue: https://github.com/grpc/grpc-java/issues/7690
Reply all
Reply to author
Forward
0 new messages