Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6806

Protobufs don't compile on ARM-based Macs (Apple Silicon)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0, 5.1.3
    • None
    • None

    Description

      This is similar to PHOENIX-6475 for 64-bit Linux ARM. Maven will fail looking for an osx-aarch64 version of protoc 2.5.0

      However, unlike in the Linux case, we have a good workaround that lets us keep using an official 2.5.0 binary.

      MacOS versions that support Apple's ARM processors can run x64 code through a translation layer (with a perf hit). Therefore, we can change the phoenix-core pom to use the MacOS x86_64 version of protoc if it detects we're running osx-aarch64.

      Unlike running all local development through an x64 JDK, which is very slow, protobuf compilation isn't a big part of the build / test time, so the perf hit for just emulating the protobuf compilation shouldn't be too bad.

      Attachments

        Issue Links

          Activity

            People

              gjacoby Geoffrey Jacoby
              gjacoby Geoffrey Jacoby
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: