Re: Building OpenJDK 8 on macOS 10.12 - Path provided in --with-xcode-path not being used to locate Xcode?

2017-01-13 Thread Magnus Ihse Bursie

Hi Trejkaz,

Try adding 
--with-toolchain-path=$HOME/DevEnv/Applications/Xcode4/Xcode.app/Contents/Developer/usr/bin 
as well.



/Magnus

On 2017-01-13 04:59, Trejkaz wrote:

Hi.

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...

TX




Re: Building OpenJDK 8 on macOS 10.12 - Path provided in --with-xcode-path not being used to locate Xcode?

2017-01-13 Thread Trejkaz
On Fri, Jan 13, 2017 at 7:28 PM, Erik Joelsson  wrote:
> Hello,
>
> I'm not a mac user myself so probably can't help you much, but just to make
> sure. Which forest have you cloned? You should clone either jdk8u/jdk8u or
> jdk8u/jdk8u-dev (depending on if you intend to do development work or not).
> If you cloned jdk8/jdk8 it's unlikely that you get it to build on any modern
> configuration.

I cloned jdk8u-dev. Although the difference was not immediately
obvious, I was following a guide which recommended that.

TX


Re: Building OpenJDK 8 on macOS 10.12 - Path provided in --with-xcode-path not being used to locate Xcode?

2017-01-13 Thread Erik Joelsson

Hello,

I'm not a mac user myself so probably can't help you much, but just to 
make sure. Which forest have you cloned? You should clone either 
jdk8u/jdk8u or jdk8u/jdk8u-dev (depending on if you intend to do 
development work or not). If you cloned jdk8/jdk8 it's unlikely that you 
get it to build on any modern configuration.


/Erik


On 2017-01-13 04:59, Trejkaz wrote:

Hi.

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...

TX