apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.19k stars 3.58k forks source link

[Bug] Cannot build on Apple Arm #22538

Open chenrui333 opened 6 months ago

chenrui333 commented 6 months ago

Search before asking

Read release policy

Version

Minimal reproduce step

What did you expect to see?

build pass

What did you see instead?

 Caused by: org.apache.maven.plugin.MojoExecutionException: An error occurred while invoking protoc: Error while executing process.
 ...
 Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
 ...
 Caused by: java.io.IOException: Cannot run program "/private/tmp/apache-pulsar-20240411-8261-zm4by3/apache-pulsar-3.1.2-src/managed-ledger/target/protoc-plugins/protoc-3.19.6-osx-aarch_64.exe": error=86, Bad CPU type in executable
 ...
 Caused by: java.io.IOException: error=86, Bad CPU type in executable
 ...

Anything else?

full build log in here, https://github.com/Homebrew/homebrew-core/actions/runs/8655513598/job/23734842487?pr=168487

relates to:

Are you willing to submit a PR?

lhotari commented 6 months ago

3.1.2, or whatever latest

@chenrui333 It seems that the Pulsar version in homebrew is outdated. Should use Pulsar version 3.2.2. Do you have a chance to upgrade to 3.2.2 and retry?