Re: JDK 8 Build Issue(s)

2018-07-23 Thread Erik Joelsson
When you say "JDK 8", which repository did you clone? The recommendation 
is either of http://hg.openjdk.java.net/jdk8u/jdk8u or 
http://hg.openjdk.java.net/jdk8u/jdk8u-dev. The latter if you intend to 
do development. That's the source that is being updated and maintained 
with security patches. It's also much more likely to be buildable on 
newer versions of Linux.


If you cloned http://hg.openjdk.java.net/jdk8/jdk8, then you got the 
source used to build the very first release of JDK 8 back in 2014. That 
source is very unlikely to be buildable on any modern Linux at this 
point and does not contain any security updates since 2014.


/Erik


On 2018-07-22 08:15, mr rupplin wrote:

Great.  I tried JDK 8 as base and it gave the generic linux error at build.

Thanks.

From: David Buck 
Sent: Sunday, July 22, 2018 7:34 AM
To: mr rupplin
Cc: build-dev@openjdk.java.net
Subject: Re: JDK 8 Build Issue(s)

Hi Max!

Not much to go on here [0]. For what it's worth, I was able to clone
8u-dev and build it on Mint 18.3 Cinnamon (w/ JDK 7u80 as the boot JDK)
without any issues. The Mint VM image I used was new and the only thing
I did before building the JDK was run an apt-get update/upgrade cycle
and apt-get install g++).

I would also point out that Mint is not one of the platforms officialy
supported by Oracle for building JDK 8 [1]. While Mint and other
Ubuntu-based systems tend to work pretty well for building OpenJDK, you
might have an easier time starting off by building on something closer
to what we develop and test on.

Cheers,
-Buck

[0] http://www.catb.org/esr/faqs/smart-questions.html

[1] https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

On 2018/07/22 0:17, mr rupplin wrote:

I get a cannot compile for a "generic linux" when trying to build OpenJDK 8 on 
Mint.

Thanks,

Mr. Rupplin

/sr software dev





Re: JDK 8 Build Issue(s)

2018-07-22 Thread mr rupplin
Alright, good tip there, and thanx!

From: John Paul Adrian Glaubitz 
Sent: Sunday, July 22, 2018 11:20 AM
To: mr rupplin; David Buck
Cc: build-dev@openjdk.java.net
Subject: Re: JDK 8 Build Issue(s)

On 07/22/2018 05:15 PM, mr rupplin wrote:
> Great.  I tried JDK 8 as base and it gave the generic linux error at build.
Whenever you build OpenJDK on any Linux distribution, you have to
install the build dependencies first. The easiest way to achieve
that on Debian or Debian derivatives, is to run the following command:

# apt update && apt build-dep openjdk-8

For OpenJDK 9, 10 and 11, use:

# apt update && apt build-dep openjdk-9
# apt update && apt build-dep openjdk-10
# apt update && apt build-dep openjdk-11

FWIW, OpenJDK 9 has already been dropped from Debian unstable. Don't
know about the various derivatives though.

Don't forget to configure with "--disable-warnings-as-error" and the
proper part to the build JDK

"--with-build-jdk=/usr/lib/jvm/java-8-openjdk-amd64/"

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: JDK 8 Build Issue(s)

2018-07-22 Thread John Paul Adrian Glaubitz
On 07/22/2018 05:15 PM, mr rupplin wrote:
> Great.  I tried JDK 8 as base and it gave the generic linux error at build.
Whenever you build OpenJDK on any Linux distribution, you have to
install the build dependencies first. The easiest way to achieve
that on Debian or Debian derivatives, is to run the following command:

# apt update && apt build-dep openjdk-8

For OpenJDK 9, 10 and 11, use:

# apt update && apt build-dep openjdk-9
# apt update && apt build-dep openjdk-10
# apt update && apt build-dep openjdk-11

FWIW, OpenJDK 9 has already been dropped from Debian unstable. Don't
know about the various derivatives though.

Don't forget to configure with "--disable-warnings-as-error" and the
proper part to the build JDK

"--with-build-jdk=/usr/lib/jvm/java-8-openjdk-amd64/"

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Re: JDK 8 Build Issue(s)

2018-07-22 Thread mr rupplin
Great.  I tried JDK 8 as base and it gave the generic linux error at build.

Thanks.

From: David Buck 
Sent: Sunday, July 22, 2018 7:34 AM
To: mr rupplin
Cc: build-dev@openjdk.java.net
Subject: Re: JDK 8 Build Issue(s)

Hi Max!

Not much to go on here [0]. For what it's worth, I was able to clone
8u-dev and build it on Mint 18.3 Cinnamon (w/ JDK 7u80 as the boot JDK)
without any issues. The Mint VM image I used was new and the only thing
I did before building the JDK was run an apt-get update/upgrade cycle
and apt-get install g++).

I would also point out that Mint is not one of the platforms officialy
supported by Oracle for building JDK 8 [1]. While Mint and other
Ubuntu-based systems tend to work pretty well for building OpenJDK, you
might have an easier time starting off by building on something closer
to what we develop and test on.

Cheers,
-Buck

[0] http://www.catb.org/esr/faqs/smart-questions.html

[1] https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

On 2018/07/22 0:17, mr rupplin wrote:
> I get a cannot compile for a "generic linux" when trying to build OpenJDK 8 
> on Mint.
>
> Thanks,
>
> Mr. Rupplin
>
> /sr software dev
>


Re: JDK 8 Build Issue(s)

2018-07-22 Thread David Buck

Hi Max!

Not much to go on here [0]. For what it's worth, I was able to clone 
8u-dev and build it on Mint 18.3 Cinnamon (w/ JDK 7u80 as the boot JDK) 
without any issues. The Mint VM image I used was new and the only thing 
I did before building the JDK was run an apt-get update/upgrade cycle 
and apt-get install g++).


I would also point out that Mint is not one of the platforms officialy 
supported by Oracle for building JDK 8 [1]. While Mint and other 
Ubuntu-based systems tend to work pretty well for building OpenJDK, you 
might have an easier time starting off by building on something closer 
to what we develop and test on.


Cheers,
-Buck

[0] http://www.catb.org/esr/faqs/smart-questions.html

[1] https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

On 2018/07/22 0:17, mr rupplin wrote:

I get a cannot compile for a "generic linux" when trying to build OpenJDK 8 on 
Mint.

Thanks,

Mr. Rupplin

/sr software dev



JDK 8 Build Issue(s)

2018-07-21 Thread mr rupplin
I get a cannot compile for a "generic linux" when trying to build OpenJDK 8 on 
Mint.

Thanks,

Mr. Rupplin

/sr software dev