[
https://issues.apache.org/jira/browse/FLINK-28259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17559068#comment-17559068
]
Robert Metzger commented on FLINK-28259:
----------------------------------------
Prototc 3.21.2 provides a proper aarch64 binary. I'll raise a PR to bump the
version.
> flink-parquet doesn't compile on M1 mac without rosetta
> -------------------------------------------------------
>
> Key: FLINK-28259
> URL: https://issues.apache.org/jira/browse/FLINK-28259
> Project: Flink
> Issue Type: Bug
> Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
> Affects Versions: 1.16.0
> Reporter: Robert Metzger
> Assignee: Robert Metzger
> Priority: Major
>
> Compiling Flink 1.16-SNAPSHOT fails on an M1 Mac (apple silicon) without the
> rosetta translation layer, because the automatically downloaded
> "protoc-3.17.3-osx-aarch_64.exe" file is actually just a copy of
> "protoc-3.17.3-osx-x86_64.exe". (as you can read here:
> https://github.com/os72/protoc-jar/issues/93)
> This is the error:
> {code}
> [ERROR] Failed to execute goal
> org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:test-compile (default)
> on project flink-parquet: An error occurred while invoking protoc. Error
> while executing process. Cannot run program
> "/Users/rmetzger/Projects/flink/flink-formats/flink-parquet/target/protoc-plugins/protoc-3.17.3-osx-aarch_64.exe":
> error=86, Bad CPU type in executable -> [Help 1]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)