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

grpc protoc gen can not work on apple m2 chip #36005

Closed
JackyAnn opened this issue Sep 19, 2023 · 3 comments
Closed

grpc protoc gen can not work on apple m2 chip #36005

JackyAnn opened this issue Sep 19, 2023 · 3 comments
Labels
area/grpc gRPC area/kotlin env/m2 Impacts Apple M2 machines kind/bug Something isn't working

Comments

@JackyAnn
Copy link

Describe the bug

It worked fine on my macbook air m1 chip, but didn't work on my macbook pro m2 chip

/Users/jacky/Workspace/work/doorlink/iot-server/service/build/io.grpc-protoc-gen-grpc-java-osx-aarch_64-exe: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':service:quarkusGenerateCode'.
> There was a failure while executing work items
   > A failure occurred while executing io.quarkus.gradle.tasks.worker.CodeGenWorker
      > Failed to generate sources in the QuarkusPrepare task for ltd.doorlink:service:1.0.0 due to java.lang.reflect.InvocationTargetException

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

Darwin jacky-mac.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

Welcome to Gradle 8.3! Here are the highlights of this release: - Faster Java compilation - Reduced memory usage - Support for running on Java 20 For more details see https://docs.gradle.org/8.3/release-notes.html ------------------------------------------------------------ Gradle 8.3 ------------------------------------------------------------ Build time: 2023-08-17 07:06:47 UTC Revision: 8afbf24b469158b714b36e84c6f4d4976c86fcd5 Kotlin: 1.9.0 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 20.0.2 (Oracle Corporation 20.0.2+9-78) OS: Mac OS X 13.5.2 aarch64

Additional information

No response

@JackyAnn JackyAnn added the kind/bug Something isn't working label Sep 19, 2023
@quarkus-bot quarkus-bot bot added area/grpc gRPC area/kotlin env/m1 Impacts Apple M1 machines labels Sep 19, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 19, 2023

/cc @alesj (grpc), @cescoffier (grpc), @evanchooly (kotlin), @gastaldi (m1), @geoand (kotlin)

@JackyAnn JackyAnn changed the title grpc err grpc GenerateCode FAILED Sep 19, 2023
@geoand geoand added env/m2 Impacts Apple M2 machines and removed env/m1 Impacts Apple M1 machines labels Sep 19, 2023
@JackyAnn
Copy link
Author

image

@JackyAnn JackyAnn changed the title grpc GenerateCode FAILED grpc can not work on apple m2 chip Sep 23, 2023
@JackyAnn JackyAnn changed the title grpc can not work on apple m2 chip grpc protoc gen can not work on apple m2 chip Sep 23, 2023
@cescoffier
Copy link
Member

Unfortunately, it means that protoc is not compatible with your architecture. I would recommend opening an issue in the protoc project to ask if they can / will provide a compatible executable.

Quarkus is just consuming the artifacts. So, we can’t do much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/grpc gRPC area/kotlin env/m2 Impacts Apple M2 machines kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants