tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: OSX: No suitable Xcode SDK or Command Line Tools installed [patch/hack]



* On 2015-11-26 at 18:58 GMT, Hubert Feyrer wrote:

> I've updated XCode on my system running OS X 10.10.5 the other day,
> and now pkgsrc tells me:
> 
> 	promise% make
> 	ERROR: This package has set PKG_FAIL_REASON:
> ===> 	ERROR: No suitable Xcode SDK or Command Line Tools installed.
> 	ERROR: graphviz-2.38.0nb9 requires a working dlopen().
> 	*** Error code 1
> 
> 	Stop.
> 	bmake: stopped in /usr/pkgsrc/graphics/graphviz
> 
> Most likely not, at least helloworld.c builds & runs fine.
> So, digging deeper apparently latest XCode thinks it's 10.11 time,
> and thus (in pkgsrc/mk/pkatform/Darwin.mk) OSX_VERS gets set wrong,
> then the SDK version is of course wrong, and then no proper headers can be
> found, etc.
> 
> Digging deeper (see below), I whipped the attached patch together.
> 
> Any comments? Improvements (I'm sure there are many)?

How is building against a newer SDK than what you are running going to
work?  I confess I haven't tried this in a bulk build yet, but I'm
pretty sure it's going to end badly (or worse, in ways that are hard
to debug).

For now the only sensible route seems to be installing the Command
Line Tools as indicated, until Apple either start shipping the 10.10
SDK in XCode 7, or stop tricking 10.10 users into upgrading to an
XCode which doesn't support their system.

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index