[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:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The error returned is:
Illegal Instruction: 4

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: SERVER-11264 Include OS X minimum version flag on link lines
Branch: master
https://github.com/mongodb/mongo/commit/978af985464daba35e139619ed9fc3c67e3ecfd4

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.

Generated at Thu Feb 08 03:25:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.