jdk8 and MacOSX Mavericks XCode gcc
David DeHaven
david.dehaven at oracle.com
Thu Oct 24 10:53:55 PDT 2013
> 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 think ultimately we should investigate using xcrun to find the tools rather than relying on xcode-select. With that we could build without having the command line tools installed at all. The configure script should be able to do this, then use the same mechanism as --with-tools-dir to set the tool path.
For example:
$ xcrun -f clang
/Applications/Xcode_4.6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-DrD-
More information about the jdk8-dev
mailing list