Coming soon: JDK 9 Platform/Compiler upgrades at Oracle
Erik Joelsson
erik.joelsson at oracle.com
Tue Jun 10 07:29:24 UTC 2014
On 2014-06-10 00:27, Martin Buchholz wrote:
> AFAIK there is no way to build with a newer compiler and remain
> compatible with older runtimes.
>
> Are you actually using gcc 4.8 built in some magic backward-compatible
> way or are you using an older gcc?
> If you have magic spells, please share.
>
It depends on what you mean by "runtime". It's true that the version of
libstdc++ a binary requires depends only on the version of GCC used to
compile it. When building OracleJDK, Hotspot is already statically
linking libstdc++ to avoid these kinds of problems. For glibc, it's like
David Holmes says, we only provide an old glibc so the compiler and
linker accepts it. No magic unfortunately.
/Erik
>
> On Mon, Jun 9, 2014 at 1:37 AM, Erik Joelsson
> <erik.joelsson at oracle.com <mailto:erik.joelsson at oracle.com>> wrote:
>
>
> On 2014-06-07 21:26, Florian Weimer wrote:
>
> On 06/05/2014 11:46 PM, Tim Bell wrote:
>
> - Linux - Oracle Linux 6.4 64-bit / GCC 4.8.2
>
>
> Are you sure the GCC version is correct?
>
> Yes, we are not using the GCC bundled with the Linux distribution,
> but have instead opted to create our own compiler package from
> source. The compiler packages are actually based on Oracle Linux 5
> so that the built JDK bits will be compatible with older Linux
> versions without forcing us to run the builds on older OS
> versions. The scripts used to generate these packages can be found
> in make/devkit/ in the root repo.
>
> /Erik
>
>
More information about the jdk9-dev
mailing list