Seeking guidance to install OpenJDK on AIX 7.1

Russ Hankey rhankey at us.ibm.com
Mon Dec 7 18:33:09 UTC 2015


Sure thing -- I don't mind having this conversation on the -dev mailing 
list.  Also, I'm trying to get ElasticSearch's LogStash up and running on 
an AIX 7.1 server, and they've recommended installing OpenJDK to run LS 
instead of the IBM JDK.

I'm going to try the daunting task of building JDK 8 on our server -- I'm 
reviewing the documentation, and hopefully following it step by step will 
work well enough on our server.  As you point out, the trouble is running 
around getting all of the dependencies installed.

I did try the older outdated binaries -- but when I attempt to run   java 
-showversion   I get an insufficient memory error (occurring with both v7 
and v8)

# There is insufficient memory for the Java Runtime Environment to 
continue.
# Native memory allocation (malloc) failed to allocate 120 bytes for 
AllocateHeap

svmon shows that we have nearly 14GB of memory available yet, so I don't 
think that's really the issue.

I even tried   bin/java -Xms1024M -Xmx2048M -showversion    but still the 
same error.

I can't help but think maybe I'm missing an environment variable setting, 
or something.




Russ Hankey
ETL/Data Specialist: DataStage and Watson Explorer
Enterprise Services Transformation & Operations

Phone: 720-395-1670 
Mobile: 269-598-9297 
E-mail: rhankey at us.ibm.com 
Location: Portage, MI USA



 
 



From:   Volker Simonis <volker.simonis at gmail.com>
To:     Russ Hankey/Southfield/IBM at IBMUS
Cc:     "ppc-aix-port-dev at openjdk.java.net" 
<ppc-aix-port-dev at openjdk.java.net>
Date:   12/07/2015 01:15 PM
Subject:        Re: Seeking guidance to install OpenJDK on AIX 7.1



First of all I've just realized that you initial message went to 
ppc-aix-port-dev-owner at openjdk.java.net instead of  
ppc-aix-port-dev at openjdk.java.net. I hope you don't mind if we continue 
this thread on the ppc-aix-port-dev mailing list. I think it could be 
interesting for others as well and I don't want to repeat myself too often 
:)

On Mon, Dec 7, 2015 at 6:13 PM, Russ Hankey <rhankey at us.ibm.com> wrote:
Thank you!  That gives me another route to try ... When I went to  
http://cr.openjdk.java.net/~simonis/ppc-aix-port/I saw the two links to 
the bz2 files for 1.7.0 for aix/linux, and 8u40 linux, that's why I chose 
the aix/linux file.  I think it was the "aix" in the filename that threw 
me off!

I didn't scan down two more paragraphs to notice the AIX/PPC64 links you 
sent!  Sorry about that ...

I'm not that familiar with the bootstrap process, but I'll see if I can 
follow along with the instructions posted out there and let you know if I 
run into any additional obstacles.

I found a broken link to the JDK 8 build readme ... 
http://hg.openjdk.java.net/jdk8/build/raw-file/tip/README-builds.html Is 
there a better resource for build instructions?

 
The http://hg.openjdk.java.net/jdk8/build repository doesn't exist any 
more.
 
Is this source of build/readme information more up-to-date and accurate?  
http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html


Yes, that's the general build README for jdk8 (but it doesn't cover AIX). 
There's an updated version for jdk9 at 
http://hg.openjdk.java.net/jdk9/jdk9/raw-file/tip/README-builds.html

The following link:
 
http://hg.openjdk.java.net/ppc-aix-port/jdk7u/raw-file/tip/README-ppc.html
contains some AIX-specific stuff from which for you the build dependencies 
will be the most interesting.

Assuming you've installed all the build dependencies and created a fresh 
output directory outside of the source tree, you should be able to build 
jdk 8 or 9 from within the new output directory with the following two 
commands:

bash <path_to_jdk8_or_9_sources>/configure 
--with-boot-jdk=<path_to_boot_jdk> --with-jvm-variants=server 
--with-cups-include=/opt/freeware/include
make images

If it's not a too big secret, it would be interesting to know what do you 
want to use the OpenJDK for?

Regards,
Volker

Thanks so much!

-Russ




Russ Hankey
ETL/Data Specialist: DataStage and Watson Explorer
Enterprise Services Transformation & Operations

Phone: 720-395-1670 
Mobile: 269-598-9297 
E-mail: rhankey at us.ibm.com
Location: Portage, MI USA



 
  



From:        Volker Simonis <volker.simonis at gmail.com>
To:        Russ Hankey/Southfield/IBM at IBMUS
Cc:        "ppc-aix-port-dev-owner at openjdk.java.net" <
ppc-aix-port-dev-owner at openjdk.java.net>
Date:        12/07/2015 09:10 AM
Subject:        Re: Seeking guidance to install OpenJDK on AIX 7.1




Hi Russ,

first of all, thanks for your interest in our port.

Generally, our project, as all the other OpenJDK project, doesn't
provide binaries. You have to build it yourself. However, to ease the
step of building (and because the IBM J9 JDK didn't qualify as a
drop-in replacement of the bootstrap JDK) we provided two JDK binaries
which could be used to bootstrap the build on AIX. Please notice that
these binaries are old, not very well tested on not supported at all.
Their only purpose is to enable other developers to bootstrap a recent
version of OpenJDK on AIX.

That said, I think you downloaded the wrong version (notice the
"linux" in the file name
"openjdk1.7.0-ppc-aix-port-linux-ppc64-b03.tar.bz2"). The following
two files contain the corresponding bootstrap OpenJDK versions 7 and 8
and they should both run on AIX 7:

http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk1.7.0-ppc-aix-port-aix-ppc64-b03.tar.bz2

http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk_8u40_b13-aix-ppc64.tar.bz2


You can find these links together with the links to our nightly builds at:

http://cr.openjdk.java.net/~simonis/ppc-aix-port/

A terribly outdated build instruction for OpenJDK 7 on AIX can be
found in the Mercurial repository at:

http://hg.openjdk.java.net/ppc-aix-port/jdk7u/raw-file/tip/README-ppc.html

Nowadays, the new, configure-based build system of OpenJDK 8 and 9
should easily guide you trough the build process, although the old
document may still be valuable with respect to the required build
dependencies on AIX.

Should you have any further questions, please don't hesitate to ask.

Regards,
Volker

On Fri, Dec 4, 2015 at 8:41 PM, Russ Hankey <rhankey at us.ibm.com> wrote:
> Hi --
>
> I'm attempting to install OpenJDK on AIX 7.1, and I'm not sure I have 
the
> right starting point.  Is it as straightforward as downloading and
> extracting the port from
> 
http://openjdkpower.osuosl.org/OpenJDK/download/bootstrap/openjdk1.7.0-ppc-aix-port-linux-ppc64-b03.tar.bz2?

>
> I've done that, but the java executable in the resulting directory still
> doesn't seem to want to execute (even as root with appropriate 
permissions).
>
> ksh: bin/java: 0403-006 Execute permission denied.
>
> Any guidance / tips would be greatly appreciated!
>
> Thanks,
>
> -Russ
>
>
> ________________________________
> Russ Hankey
> ETL/Data Specialist: DataStage and Watson Explorer
> Enterprise Services Transformation & Operations
>
> Phone: 720-395-1670
> Mobile: 269-598-9297
> E-mail: rhankey at us.ibm.com
> Location: Portage, MI USA
>
>
>
>






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20151207/3b365788/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 7301 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20151207/3b365788/attachment-0001.gif>


More information about the ppc-aix-port-dev mailing list