I've been having quit a bit of difficulty getting jdk14 built on my new
machine. I think this is a heretofore unreported error.
uname -a output:
FreeBSD new.cognitiongroup.biz 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun
May 8 07:00:26 UTC 2005
[hidden email]:/usr/obj/usr/src/sys/GENERIC amd64
The build crashes when it tries to compile interpreterRT_i486.cpp
because it has some ABSTRACT methods defined. I'm shocked that the
build would break because it generates code that can't be compiled.
But, I suspect it's a setting, configuration file, or something simple
because others seem to be getting their jdk14 compiled fine.
===> Vulnerability check disabled, database not found
LIBC_R TEST PASSED: All Ok
IMPORTANT: To build JDK 1.4.2 port, you should have at least
1.7Gb of free disk space in build area!
IMPORTANT: To build JDK 1.4.2 port, you should have linux emulation
enabled in the kernel and linux procfs (linprocfs) filesystem
Following port compile time options are available:
WITH_DEBUG - install JDK binaries and libraries
with debuging support
MINIMAL - don't build/install mozilla java
plugin, javaws and JDK demos
WITH_IPV6 - enable JDK IPv6 support
===> Extracting for jdk-1.4.2p7
=> Checksum OK for j2sdk-1_4_2-src-scsl.zip.
=> Checksum OK for j2sdk-1_4_2-bin-scsl.zip.
=> Checksum OK for bsd-jdk14-patches-7.tar.gz.
===> jdk-1.4.2p7 depends on executable: zip - found
===> jdk-1.4.2p7 depends on executable: unzip - found
===> Patching for jdk-1.4.2p7
Hmm... Looks like a unified diff to me...
The text leading up to this was:
<snip: patching output>
WARNING: Your build environment has the variable DEV_ONLY
defined. This will result in a development-only
build of the J2SE workspace, lacking the documentation
build and installation bundles.
Sanity check passed.
/bin/mkdir -p ../build/bsd-amd64/hotspot-amd64/tmp
(cd ./../build/bsd-amd64/hotspot-amd64/tmp; \
gmake -f /usr/ports/java/jdk14/work/hotspot/build/bsd/Makefile product \
LP64=1 GAMMADIR=/usr/ports/java/jdk14/work/hotspot ; )
gmake: Entering directory
compiler2 /usr/ports/java/jdk14/work/hotspot bsd i486
(cd bsd_i486_compiler2/product; gmake)
gmake: Entering directory
Removing ../generated/includeDB.current to force regeneration.
cd ../generated; cat
cd ../generated; if [ ! -r incls ] ; then \
mkdir incls ; \
cd ../generated; /usr/local/linux-sun-jdk1.4.2/bin/java -classpath .
MakeDeps diffs UnixPlatform platform.current includeDB.current
-firstFile functionAtStart.cpp -lastFile functionAtEnd.cpp
reading database: includeDB
updating output files
The order of .c or .s has changed, or the grand include file has changed.
writing individual include files
On Fri, 2005-11-04 at 11:40 -0800, Richard Schilling wrote:
> I've been having quit a bit of difficulty getting jdk14 built on my new
> machine. I think this is a heretofore unreported error.
> uname -a output:
> FreeBSD new.cognitiongroup.biz 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun
> May 8 07:00:26 UTC 2005
> [hidden email]:/usr/obj/usr/src/sys/GENERIC amd64
So you have an AMD64 machine.
I do not see how you could possibly build 1.4 on an amd64 machine. It
is marked as i386 only and doesn't work. There is something wrong with
either your setup or your ports collection.
For amd64, you must use java 1.5. This is the only version available
for that platform. I have been using jdk1.5 for a long time now and it
works very well for me.
Also, you should consider moving to 6-current. 5.4 has issues with the
linux emulation that cause building jdk1.5 a bit of a headache. There
are no such issues with 6-current.