Coming soon: JDK 9 Platform/Compiler upgrades at Oracle

Bradford Wetmore bradford.wetmore at oracle.com
Mon Oct 6 18:49:15 UTC 2014


If you are not building on Linux, you can skip this.

I don't know how recent this change is, but when compiling the *OPEN* 
repositories using the stock gcc 4.4.7 installed by default on Oracle 
Linux 6.4, you will probably see this compiler error:

     https://bugs.openjdk.java.net/browse/JDK-8059698

open-dev/hotspot/src/share/vm/services/classLoadingService.cpp: In 
static member function âstatic void 
ClassLoadingService::notify_class_loaded(InstanceKlass*, bool)â:
open-dev/hotspot/src/share/vm/services/classLoadingService.cpp:144: 
error: cannot reload integer constant operand in âasmâ

 >  > For JDK 9 we will upgrade the build platforms and compilers used at
 >  > Oracle to build the JDK.
 >  >
 >  > In this cycle, our target combinations are:
...deleted...
 >  > - Linux - Oracle Linux 6.4 64-bit / GCC 4.8.2

I was able to get a clean build using 4.8.2.

(For Oracle folks, 6.4 is the standard image from PDIT DevOps.  If you 
look on our internal wiki, there is a link to a 4.8.2 devkit which can 
be used.)

Brad

P.S.  Nothing like discovering build problems while trying to debug an 
emergency fix.  ;)


On 10/3/2014 1:18 PM, Bradford Wetmore wrote:
> Sorry for the wide distribution, but there is an important followup to a
> message from June.  If you are not building on Solaris, you can skip this.
>
>  > For JDK 9 we will upgrade the build platforms and compilers used at
>  > Oracle to build the JDK.
>  >
>  > In this cycle, our target combinations are:
>  > ...deleted...
>  > - Solaris X86 - 11.1 / Oracle Solaris Studio 12.3
>  > - Solaris SPARC - 11.1 / Oracle Solaris Studio 12.3
>
> A recent change to a hotspot CC invocation now requires the new Solaris
> Studio 12.3 compilers be found in your PATH/ when running "configure",
> or else the hotspot build will fail:
>
> Linking vm...
> ...
> /java/devtools/i586/SUNWspro/SS12u3/bin/CC -m64 ... -Wl,-z,defs \
>      -o libjvm.so ...lots of .so files and libraries...
>
> changeset:   7135:5051bb01fa2b
> user:        mgerdin
> date:        Thu Sep 25 10:01:53 2014 +0200
> summary:     8055141: Catch linker errors earlier in the JVM build by
> not allowing unresolved externals
>
> +  LFLAGS_VM                += -Wl,-z,defs
>
> For Oracle folks, the usual tree has the new compilers under the SS12u3
> directory.
>
> WARNING, there is currently *no check* for this requirement in configure.
>
> I know at least one other person who has run into this, so hopefully
> this saves others some time.
>
> Brad
>
>
>
>
>
>
> On 6/5/2014 2:46 PM, Tim Bell wrote:
>> All-
>>
>> For JDK 9 we will upgrade the build platforms and compilers used at
>> Oracle to build the JDK.
>>
>> In this cycle, our target combinations are:
>>
>> - Linux - Oracle Linux 6.4 64-bit / GCC 4.8.2
>> - Mac OS X - 10.9.2 (Mavericks) 64-bit / XCode 5.1.1 / clang
>> - Solaris X86 - 11.1 / Oracle Solaris Studio 12.3
>> - Solaris SPARC - 11.1 / Oracle Solaris Studio 12.3
>> - Windows - Windows Server 2012 R2 64-bit / Microsoft Visual Studio 2013
>>
>> For Linux and Windows, the 64-bit platform will also build 32-bit
>> binaries.
>>
>> The Mac OS X and Solaris builds are already 64-bit only.
>>
>> Status of the project:
>>
>> At this point, both the Solaris and Linux platforms build using the
>> new platforms and tools.  They also passed an initial round of
>> testing.  Performance testing is still in progress.
>>
>> For Windows and Mac OS X, we are working on a few stopper bugs.
>>
>> We will need to integrate a set of fixes as part of doing the compiler
>> upgrades in order for us to be able to build the JDK using the new
>> compilers.
>>
>> Upgrades are currently planned for Linux and Solaris platforms next
>> week (June 9).  A JDK 9 build will be promoted containing only these
>> changes.
>>
>> Mac OS X and Windows will follow when the stopper bugs are fixed and
>> we are ready.  At this point, we are estimating the end of June.  We
>> will send an email to this list with confirmation of the dates for
>> these two platforms once the blockers have been resolved.
>>
>> We will send an update to the list when we start the upgrade.
>>
>> It is important to keep as few things as possible moving during the
>> special promotion cycle.  We will work with the integrators to ensure
>> no changes apart from those needed for the compiler upgrades are
>> integrated into the master.
>>
>> We will notify you when the upgrade has been completed and will also
>> let you know where to find the build that was done after the compiler
>> upgrades.
>>
>> Feedback is welcome.  Please send to jdk9-dev at openjdk.java.net
>>
>> Tim
>>


More information about the jdk9-dev mailing list