You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/02/05 17:31:00 UTC

[GitHub] [openwhisk] tawalaya opened a new issue #5196: Builds on Mac M1 imposible

tawalaya opened a new issue #5196:
URL: https://github.com/apache/openwhisk/issues/5196


   
   ## Environment details:
   
   * Macbook Pro M1 (Apple Silicon) 
   * Idea 2021.3.2
   * 20.10.12
   
   ## Steps to reproduce the issue:
   
   1.   check out brand new git copy
   2.   `./gradlew compileScala` 
   3.   🔥 
   
   
   ## Provide the actual results and outputs:
   
   ```
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':core:scheduler:generateProto'.
   > Could not resolve all files for configuration ':core:scheduler:protobufToolsLocator_protoc'.
      > Could not find protoc-osx-aarch_64.exe (com.google.protobuf:protoc:3.4.0).
        Searched in the following locations:
            https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.4.0/protoc-3.4.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 6.0.
   Use '--warning-mode all' to show the individual deprecation warnings.
   See https://docs.gradle.org/5.5.1/userguide/command_line_interface.html#sec:command_line_warnings
   
   BUILD FAILED in 2m 21s
   ```
   
   ## Additional information you deem important:
   * Tried to use local protoc binary instead using `protocCommand=...` did not work.
   * Changed build.gradle (`:core:sscheduler`) by adding: 
   ```
   protobuf {
       protoc {
           artifact = 'com.google.protobuf:protoc:3.19.4'
       }
   }
   ```
   This causes an already "mitigated" bug  (https://github.com/akka/akka-grpc/issues/786) to reappear, adding a `build/akka-grpc-gradle-plugin.lo` in the working directory of the gradle daemon fixes that but that does not seem to be a reasonable solution?
   
   Ultimately, the version of `grpc:akka-grpc-gradle-plugin` should be updated but that looks to require a major update of gralde.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org