Building OpenJDK 8 on macOS 10.12 - Path provided in --with-xcode-path not being used to locate Xcode?
David DeHaven
david.dehaven at oracle.com
Wed Jan 18 17:22:41 UTC 2017
> I'm trying to build OpenJDK 8 on macOS 10.12, and having some trouble
> getting it to accept the path to Xcode.
>
> $ ./configure "--with-xcode-path=$HOME/DevEnv/Applications/Xcode4/Xcode.app"
>
> checking Determining if we need to set DEVELOPER_DIR... yes
> (/Users/tester/DevEnv/Applications/Xcode4/Xcode.app/Contents/Developer)
> checking for xcodebuild...
> /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
>
> configure: error: Xcode 4 is required to build JDK 8, the version
> found was 8.2.1. Use --with-xcode-path to specify the location of
> Xcode 4 or make Xcode 4 active by using xcode-select.
>
> configure exiting with result code 1
>
> From the DEVELOPER_DIR line, it seems like the option has been
> accepted, but then it immediately ignores the setting for xcodebuild
> and fails with the version being wrong...
Xcode 4 does not run on 10.12, or even 10.11. Did you have this working previously? Last time I tried this the toolchain was DOA on anything later than 10.10.
-DrD-
More information about the build-dev
mailing list