[SERVER-11264] OS X builds don't run on older versions of the os Created: 18/Oct/13 Updated: 11/Jul/16 Resolved: 18/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.4 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Ernie Hershey | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | 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 | ||||
| Participants: | |||||
| Description |
|
The error returned is: We should fix this by troubleshooting the -mmacosx-version-min=10.6 parameter we pass to g++, visible here - http://mci.10gen.com/ui/task_log_raw/mongodb_mongo_master_osx_108_78a5cc81af2209e10e1357a41e02f1689b60ef1e_13_10_17_22_04_07_compile?type=task And we should prevent this by testing on a 10.6 machine after building on a 10.8 machine. |
| Comments |
| Comment by auto [ 18/Oct/13 ] |
|
Author: {u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}Message: |
| Comment by Andrew Morrow (Inactive) [ 18/Oct/13 ] |
|
The root problem is that while we correctly pass -mmacosx-version-min=10.6 on all of the object file compilation lines, our SConstruct does not propagate CCFLAGS to the link step, so we are not passing -mmacosx-version-min=10.6 when linking mongod. I've verified that a mongod linked with -mmacosx-version-min=10.6 on the link line does properly run on 10.7. So, this is a SERVER issue. The fix is to add -mmacosx-version-min=10.6 to LINKFLAGS. |