[SERVER-59118] fix macos dyld limit Created: 05/Aug/21  Updated: 29/Oct/23  Resolved: 27/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Daniel Moody Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-30955 dynamically linked mongod fails to st... Closed
Related
related to SERVER-59438 clean up library dependencies in db/c... Closed
related to SERVER-59439 clean up libraries in SConscript file... Closed
related to SERVER-59470 clean up libraries in SConscript for ... Closed
related to SERVER-59643 monitor Mac OS dyld limit Closed
is related to SERVER-30955 dynamically linked mongod fails to st... Closed
is related to SERVER-59117 xcode next builders hit dyld 512 libr... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-09-06
Participants:
Linked BF Score: 85

 Description   

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)


 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 27/Aug/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-59118 enable xcode 12.4 builders dynamic mode

This setting was previously disabled in commit c142c727325339ba4569c583d209907453ac3504
due to the dyld limit.
Branch: master
https://github.com/mongodb/mongo/commit/486ed33c0d868f579be9d5fb5e29d25d721cf4d9

Generated at Thu Feb 08 05:46:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.