Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63041

Linking error compiling on macOS with Zstandard asm

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Dev Platform 2022-02-21, Dev Platform 2022-03-07

      For SERVER-49230 I ended up manually disabling asm on macOS due to a couple linking issues I came across.

      First error:

      ld: warning: object file (build/opt/third_party/zstandard/zstd/lib/decompress/huf_decompress_amd64.dyn.o) was built for newer macOS version (10.15) than being linked (10.14)
      

      This appears to be the same as or similar to this issue.

      Second error:

      ld: warning: ignoring file build/opt/third_party/zstandard/zstd/lib/decompress/huf_decompress_amd64.dyn.o, building for macOS-x86_64 but attempting to link with file built for unknown-arm64
      

      This one is specific to compiling via Rosetta 2.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: