[lsst-dm-stack-users] clang confused by Mac OS X Mavericks upgrade, won't build healpy

Lynne Jones ljones.uw at gmail.com
Mon Aug 4 16:05:57 PDT 2014


Hi Phil,

Thanks for getting going with your sims_maf install :) 

The answer is indeed in your migration from old Mac 10.6 to new Mavericks. 
The new Xcode does NOT use a /Developer directory, but it also does not delete the old /Developer directory (Mavericks instead puts its Xcode stuff elsewhere).  
The existence of the old /Developer directory, although it does not confuse the mac itself (even though it’s not used), DOES confuse python’s distutils. 

The workaround I have seen so far (pending Simon figuring out something very clever to do with the install) is to either temporarily or permanently rename or remove your /Developer directory. 
I don’t believe you have any need for it with Mavericks, however, I am suspicious that perhaps something does (otherwise, why wouldn’t Xcode remove it?). 

Anyway, if you rename it, you will sooner or later find out if you need it or not … and if something complains, you can move it back later. 
Renaming it should let the installation of healpy proceed. 

(this is documented on our install page, but I thought it was only pyephem that had the problem). 

Lynne


On Aug 4, 2014, at 3:48 PM, Jim Bosch <talljimbo at gmail.com> wrote:

> More sophisticated suggestions will have to come from devs with more experience with Macs and/or HealPy than I have, but the first thing to try would be to make sure your old attempt isn't still causing problems for more recent ones:
> 
> eups distrib clean healpy 1.7.4
> 
> 
> On Mon, Aug 4, 2014 at 4:40 PM, Phil Marshall <dr.phil.marshall at gmail.com> wrote:
> 
> Hi,
> 
> Perhaps someone else who has migrated to a new Mac machine has seen this problem too. I am trying to install sims_maf with
> 
> eups distrib install sims_maf -t sims
> 
> and it's failing on the healpy package, with error:
> 
> clang: warning: no such sysroot directory: '/Developer/SDKs/MacOSX10.5.sdk'
> In file included from /Users/pjm/lsst/EupsBuildDir/DarwinX86/healpy-1.7.4/healpy-1.7.4/healpixsubmodule/src/cxx/autotools/cxxsupport/announce.cc:40:
> In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:38:
> In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:215:
>  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:90:10: fatal error: 'wchar.h' file not found
> #include <wchar.h>  // for mbstate_t
>           ^
> 1 error generated.
> make: *** [cxxsupport/announce.lo] Error 1
> 
> 
> I think clang is confused by my migrating from a laptop running OS X 10.6 to one running Mavericks: it can't find the wchar.h header file, even though I did what the internet suggested, which was to install the Xcode command line tools with
> 
> xcode-select --install
> 
> This did indeed place a wchar.h into my /usr/include directory, but for some reason it is still not being detected by eups' build script. Any ideas for what I should try next? 
> 
> Thanks!
> 
> Phil 
> 
> 
> 
> _______________________________________________
> lsst-dm-stack-users mailing list
> lsst-dm-stack-users at listserv.lsstcorp.org
> https://listserv.lsstcorp.org/mailman/listinfo/lsst-dm-stack-users
> 
> 
> _______________________________________________
> lsst-dm-stack-users mailing list
> lsst-dm-stack-users at listserv.lsstcorp.org
> https://listserv.lsstcorp.org/mailman/listinfo/lsst-dm-stack-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listserv.lsstcorp.org/pipermail/dm-users/attachments/20140804/c4415c42/attachment.html>


More information about the dm-users mailing list