Build OpenJDK6 on a x86_64 kernel with x86 user space on Fedora 16 with linux kernel 3.3:

  1. run ./get_sources.sh
  2. export LANG=C ALT_BOOTDIR=/usr/lib/jvm/java-openjdk/
  3. export ALT_JAXP_DIST=/home/user/source/jaxp-1_4_6/
  4. export ALT_JAXWS_DIST=/home/user/source/jaxws-ri/
  5. make DISABLE_HOTSPOT_OS_VERSION_CHECK=ok ARCH_DATA_MODEL=32
  • DISABLE_HOTSPOT_OS_VERSION_CHECK=ok – is needed because of the version check of the OS in jdk6/hotspot/make/linux/Makefile
  • ARCH_DATA_MODEL=32 – to build the 32 bit version

[UPDATE] Build fails with:

hotspot/src/os_cpu/linux_x86/vm/orderAccess_linux_x86.inline.hpp:160: Error: bad register name `%bpl