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

Compile error #20

Closed
alexanderkoller opened this issue Sep 30, 2021 · 6 comments
Closed

Compile error #20

alexanderkoller opened this issue Sep 30, 2021 · 6 comments

Comments

@alexanderkoller
Copy link
Collaborator

alexanderkoller commented Sep 30, 2021

I get a protobuf-related error message when trying to compile infrastructure. This is with Java 15 on the Mac (M1).

turing:A7-MC-Saar-Instruct koller$ ./gradlew build
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :networking:generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':networking:generateProto'.
> Could not resolve all files for configuration ':networking:protobufToolsLocator_protoc'.
   > Could not find protoc-3.11.0-osx-aarch_64.exe (com.google.protobuf:protoc:3.11.0).
     Searched in the following locations:
         https://maven-central.storage-download.googleapis.com/repos/central/data/com/google/protobuf/protoc/3.11.0/protoc-3.11.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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 37s
3 actionable tasks: 3 executed
@akoehn
Copy link
Contributor

akoehn commented Sep 30, 2021 via email

@alexanderkoller
Copy link
Collaborator Author

I can try that, but what do I have to do to make Gradle look for the new Protobuf in the right place?

@akoehn
Copy link
Contributor

akoehn commented Sep 30, 2021 via email

@alexanderkoller
Copy link
Collaborator Author

That changes the way in which the compile fails, see below. Maybe grpc needs to be updated to work with M1 too?

turing:A7-MC-Saar-Instruct koller$ ./gradlew build
> Task :networking:generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':networking:generateProto'.
> Could not resolve all files for configuration ':networking:protobufToolsLocator_grpc'.
   > Could not find protoc-gen-grpc-java-1.41.0-osx-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.41.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.41.0/protoc-gen-grpc-java-1.41.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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 8s
3 actionable tasks: 2 executed, 1 up-to-date

@akoehn
Copy link
Contributor

akoehn commented Sep 30, 2021 via email

@alexanderkoller
Copy link
Collaborator Author

Fixed in 9f82e37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants