openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

can't start standalone on apple m2

Open laglangyue opened this issue 1 year ago • 3 comments
trafficstars

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

laglangyue avatar May 13 '24 06:05 laglangyue

maybe we should shoud update protobuf version

laglangyue avatar May 13 '24 06:05 laglangyue

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.

rivalak avatar Feb 11 '25 23:02 rivalak

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

style95 avatar Feb 12 '25 03:02 style95