Skip to content

"Getting Started" Fails on Apple Silicon #330

@dweekly

Description

@dweekly

grpc-java apparently doesn't support macOS aarch64 yet, so grpc-kotlin's getting started guide at https://grpc.io/docs/languages/kotlin/basics/ fails on installDist if the user is on Apple Silicon.

% git clone https://github.com/grpc/grpc-kotlin
Cloning into 'grpc-kotlin'...
remote: Enumerating objects: 2851, done.
remote: Counting objects: 100% (662/662), done.
remote: Compressing objects: 100% (362/362), done.
remote: Total 2851 (delta 207), reused 450 (delta 95), pack-reused 2189
Receiving objects: 100% (2851/2851), 717.40 KiB | 4.72 MiB/s, done.
Resolving deltas: 100% (1042/1042), done.
% cd grpc-kotlin/examples
% ./gradlew installDist
Downloading https://services.gradle.org/distributions/gradle-7.4-bin.zip
...........10%...........20%...........30%...........40%...........50%...........60%...........70%...........80%...........90%...........100%

Welcome to Gradle 7.4!

Here are the highlights of this release:

  • Aggregated test and JaCoCo reports
  • Marking additional test source directories as tests in IntelliJ
  • Support for Adoptium JDKs in Java toolchains

For more details see https://docs.gradle.org/7.4/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Task :stub:generateProto FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':stub:generateProto'.

Could not resolve all files for configuration ':stub:protobufToolsLocator_grpc'.
Could not find protoc-gen-grpc-java-1.39.0-osx-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.39.0).
Searched in the following locations:
https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.39.0/protoc-gen-grpc-java-1.39.0-osx-aarch_64.exe

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions