openwhisk
openwhisk copied to clipboard
can't start standalone on apple m2
Environment details:
local deployment
Steps to reproduce the issue:
1)prepare a m2 machine 2)./gradlew core:standalone:bootRun
exception
Build using Scala 2.12
Scala sub-project 'gatling_tests' doesn't have Scoverage applied and will be ignored in parent project aggregation
> Task :core:scheduler:generateProto FAILED
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-3.4.0-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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 797ms
maybe we should shoud update protobuf version
I have this same issue when trying to install a Standalone stack on Ubuntu 20.04. Updating the protoc version to 3.6.1 in core/scheduler/build.gradle works on my side.
With this change, it wasn't the standalone build, but I could build OW on m1 mac. https://github.com/apache/openwhisk/pull/5511 Some libraries are dependent on the version of protoc, so it's not easy to upgrade for now.
I think you can try rosetta. https://github.com/apache/openwhisk/pull/5511#discussion_r1762543515