[SERVER-56728] Cannot run 4.9+ on Apple Silicon Created: 06/May/21 Updated: 29/Oct/23 Resolved: 09/May/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0-rc1, 5.0.0-rc0 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Louisa Berger | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Backport Requested: |
v4.9
|
||||||||||||||||||||||||||||
| Sprint: | Dev Platform 2021-05-17 | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||||||
| Description |
|
Mongo 4.9+ cannot start on M1 laptops:
acm tracked down that this is because the ISA targeting for the server build was upgraded in 4.9 to sandybridge, which uses AVX instructions that are not handled by Rosetta:
He recommended special case downgrading the macOS target ISA to something that doesn’t generate AVX until we have a native Apple Silicon build. |
| Comments |
| Comment by Githook User [ 09/May/21 ] |
|
Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}Message: Doing so allows AVX instructions, but those aren't supported on (cherry picked from commit d740377ed7aa5bf944aa0750eb5a14379314f6c3) |
| Comment by Githook User [ 09/May/21 ] |
|
Author: {'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}Message: Doing so allows AVX instructions, but those aren't supported on |
| Comment by Andrew Morrow (Inactive) [ 06/May/21 ] |
|
This is a consequence of We will need to downgrade the microarchitecture targeting for macOS to something which does not contain AVX instructions, probably core2. Once we have a native Apple Silicon build, we can reevaluate microarchitecture targeting for macOS. |