JDK8 build on AIX - status?

Steve Poole spoole at linux.vnet.ibm.com
Tue May 7 00:40:27 PDT 2013


On 6 May 2013, at 18:16, Volker Simonis <volker.simonis at gmail.com> wrote:

> Hi,
> 
> I've started today to have a look at the new, configure based JDK8 build on AIX.
> 
> On AIX 7.1 with XLC 12 and  the same set-up as described in our README-ppc.html for JDK7 (plus the additional installation of 'mktemp' from http://www.lunch.org.uk/aix/rpms/mktemp-1.5-1.aix5.2.ppc.rpm) I could successfully configure the build with the following command line:
> 
> bash /usr/work/d046063/OpenJDK/ppc-aix-port/jdk8/configure --with-boot-jdk=/usr/work/openjdk/nb/rs6000_64/last_known_good/output-jdk7u/j2sdk-image --with-jvm-variants=server --with-jvm-interpreter=cpp --with-debug-level=slowdebug --with-extra-cflags=-q64 --with-extra-cxxflags=-q64 CFLAGS=-q64 CXXFLAGS=-q64 --with-cups-include=/opt/freeware/include
> 
That doesn't work for me  fails with:

checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./common/autoconf/build-aux/config.sub   failed


I will try a completely new clone and build...


> The build runs successfully until it reaches the JDK part where it stops because of incorrect compiler settings. With the following little patch I get further until the compilation of 'genSocketOptionRegistry.c':
> 
> diff -r e199be36af79 common/autoconf/toolchain.m4
> --- a/common/autoconf/toolchain.m4      Thu May 02 16:22:31 2013 +0100
> +++ b/common/autoconf/toolchain.m4      Mon May 06 19:09:16 2013 +0200
> @@ -569,6 +569,29 @@
>          POST_STRIP_CMD="$STRIP -x"
>          POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
>      fi
> +    if test "x$OPENJDK_TARGET_OS" = xaix; then
> +        COMPILER_NAME=xlc
> +        PICFLAG="-qpic=large"
> +        LIBRARY_PREFIX=lib
> +        SHARED_LIBRARY='lib[$]1.so'
> +        STATIC_LIBRARY='lib[$]1.a'
> +        SHARED_LIBRARY_FLAGS="-qmkshrobj"
> +        SHARED_LIBRARY_SUFFIX='.so'
> +        STATIC_LIBRARY_SUFFIX='.a'
> +        OBJ_SUFFIX='.o'
> +        EXE_SUFFIX=''
> +        SET_SHARED_LIBRARY_NAME=''
> +        SET_SHARED_LIBRARY_MAPFILE=''
> +       C_FLAG_REORDER=''
> +       CXX_FLAG_REORDER=''
> +        SET_SHARED_LIBRARY_ORIGIN=''
> +        SET_EXECUTABLE_ORIGIN=""
> +        CFLAGS_JDK=""
> +        CXXFLAGS_JDK=""
> +        CFLAGS_JDKLIB_EXTRA=''
> +        POST_STRIP_CMD="$STRIP -x"
> +        POST_MCS_CMD=""
> +    fi
> 
> The next task would now be to integrate all the needed compiler flags for xlc into 'toolchain.m4'.
> 
> Did you already start this task and if yes, how far have you reached with the build.

Yes - we did do the basics  (including teaching toolschain about xlc )

http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/2013-February/000322.html

The codebase has moved on a little since then so we have a couple more changes to come for src/solaris/native/common/jdk_util_md.h and src/solaris/native/java/io/io_util_md.c b/src/solaris/native/java/io/io_util_md.c 

Let me make sure I can reproduce your situation and then lets talk about the next changes required..



> If you have any build related changes, could you please share them on the list in a timely manner to avoid doubling the work and to possibly discuss them before submission.
> 
> Thank you and best regards,
> Volker
> 



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