bugMIT/GNU Scheme - Bugs: bug #47769, Can't find SDK on OS X 10.10...

 
 

bug #47769: Can't find SDK on OS X 10.10 Yosemite with Xcode 7.x

Submitter:  ilovezfs <ilovezfs>
Submitted:  Sat 23 Apr 2016 10:54:44 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  cph Originator Name: 
Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 23 Apr 2016 10:54:44 AM UTC, original submission:  

configure: error: No MacOSX SDK for version: 10.10
configure: error: ./configure failed for microcode

The mit-scheme build system's configure can no longer assume a one-to-one mapping between SDKs and OS X major versions.

Xcode 7.x has only a 10.11 SDK, which is intended to be used with 10.10 and 10.11. You tell it whether you're building for 10.10 or 10.11 by setting the MACOSX_DEPLOYMENT_TARGET

https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/Introduction.html#//apple_ref/doc/uid/TP40004626

Section "About SDKs and Simulator"

Apple intends to continue this pattern. So when 10.12 is released, there will only be a 10.12 SDK, etc.


Currently, I'm patching this on Homebrew by making the following replacement in src/microcode/configure:

/SDK=MacOSX\${MACOSX}$/, "SDK=MacOSX#{MacOS.sdk.version}"

This works because there is logic in Homebrew to support this that will return 10.11 for MacOS.sdk.version if it's a 10.10 system with Xcode 7.

https://github.com/Homebrew/brew/blob/765cd216f0c9141239f6b2472335f602be869072/Library/Homebrew/os/mac.rb#L90-L119

So the build system for mit-scheme will need to do something similar for >=Xcode 7.

ilovezfs <ilovezfs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cph (Updated the item)
  • -email is unavailable- added by ilovezfs (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-11 cph StatusNone Fixed
        Assigned toNone cph
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code