pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[Bug] Cannot build on Apple Arm

Open chenrui333 opened this issue 1 year ago • 1 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Read release policy

  • [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

  • 3.1.2, or whatever latest

Minimal reproduce step

  • brew install --build-from-source apache-pulsar would show the build issue

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:

  • https://github.com/apache/pulsar/issues/16639
  • https://github.com/Homebrew/homebrew-core/pull/168487

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

chenrui333 avatar Apr 19 '24 12:04 chenrui333

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?

lhotari avatar Apr 19 '24 13:04 lhotari