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

Linking error compiling on macOS with Zstandard asm

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.3.0-rc3
    • None
    • None
    • Fully Compatible
    • Dev Platform 2022-02-21, Dev Platform 2022-03-07

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: