You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/18 02:31:17 UTC
[GitHub] [pulsar] tisonkun opened a new issue, #16639: Cannot build on Apple M1 clip 2021
tisonkun opened a new issue, #16639:
URL: https://github.com/apache/pulsar/issues/16639
**Describe the bug**
```
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on project managed-ledger: An error occurred while invoking protoc: Error while executing process.: Cannot run program "/Users/chenzili/Workspace/pulsar/managed-ledger/target/protoc-plugins/protoc-3.19.2-osx-aarch_64.exe": error=86, Bad CPU type in executable -> [Help 1]
```
**To Reproduce**
On a macOS machine with properties:
* MacBook Pro (16-inch, 2021)
* Chip Apple M1 Pro
Clone pulsar code and execute `mvn clean install -DskipTests`
**Expected behavior**
Successfully compiled.
**Additional context**
protoc 3.19.2 dists osx-aarch_64 binary as an alias to the osx-x86_64 one.
Bumping the version to 3.21.2 resolves the issue.
I'll prepare a PR for this issue.
--
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: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1207942424
@leizhiyuan do you install Rosetta 2.0?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1186708731
I'd like to keep it open since we need some workaround instead of a native solution. This issue may remind me to see whether upstream provides a real osx-aarch_64 protoc-gen-grpc-java binary.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun closed issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
tisonkun closed issue #16639: Cannot build on Apple M1 clip 2021
URL: https://github.com/apache/pulsar/issues/16639
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] leizhiyuan commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
leizhiyuan commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1208010307
> @leizhiyuan do you install Rosetta 2.0?
yes..
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Cannot build on Apple M1 clip 2021 [pulsar]
Posted by "chenrui333 (via GitHub)" <gi...@apache.org>.
chenrui333 commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-2048050447
Looks like apache-pulsar still does not support native arm build, can we maybe reopen this issue (or should I create a new one)?
Also, github has arm build support now with macos-14 runner. https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
- https://github.com/orgs/community/discussions/73040
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1208015488
After consideration, I tend to close the issue as I cannot uninstall or disable Rosetta and reproduce the issue anymore.
When https://github.com/grpc/grpc-java/issues/7690 gets resolved we may directly try to upgrade the dep version. Or someone who has an M1 without Rosetta environment can verify then.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1186701807
It seems barely bump the protoc version doesn't fix the issue entirely. Meet:
```
[ERROR] PROTOC FAILED: /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/target/protoc-plugins/protoc-gen-grpc-java-1.45.1-osx-aarch_64.exe: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc-java_out: protoc-gen-grpc-java: Plugin failed with status code 1.
[ERROR] /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/src/main/proto/Request.proto [0:0]: /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/target/protoc-plugins/protoc-gen-grpc-java-1.45.1-osx-aarch_64.exe: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc-java_out: protoc-gen-grpc-java: Plugin failed with status code 1.
[ERROR] /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/src/main/proto/Function.proto [0:0]: /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/target/protoc-plugins/protoc-gen-grpc-java-1.45.1-osx-aarch_64.exe: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc-java_out: protoc-gen-grpc-java: Plugin failed with status code 1.
[ERROR] /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/src/main/proto/InstanceCommunication.proto [0:0]: /Users/chenzili/Workspace/pulsar/pulsar-functions/proto/target/protoc-plugins/protoc-gen-grpc-java-1.45.1-osx-aarch_64.exe: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--grpc-java_out: protoc-gen-grpc-java: Plugin failed with status code 1.
```
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] leizhiyuan commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
leizhiyuan commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1207822769
now ,master branch can build in m1 (works for me)
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on issue #16639: Cannot build on Apple M1 clip 2021
Posted by GitBox <gi...@apache.org>.
tisonkun commented on issue #16639:
URL: https://github.com/apache/pulsar/issues/16639#issuecomment-1186704318
Install Rosetta (see https://github.com/google/protobuf-gradle-plugin/issues/543#issuecomment-1029392165) workaround the issue. However, we may bump version of protoc and grpc-java to get native osx-aarch_64 binary. protoc provides one at the moment while grpc-java plugin doesn't.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org