Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Nov 2005 11:40:46 -0800
From:      Richard Schilling <rschi@rsmba.biz>
To:        freebsd-java@freebsd.org
Subject:   new error building jdk14 
Message-ID:  <436BB93E.5000700@rsmba.biz>

next in thread | raw e-mail | index | archive | help
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 
root@portnoy.cse.buffalo.edu:/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.

Here's the abridged build output:

==============================================================

===>  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
mounted.

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 \
         HOTSPOT_BUILD_VERSION=1.4.2-p7-rschilling_04_nov_2005_11_18 
LP64=1 GAMMADIR=/usr/ports/java/jdk14/work/hotspot ; )
gmake[1]: Entering directory 
`/usr/ports/java/jdk14/work/control/build/bsd-amd64/hotspot-amd64/tmp'
sh /usr/ports/java/jdk14/work/hotspot/build/bsd/makefiles/buildATree.sh 
compiler2 /usr/ports/java/jdk14/work/hotspot bsd i486
(cd bsd_i486_compiler2/product; gmake)
gmake[2]: Entering directory 
`/usr/ports/java/jdk14/work/control/build/bsd-amd64/hotspot-amd64/tmp/bsd_i486_compiler2/product'
Removing ../generated/includeDB.current to force regeneration.
cd ../generated;   cat 
/usr/ports/java/jdk14/work/hotspot/src/share/vm/includeDB_core 
/usr/ports/java/jdk14/work/hotspot/src/share/vm/includeDB_gc 
/usr/ports/java/jdk14/work/hotspot/src/share/vm/gc_implementation/includeDB_gc_parallelScavenge 
/usr/ports/java/jdk14/work/hotspot/src/share/vm/gc_implementation/includeDB_gc_shared 
   /usr/ports/java/jdk14/work/hotspot/src/share/vm/includeDB_ci 
/usr/ports/java/jdk14/work/hotspot/src/share/vm/includeDB_compiler2 > 
includeDB
cd ../generated;  if [ ! -r incls ] ; then \
mkdir incls ; \
fi
cd ../generated;   /usr/local/linux-sun-jdk1.4.2/bin/java -classpath . 
MakeDeps diffs UnixPlatform platform.current includeDB.current 
/usr/ports/java/jdk14/work/hotspot/build/bsd/platform_i486 includeDB 
-firstFile functionAtStart.cpp -lastFile functionAtEnd.cpp
Old database:
         computing closures

New database:
         reading database: includeDB
         computing closures

Deltas:
         updating output files

The order of .c or .s has changed, or the grand include file has changed.
         writing individual include files

         creating functionAtStart.cpp
         creating accessFlags.cpp
         creating allocation.cpp
         creating aprofiler.cpp
         creating arguments.cpp

<snip: some output deleted due to length>

         creating functionAtEnd.cpp
         writing grand include file

         writing dependencies file

cd ../generated;   cp includeDB    includeDB.current
cd ../generated;   cp 
/usr/ports/java/jdk14/work/hotspot/build/bsd/platform_i486 platform.current
gmake[3]: Entering directory 
`/usr/ports/java/jdk14/work/control/build/bsd-amd64/hotspot-amd64/tmp/bsd_i486_compiler2/product'


<snip: more build output omitted, the error is next>

Compiling 
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interp_masm_i486.cpp
Compiling 
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp: 
In static member function `static void 
SignatureHandlerLibrary::add(methodHandle)':
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp:83: 
error: cannot allocate an object of type 
`InterpreterRuntime::SignatureHandlerGenerator'
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp:83: 
error:   because the following virtual functions are abstract:
/usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/signature.hpp:283: 
error:  virtual void NativeSignatureIterator::pass_float()
/usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/signature.hpp:284: 
error:  virtual void NativeSignatureIterator::pass_double()
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp: 
In static member function `static u_char* 
InterpreterRuntime::slow_signature_handler(JavaThread*, methodOopDesc*, 
jint*, jint*)':
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp:156: 
error: cannot allocate an object of type `SlowSignatureHandler'
/usr/ports/java/jdk14/work/hotspot/src/cpu/i486/vm/interpreterRT_i486.cpp:156: 
error:   because the
following virtual functions are abstract:
/usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/signature.hpp:283: 
error:  virtual void NativeSignatureIterator::pass_float()
/usr/ports/java/jdk14/work/hotspot/src/share/vm/runtime/signature.hpp:284: 
error:  virtual void NativeSignatureIterator::pass_double()
gmake[3]: *** [interpreterRT_i486.o] Error 1
gmake[3]: Leaving directory 
`/usr/ports/java/jdk14/work/control/build/bsd-amd64/hotspot-amd64/tmp/bsd_i486_compiler2/product'
gmake[2]: *** [the_vm] Error 2
gmake[2]: Leaving directory 
`/usr/ports/java/jdk14/work/control/build/bsd-amd64/hotspot-amd64/tmp/bsd_i486_compiler2/product'
gmake[1]: *** [product] Error 2
gmake[1]: Leaving directory 
`/usr/ports/java/jdk14/work/control/build/bsd-amd64/hotspot-amd64/tmp'
gmake: *** [product] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk14.


==============================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?436BB93E.5000700>