xcodebuild necessary on Mac?
Wang Weijun
weijun.wang at oracle.com
Thu May 29 02:15:51 UTC 2014
On May 28, 2014, at 23:43, David DeHaven <david.dehaven at oracle.com> wrote:
>
>> I just installed a brand new Mavericks and go straight to 'bash configure' for jdk9/dev. A dialog pops out asking me to choose between installing Xcode and downloading command line tools. I choose the latter and after they are installed I run configure again, and it shows
>>
>> Failed to determine Xcode version.
>
> This looks like a bug. How did you run configure?
Just "bash configure --with-boot-jdk=/myjdk". Do you mean xcodebuild should not be called?
>
>
>> Looking into common/autoconf/toolchain.m4 and it's running xcodebuild to find out the version. Since this is Mavericks I think it should be 5. So I write my own xcodebuild that shows itself as Xcode 5 and configure passed.
>>
>> And the build runs fine (after installing XQuartz).
>
> You no longer need XQuartz:
> http://hg.openjdk.java.net/jdk9/dev/jdk/rev/56024e323104
Oh, guess my repo is not synced.
>
>
>> So why is xcodebuild necessary? What must I install Xcode to build openjdk? I can see 'gcc --version' showing 'LLVM' and '5.1' words also.
>
> xcodebuild is used to find components that are necessary to build. GCC is no longer installed with Xcode, they switched to clang, which is why we need to determine what version of Xcode is installed.
IIRC, gcc is just a wrapper for any compiler. At least it's on my system and 'gcc -version' shows LLVM.
On the other hand, it looks like xcodebuild is not always installed.
Thanks
Max
>
> -DrD-
>
More information about the build-dev
mailing list