To get around the lipo problem I symlinked /usr/bin/lipo to the lipo in XCode 5:

$ sudo mv /usr/bin/lipo /usr/bin/lipo_broken
$ sudo ln -s 
/Applications/Xcode.app/Contents//Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo
 /usr/bin/lipo

That, together with the edit of NSUserNotification.h made it possible for me to 
build jdk8 with XCode 4.6.3 on Mavericks. 

/Staffan


On 24 okt 2013, at 20:15, David DeHaven <david.deha...@oracle.com> wrote:

> 
>>>> I managed to build OpenJDK on Mavericks using the Xcode4 tool chain, with 
>>>> one minor glitch (Bob, installing Quartz X11 addresses X11 issues.)
>>>> 
>>>> Before installing Mavericks, I renamed Xcode.app to Xcode4.app.
>>>> 
>>>> I then installed Mavericks and sundry updates (Xcode5, iTunes, iWorks, 
>>>> iLife, ...)
>>>> 
>>>> After checking out tl, I configured with
>>>> 
>>>>    sh ./configure 
>>>> --with-tools-dir=/Applications/Xcode4.app/Contents/Developer/usr/bin
>>> 
>>> You can also install the Xcode 4 command line tools and run "sudo 
>>> xcode-select --switch /Applications/Xcode4.app" then you shouldn't need the 
>>> --with-tools-dir configure argument (I have both 4.6 and 5 installed). The 
>>> Xcode 5 command line tools clobber the gcc symlinks, which is (IMHO) a bug 
>>> in Apples CL tools installer...
>>> 
>> 
>> I tried that and the build scripts seemed to hang on "xcrun lipo"
> 
> Hmm.. I'm still running 10.8 (won't switch until I'm done with my current ... 
> erm, "task" ... )
> 
> What does "xcrun -f lipo" report?
> 
> I had to "forget" the Xcode 5 CL tools installer receipt ("sudo pkgutil 
> --forget com.apple.pkg.DeveloperToolsCLI" I think) then reinstall Xcode 4 CL 
> tools. Forgetting the package receipt forces it to rewrite everything and 
> fixes all the symlinks that got broken (at least the relevant ones), 
> otherwise it thinks everything is already installed and skips any actual work.
> 
> -DrD-
> 

Reply via email to