JDK8 build on AIX - status?
Volker Simonis
volker.simonis at gmail.com
Mon May 6 10:16:12 PDT 2013
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
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20130506/dc1d657e/attachment.html
More information about the ppc-aix-port-dev
mailing list