Thanks David, I have Xcode 6.1.1 and configure fails with "Could not find freetype! These sites http://blog.shelan.org/2015/03/how-to-build-open-jdk-9-on-mac-osx.html http://gvsmirnov.ru/blog/tech/2014/02/07/building-openjdk-8-on-osx-maverick.html say to install XQuartz, but that didn't help. BTW, My OS is Mavericks.
If it matters I have not yet moved Xcode out of /Applications. Pete On 5/6/15 11:11 AM, David DeHaven wrote: > Correct, --with-xcode-path is for jdk8u only as it requires building with > Xcode 4. For jdk9 use the Xcode 5.1 or later. > > The Xcode 6.3 patch is in hotspot, it will be integrated to dev hopefully in > the near future. In the meantime you can apply the patch to your local > workspace. > > Or, if you have an ADC account, you should be able to download Xcode 6.1 or > 6.2 (listed in the "other" downloads). Just install it somewhere besides > /Applications or the Mac App Store will try to auto-update it for you. Once > installed, just use "sudo xcode-select --switch /path/to/Xcode-6.2.app" to > use it. > > -DrD- > >> Maybe it's because now I am using the 9 repo: >> >> $ bash ./configure --with-xcode-path=/Applications/Xcode\ 4.6.3.app/ >> 2>&1 | tee configure.log >> Running generated-configure.sh >> configure: error: unrecognized options: --with-xcode-path >> configure exiting with result code 1 >> >> On 5/6/15 7:51 AM, Vadim Pakhnushev wrote: >>> Hi Pete, >>> >>> How is that? >>> I haven't tried this lately, but I just pulled 8u-dev sources and the >>> option is there: >>> >>> $ sh configure --help >>> .... >>> --with-xcode-path explicit path to Xcode 4 (generally for >>> building on >>> 10.9 and later) >>> >>> Thanks, >>> Vadim >>> >>> On 06.05.2015 15:39, Pete Brunet wrote: >>>> Hi Vadim, I had to defer from this for a while but am back at it. >>>> >>>> Apparently --with-xcode-path isn't currently a valid option. >>>> >>>> Pete >>>> >>>> On 4/7/15 10:22 AM, Vadim Pakhnushev wrote: >>>>> Pete, have you tried >>>>> sh configure --with-xcode-path=/Applications/Xcode\ 4.6.3.app/ >>>>> ? >>>>> It seems that the configure doesn't pick the correct path from the >>>>> xcode-select. >>>>> Although I successfully built jdk8u on 10.10 with both xcode-select >>>>> and --with-xcode-path >>>>> BTW, the correct path for xcode-select would be /Applications/Xcode\ >>>>> 4.6.3.app/Contents/Developer I guess. >>>>> >>>>> Thanks, >>>>> Vadim >>>>> >>>>> On 07.04.2015 15:56, Pete Brunet wrote: >>>>>> Hi, I need some help so I can build on MacOSX to fix a build break. >>>>>> >>>>>> First since I had Xcode 6.1.1 and configure complained that I didn't >>>>>> have v4 I installed v4.6.3. After installing 4.6.3 and doing >>>>>> sudo xcode-select -s /Applications/Xcode\ 4.6.3.app/ >>>>>> I got past that. Then for some reason my compile environment is now >>>>>> bad. I get >>>>>> >>>>>> ... >>>>>> configure:20476: checking for C compiler version >>>>>> configure:20485: /usr/bin/gcc --version >&5 >>>>>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. >>>>>> build >>>>>> 5658) (LLVM build 2336.11.00) >>>>>> Copyright (C) 2007 Free Software Foundation, Inc. >>>>>> This is free software; see the source for copying conditions. There >>>>>> is NO >>>>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >>>>>> PURPOSE. >>>>>> >>>>>> configure:20496: $? = 0 >>>>>> configure:20485: /usr/bin/gcc -v >&5 >>>>>> Using built-in specs. >>>>>> Target: i686-apple-darwin11 >>>>>> Configured with: >>>>>> /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure >>>>>> --disable-checking --enable-werror >>>>>> --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 >>>>>> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ >>>>>> --program-prefix=llvm- >>>>>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ >>>>>> --with-slibdir=/usr/lib --build=i686-apple-darwin11 >>>>>> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local >>>>>> >>>>>> >>>>>> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 >>>>>> --target=i686-apple-darwin11 >>>>>> --with-gxx-include-dir=/usr/include/c++/4.2.1 >>>>>> Thread model: posix >>>>>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build >>>>>> 2336.11.00) >>>>>> configure:20496: $? = 0 >>>>>> configure:20485: /usr/bin/gcc -V >&5 >>>>>> llvm-gcc-4.2: argument to `-V' is missing >>>>>> configure:20496: $? = 1 >>>>>> configure:20485: /usr/bin/gcc -qversion >&5 >>>>>> i686-apple-darwin11-llvm-gcc-4.2: no input files >>>>>> configure:20496: $? = 1 >>>>>> configure:20516: checking whether the C compiler works >>>>>> configure:20538: /usr/bin/gcc conftest.c >&5 >>>>>> ld: library not found for -lcrt1.10.6.o >>>>>> collect2: ld returned 1 exit status >>>>>> ... >>>>>> >>>>>> Trying find from the root: >>>>>> find . -name crt1\* >>>>>> >>>>>> ... >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/crt1.3.1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/crt1.10.5.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/crt1.10.6.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/crt1.3.1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.10.5.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.10.6.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/crt1.10.5.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/crt1.10.6.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode >>>>>> 4.6.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/crt1.3.1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/crt1.10.5.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/crt1.10.6.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/crt1.3.1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/crt1.10.5.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/crt1.10.6.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.10.5.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.10.6.o >>>>>> >>>>>> >>>>>> ./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.o >>>>>> >>>>>> >>>>>> ... >>>>>> >>>>>> Xcode.app above is v6.1.1. I am on OS X 10.9.5 and notice that for >>>>>> 10.9 >>>>>> I have crt1.10.6.o Xcode (6.1.1) but not for Xcode 4.6.3. >>>>>> >>>>>> Pete