How current does the build jdk have to be for cross builds

erik.joelsson at oracle.com erik.joelsson at oracle.com
Fri Mar 31 13:21:34 UTC 2023


Hello Thomas,

On 3/31/23 05:43, Thomas Stüfe wrote:
> Hi,
>
> quick question, I'm doing arm crossbuilds, trying to find an errornous 
> patch with bisecting. With crossbuild, I am specifying build-jdk.
>
> How current does the build-jdk have to be? If the build jdk does not 
> fit the source I am trying to build, would that be immediately obvious 
> or would I get strange errors? I am gauging whether to rebuild the 
> build jdk for every bisect point.
>
As far as I know, we expect the BUILD_JDK to be an exact match, but in 
practice it probably works with something a bit older most of the time. 
It depends on what differences there are between the current source and 
the BUILD_JDK. I haven't tried using an out of date BUILD_JDK but I 
would imagine the errors to be strange and unpredictable. In your case, 
if you want to avoid strange surprises, letting the BUILD_JDK be rebuilt 
automatically is preferred, but if the bisect range is small, maybe it's 
worth chancing it to save build time.

/Erik





More information about the build-dev mailing list