Problems with JDK8 build on Ubuntu?

dalibor topic dalibor.topic at oracle.com
Thu Nov 23 11:38:00 UTC 2017


See https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

Other JDK 8 build platforms

Linux x86 and x86_64	(green star)	Ubuntu 14.04	gcc 4.8.2	Works flawlessly
  	(green star)	Ubuntu 13.10	gcc 4.8.1	Works flawlessly


Ubuntu Server seems to be 16.04 or 17.10, so you may need to play with 
g++ flags to not error out on warnings, in case that g++ on the system 
is too ... fresh. It should build fine with gcc 6 based systems, too, 
while you may need to disable warnings as errors with gcc 7.

cheers,
dalibor topic

On 23.11.2017 12:19, Ted Neward wrote:
> Oh, one other more general question: Has anybody built OpenJDK successfully using Ubuntu Server? (I just need a quick build VM, I don’t necessarily need all the GUI bells and whistles, in many/most cases.)
> 
> I know AdoptOpenJDK has a Docker image, too, but I’m not sure how to use it and sort of gave up fairly quickly when it wasn’t brutally obvious. (I can’t tell if the Docker image there includes the source or not, and/or if the source would need to be mounted in a separate volume, and how then it would be updated when new changes are made, etc.) I should probably figure all that out, but I was trying to go with the least-amount-of-work path to get to a slowdebug version of the OpenJDK that I could use for some diagnostic purposes for digging into the G1 GC.
> 
> Ted Neward
> Author, Speaker, Mentor
> http://www.newardassociates.com
> t: @tedneward | m: (425) 647-4526
> 
> On 11/23/17, 3:14 AM, "dalibor topic" <dalibor.topic at oracle.com> wrote:
> 
>      Probably - jdk8/jdk8 is the GA source code from a few years ago.
>      jdk8u/jdk8u is the latest JDK 8 updates.
>      
>      cheers,
>      dalibor topic
>      
>      On 23.11.2017 12:12, Ted Neward wrote:
>      > Errr….. What’s the difference, again?
>      >
>      > I cloned java.net/jdk8/jdk8, which is what I thought was the correct repo—is there a new URL? I haven’t done this in a while, so I jumped onto Google and took the first URL in a description that seemed correct. Am I trying to clone the wrong repo?
>      >
>      > Ted Neward
>      > Author, Speaker, Mentor
>      > http://www.newardassociates.com
>      > t: @tedneward | m: (425) 647-4526
>      >
>      > On 11/23/17, 3:08 AM, "build-dev on behalf of dalibor topic" <build-dev-bounces at openjdk.java.net on behalf of dalibor.topic at oracle.com> wrote:
>      >
>      >      You're not trying to build jdk8/jdk8 instead of jdk8u/jdk8u, right?
>      >
>      >      cheers,
>      >      dalibor topic
>      >
>      >      On 23.11.2017 11:50, Ted Neward wrote:
>      >      > Yeah, I’ve got build-dep and openjdk-8. I’ll have a look at the source, but this begs a question: Why hasn’t it been backported to the JDK8 repo, if it’s a known fix?
>      >      >
>      >      > Ted Neward
>      >      > Author, Speaker, Mentor
>      >      > http://www.newardassociates.com
>      >      > t: @tedneward | m: (425) 647-4526
>      >      >
>      >      > On 11/23/17, 2:32 AM, "John Paul Adrian Glaubitz" <glaubitz at physik.fu-berlin.de> wrote:
>      >      >
>      >      >      Hi Ted!
>      >      >
>      >      >      On 11/23/2017 11:23 AM, Ted Neward wrote:
>      >      >      > When I run it, there’s a problem about OS version detection, which I found a fix
>      >      >      > for, but then it appears that there’s some kind of syntax error in a generate makefile.
>      >      >      > Before I attach a ridiculously long logfile, does anybody have a quick fix or know where
>      >      >      > I should go to get the fix?
>      >      >
>      >      >      I suggest having a look at the Debian packaging source for the openjdk-8 package
>      >      >      which is also used in Ubuntu (the maintainer is Matthias Klose in both cases) [1].
>      >      >
>      >      >      Have a look at the patches in debian/patches as well as the build script in debian/
>      >      >      rules. This should give you the right idea on what is necessary to OpenJDK 8 build
>      >      >      on Ubuntu.
>      >      >
>      >      >      Please also make sure you have the necessary build dependencies installed:
>      >      >
>      >      >      # apt build-dep openjdk-8
>      >      >
>      >      >      Adrian
>      >      >
>      >      >      > [1] http://bazaar.launchpad.net/~openjdk/openjdk/openjdk8/files
>      >      >
>      >      >      --
>      >      >        .''`.  John Paul Adrian Glaubitz
>      >      >      : :' :  Debian Developer - glaubitz at debian.org
>      >      >      `. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
>      >      >         `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>      >      >
>      >      >
>      >      >
>      >
>      >      --
>      >      <http://www.oracle.com> Dalibor Topic | Principal Product Manager
>      >      Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961
>      >      <tel:+491737185961>
>      >
>      >      ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg
>      >
>      >      ORACLE Deutschland B.V. & Co. KG
>      >      Hauptverwaltung: Riesstr. 25, D-80992 München
>      >      Registergericht: Amtsgericht München, HRA 95603
>      >
>      >      Komplementärin: ORACLE Deutschland Verwaltung B.V.
>      >      Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
>      >      Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
>      >      Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
>      >
>      >      <http://www.oracle.com/commitment> Oracle is committed to developing
>      >      practices and products that help protect the environment
>      >
>      >
>      >
>      
>      --
>      <http://www.oracle.com> Dalibor Topic | Principal Product Manager
>      Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961
>      <tel:+491737185961>
>      
>      ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg
>      
>      ORACLE Deutschland B.V. & Co. KG
>      Hauptverwaltung: Riesstr. 25, D-80992 München
>      Registergericht: Amtsgericht München, HRA 95603
>      
>      Komplementärin: ORACLE Deutschland Verwaltung B.V.
>      Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
>      Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
>      Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
>      
>      <http://www.oracle.com/commitment> Oracle is committed to developing
>      practices and products that help protect the environment
>      
> 
> 

-- 
<http://www.oracle.com> Dalibor Topic | Principal Product Manager
Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961
<tel:+491737185961>

ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher

<http://www.oracle.com/commitment> Oracle is committed to developing
practices and products that help protect the environment



More information about the build-dev mailing list