Warnings while building OpenJDK 8 on Linux

David Holmes david.holmes at oracle.com
Thu Aug 8 09:33:42 UTC 2013


On 8/08/2013 4:48 PM, Konstantin Perikov wrote:
> Tools summary:
> * Boot JDK:       java version "1.7.0_40" OpenJDK Runtime Environment
> (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-2-x86_64) OpenJDK 64-Bit
> Server VM (build 24.0-b50, mixed mode)  (at /usr/lib/jvm/java-7-openjdk)
> * C Compiler:     gcTools summary:
> * Boot JDK:       java version "1.7.0_40" OpenJDK Runtime Environment
> (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-2-x86_64) OpenJDK 64-Bit
> Server VM (build 24.0-b50, mixed mode)  (at /usr/lib/jvm/java-7-openjdk)
> * C Compiler:     gcc (GCC) 4.8.1 (prerelease) version 20130725
> (prerelease) (at /usr/bin/gcc)
> * C++ Compiler:   g++ (GCC) 4.8.1 (prerelease) version 20130725
> (prerelease) (at /usr/bin/g++)
> c (GCC) 4.8.1 (prerelease) version 20130725 (prerelease) (at /usr/bin/gcc)
> * C++ Compiler:   g++ (GCC) 4.8.1 (prerelease) version 20130725
> (prerelease) (at /usr/bin/g++)

With gcc 4.8.1 you are really on the bleeding edge here. Some things 
will be broken - eg stack walking (used by NativeMemoryTracking and in 
error reports).

David
-----

> And looks, like this manual -
> https://java.net/projects/adoptopenjdk/pages/Build#Fedora - help me with
> that. It still building, but I'm already bypass compiling part, its
> creating javadocs, or something like this, so I hope, that it builds well.
>
> Probably it's good idea, to mark this section about building not only
> with Fedora, but also with Arch Linux, or any bleeding edge Linux distro.
> For Arch Linux, I could provide commands how to install stuff (replace
> yum with pacman )
>
> Konstantin.
>
>
> 2013/8/8 David Holmes <david.holmes at oracle.com
> <mailto:david.holmes at oracle.com>>
>
>     On 8/08/2013 8:02 AM, Константин Периков wrote:
>
>         Hi,
>
>         I'm trying to build OpenJDK 8 on Arch Linux and get warnings,
>         that crash
>         compilation. Is there any flag to ignore this warnings?
>
>
>     You need to edit the makefiles to remove -Werror
>
>     But what warnings did you encounter, on what platform and which gcc
>     version? Note that the official GCC version for JDK 8 is presently
>     still back around 4.3
>
>     When we encounter problems with more recent compiler versions we try
>     to address them but each new release tightens up conformance and so
>     tends to cause more warnings.
>
>     David
>     -----
>
>
>
>         I couldn't find anything about this problem here -
>         http://hg.openjdk.java.net/__jdk8/build/raw-file/tip/__README-builds.html
>         <http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html>
>         Could you help me with that?
>
>         Thanks, Konstantin.
>
>



More information about the build-dev mailing list