Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-26981 [Umbrella] Make Flink work on Apple M1 ARM chipset
  3. FLINK-28259

flink-parquet doesn't compile on M1 mac without rosetta

    XMLWordPrintableJSON

Details

    Description

      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:

      [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]
      

      Attachments

        Issue Links

          Activity

            People

              rmetzger Robert Metzger
              rmetzger Robert Metzger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: