Trouble Installing JKD15 On A Vanilla 8.0 Installation
Tom Purl
tom at tompurl.com
Fri Mar 19 14:44:33 UTC 2010
I wanted to create a small test system that could host SSH, Apache,
and Jboss, so I decided to install the 8.0 version of FreeBSD on
Virtualbox. Everything had gone very well until I tried to install the
jdk15 port. Please note that I am very comfortable with Linux (I've
been using it at home for 9 years), but I'm very new to the world of
FreeBSD.
First, after the port had compiled on my system for many hours, it
crashed with an error message stating that I was "out of swap space". I
had only devoted 128 MB of RAM to the VM at this point (I planned to
increase it later), so I doubled that to 256 MB and re-ran "make install
clean". After doing that, I got the following error message:
===> Building for jdk-1.5.0.16p9_3,1
# Start of jdk build
bsd i586 1.5.0_16-p9 build started: 10-03-19 03:37
if [ -r ./../../deploy/make/Makefile ]; then \
( cd ./../../deploy/make; gmake sanity
EXTERNALSANITYCONTROL=true
CONTROL_TOPDIR=/usr/ports/java/jdk15/work/control
CONTROL_TOPDIR_NAME=control
ALT_OUTPUTDIR=/usr/ports/java/jdk15/work/control/build/bsd-i586
ARCH_DATA_MODEL=32 MILESTONE=p9 BUILD_NUMBER=root_19_mar_2010_03_37
JDK_BUILD_NUMBER=b00 ; ); \
fi
gmake[1]: Entering directory `/usr/ports/java/jdk15/work/deploy/make'
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make'
gmake[1]: Entering directory `/usr/ports/java/jdk15/work/j2se/make'
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make'
if [ -r ./../../install/make/Makefile ]; then \
( cd ./../../install/make; gmake sanity MAKEFLAGS=
EXTERNALSANITYCONTROL=true
ALT_CONTROL_TOPDIR=/usr/ports/java/jdk15/work/control
ALT_J2SE_TOPDIR=/usr/ports/java/jdk15/work/j2se
ALT_OUTPUTDIR=/usr/ports/java/jdk15/work/control/build/bsd-i586
ALT_RTPATCH_DIR= ALT_BASE_IMAGE_ZIP= ALT_BASE_IMAGE_DIR=
ALT_NEW_IMAGE_DIR= ALT_BUNDLE_DATE=19_mar_2010 ; ); \
fi
gmake[1]: Entering directory `/usr/ports/java/jdk15/work/install/make'
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/install/make'
Build Machine Information:
build machine =
Build Directory Structure:
CWD = /usr/ports/java/jdk15/work/control/make
TOPDIR = ./../..
CONTROL_TOPDIR = ./../../control
HOTSPOT_TOPDIR = ./../../hotspot
J2SE_TOPDIR = ./../../j2se
DEPLOY_TOPDIR = ./../../deploy
INSTALL_TOPDIR = ./../../install
SPONSORS_TOPDIR = ./../../sponsors
Build Directives:
BUILD_HOTSPOT = true
BUILD_MOTIF = false
BUILD_INSTALL = true
BUILD_SPONSORS = false
Hotspot Settings:
HOTSPOT_BUILD_JOBS =
Bootstrap Settings:
JAVAWS_BOOTDIR = /usr/ports/java/jdk15/work/control/build/bsd-i586
BOOTSTRAP J2SDK VERSION:
OUTPUTDIR = /usr/ports/java/jdk15/work/control/build/bsd-i586
Build Tool Settings:
JDK_DEVTOOLS_DIR =
UNIXCOMMAND_PATH = /bin/
COMPILER_PATH = /usr/bin/
DEVTOOLS_PATH = /usr/local/bin/
USRBIN_PATH = /usr/bin/
MOZILLA_HEADERS_PATH = ../src/plugin/include
CC_VER = 4.2.1
PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
Build Directives:
PEDANTIC =
INSANE =
Build Platform Settings:
PLATFORM = bsd
ARCH = i586
LIBARCH = i386
ARCH_FAMILY = i586
ARCH_DATA_MODEL = 32
OS_VERSION = 8.0-RELEASE
FREE_SPACE = 4337918
GNU Make Settings:
MAKE = gmake
MAKE VERSION =
MAKECMDGOALS = sanity
MAKEFLAGS = w -- JDK_BUILD_NUMBER=b00
BUILD_NUMBER=root_19_mar_2010_03_37 MILESTONE=p9 ARCH_DATA_MODEL=32
ALT_OUTPUTDIR=/usr/ports/java/jdk15/work/control/build/bsd-i586
CONTROL_TOPDIR_NAME=control
CONTROL_TOPDIR=/usr/ports/java/jdk15/work/control
EXTERNALSANITYCONTROL=true
SHELL = /bin/sh
Target Build Versions:
JAVAWS_VERSION = 1.5.0_16
MILESTONE = p9
BUILD_NUMBER = root_19_mar_2010_03_37
Bootstrap Settings:
BOOTDIR = /usr/local/diablo-jdk1.6.0
BOOTSTRAP J2SDK VERSION: 1.6.0_07
OUTPUTDIR = /usr/ports/java/jdk15/work/control/build/bsd-i586
Build Tool Settings:
JDK_DEVTOOLS_DIR =
UNIXCOMMAND_PATH = /bin/
COMPILER_PATH = /usr/bin/
DEVTOOLS_PATH = /usr/local/bin/
USRBIN_PATH = /usr/bin/
MOTIF_DIR = /usr/local
CC_VER = 4.2.1
ZIP_VER = 3.0
PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
TMPDIR = /usr/ports/java/jdk15/work/control/build/bsd-i586/tmp
Build Directives:
USE_ONLY_BOOTDIR_TOOLS =
USE_HOTSPOT_INTERPRETER_MODE =
PEDANTIC =
DEV_ONLY =
J2RE_ONLY =
NO_DOCS =
NO_IMAGES =
TOOLS_ONLY =
INSANE =
PARALLEL_COMPILES = false
PARALLEL_COMPILE_JOBS = 2
FASTDEBUG = false
INCREMENTAL_BUILD = false
Build Platform Settings:
PLATFORM = bsd
ARCH = i586
LIBARCH = i386
ARCH_FAMILY = i586
ARCH_DATA_MODEL = 32
TRUE_PLATFORM = FreeBSD
OS_VERSION = 8.0-RELEASE
FREE_SPACE = 4337918
GNU Make Settings:
MAKE = gmake
MAKE VERSION =
MAKECMDGOALS = sanity
MAKEFLAGS =
SHELL = /bin/sh
Target Build Versions:
JDK_VERSION = 1.5.0_16
MILESTONE = p9
BUILD_NUMBER = root_19_mar_2010_03_37
External File/Binary Locations:
HOTSPOT_SERVER_PATH =
/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/server
HOTSPOT_CLIENT_PATH =
/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/client
HOTSPOT_IMPORT_PATH =
/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/import
MOTIF_DIR = /usr/local
CACERTS_FILE = ./../src/share/lib/security/cacerts
No setting required for Unix Systems
WARNING: Your are not building SPONSORS workspace from
the control build. This will result in a development-only
build of the J2SE workspace, lacking the installation bundles
WARNING: Your FreeBSD installation is not valid for building a
the J2SDK. You must be using FreeBSD 4.1[01]|5.[345]|6.*.
Your release is 8.0-RELEASE
WARNING: The zip file version must be 2.[23456789].
You are using the following zip file version: 3.0
The zip file was obtained from the following location:
/usr/local/bin/zip
Please change your zip file.
Sanity check passed.
(cd ./../build/bsd-i586/hotspot-i586/tmp; \
gmake -f /usr/ports/java/jdk15/work/hotspot/build/bsd/Makefile product \
HOTSPOT_BUILD_VERSION=1.5.0_16-p9-root_19_mar_2010_03_37
GAMMADIR=/usr/ports/java/jdk15/work/hotspot ; )
gmake[1]: Entering directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp'
if [ `/usr/local/diablo-jdk1.6.0/bin/java -fullversion 2>&1 | grep
-c '1\.[4567]'` -eq 0 ] ; then \
/usr/local/diablo-jdk1.6.0/bin/java -version; \
echo "*** An XSLT processor (J2SE 1.4.x or newer) is required
to bootstrap this build"; \
exit 1; \
fi
sh /usr/ports/java/jdk15/work/hotspot/build/bsd/makefiles/buildATree.sh
compiler2 /usr/ports/java/jdk15/work/hotspot bsd i486
(cd bsd_i486_compiler2/product; gmake)
gmake[2]: Entering directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[3]: Entering directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
Rescanned ../generated/adfiles/bsd_i486.ad but encountered no changes.
gmake[3]: Leaving directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[3]: Entering directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[3]: Entering directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
if [ -d /usr/ports/java/jdk15/work/hotspot/agent -a "i486" !=
"ia64" ] ; then \
gmake -f sa.make ../generated/sa-jdi.jar; \
fi
gmake[3]: Leaving directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[3]: Entering directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
Linking launcher...
gmake[3]: Leaving directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[2]: Leaving directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'
gmake[1]: Leaving directory
`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp'
*** Error code 2
Stop in /usr/ports/java/jdk15.
*** Error code 1
Stop in /usr/ports/java/jdk15.
It appears that the Diablo version of Java 6 (which appears to be a
dependency for Java 5?) was install properly:
frisbee# which java
/usr/local/bin/java
frisbee# java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
So finally, here are my questions:
1. Is Java 5 not supported on version 8 of FreeBSD? I found the
following tip that apparently eliminates this error, but it really seems
to be a hack to me. Is there a better way?
* http://lists.freebsd.org/pipermail/freebsd-ports/2008-July/049686.html
2. I think there's a possibility that this error is due to the earlier
segfault of the package manager. Would it therefore make sense to
re-install it using the "make deinstall && make install clean" command?
Thanks in advance!
Tom Purl
More information about the freebsd-questions
mailing list