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

fix macos dyld limit

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-09-06
    • 85

      Dynamic link builds for macos are imposed a limit by dyld (512 hardcoded in apple source code: https://opensource.apple.com/source/dyld/dyld-852/src/ImageLoader.cpp.auto.html ). This seems issue seems to arise differently for different versions of xcode which could be because different xcodes automatically link in different number of system libraries.

      We need to

      1. fix the current issue by reducing the number of libraries in the link graph,
      2. re-enable dynamic link for xcode 12.4 builders
      3. setup a script task to check the number of libraries the current dydl, and fail if it's close to or at the limit. (moved to SERVER-59643)

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: