sofastack / sofa-rpc

SOFARPC is a high-performance, high-extensibility, production-level Java RPC framework.
https://www.sofastack.tech/sofa-rpc/docs/Home
Apache License 2.0
3.82k stars 1.17k forks source link

在 M1/M2 Chip 的 Mac 上无法编译通过 #1302

Closed khotyn closed 1 year ago

khotyn commented 1 year ago

详细错误如下:

[ERROR] Failed to execute goal on project sofa-rpc-remoting-http: Could not resolve dependencies for project com.alipay.sofa:sofa-rpc-remoting-http:jar:5.9.1: io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.25.Final was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

需要升级 netty-tcnative-boringssl-static 的版本。

khotyn commented 1 year ago

所依赖的 protoc 也需要升级:

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project sofa-rpc-remoting-triple: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
[ERROR]
[ERROR]   Try downloading the file manually from the project website.
[ERROR]
[ERROR]   Then, install it using the command:
[ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR]   Alternatively, if you host your own repository you can deploy the file there:
[ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]   Path to dependency:
[ERROR]     1) com.alipay.sofa:sofa-rpc-remoting-triple:jar:5.9.1
[ERROR]     2) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
khotyn commented 1 year ago

@EvenLjj 我创建了一个 PR,不过测试用例还无法跑过,需要等上游的几个依赖发布新的版本。

EvenLjj commented 1 year ago

@khotyn OK,等上游版本发布之后,再继续跟进这个问题。

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

StringKe commented 1 year ago

上游还没更新么?

khotyn commented 1 year ago

@StringKe 上游版本发布了,不过现在还有一个测试用例没有办法跑过,还在看。

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

khotyn commented 1 year ago

Still waiting https://github.com/sofastack/sofa-registry/issues/327 to complete so we can have a sofa registry-test version that is compatible with aarch.