jdk15 on 6.0-RELEASE amd64

Ron Dzierwa RonDzierwa at comcast.net
Thu Dec 15 10:53:14 PST 2005


yeah, i eventually got it to work.  my ports directory was trashed, and when i updated it
from ports.tar.gz, i simply untar'ed the new over the old, so the trash still existed.  I needed
to remove the directory and all its contents, then restore the new one.  Next was the build
of the linux environment (linux_base-8).  It doesn't build properly when invoked as a
dependency from the jdk15 build, you have to build it by itself before you start the jdk15
build.  After loading the linux 1.4 package into distfiles, it built successfully, albeit with
lots of warnings.  I didn't get the vm internal error though...

one thing i am still wrestling with is the firefox/mozilla plugin build.  The normal build
didn't create it, i was wondering if you, or anybody else has got it to build.  I went to
work/deploy/make and did a "gmake plugin-all" but it got compile errors.  it looks like
it is not setting up the include directories correctly.  any body have any ideas?

thanks,
ron.


"O. Hartmann" wrote:

> O. Hartmann wrote:
>
> >Ron Dzierwa wrote:
> >
> >
> >
> >>I am trying to install the native jdk15 on a new installation of 6.0-RELEASE-amd64
> >>
> >>i got the three packages:
> >>  jdk-1_5_0-bin-scsl.zip
> >>  jdk-1_5_0-src-scsl.zip
> >>  bsd-jdk15-patches-2.tar.bz2
> >>
> >>put them in distfiles, then did make in /usr/ports/java/jdk15. it runs along for a while, then:
> >>
> >>===>  Applying FreeBSD patches for jdk-1.5.0p2_3
> >>Ignoring previously applied (or reversed) patch.
> >>1 out of 1 hunks ignored--saving rejects to ../../hotspot/src/os/bsd/vm/os_bsd.inline.hpp.rej
> >>=> Patch patch-hotspot-vm-os_bsd.inline.hpp failed to apply cleanly.
> >>=> Patch(es) patch-control::common::Defs-bsd.gmk patch-deploy::common::Defs-bsd.gmk patch-dep
> >>loy::common::DeployRules-solaris.gmk patch-deploy::native::msgString.c patch-deploy::native::
> >>system_md.c patch-deploy::native::system_md.h patch-deploy::ns7-adapter::Makefile applied cle
> >>anly.
> >>*** Error code 1
> >>
> >>Stop in /usr/ports/java/jdk15.
> >>
> >>the contents of ./work/hotspot/src/os/bsd/vm/os_bsd.inline.hpp.rej is:
> >>
> >>***************
> >>*** 29,38 ****
> >>
> >> inline bool os::allocate_stack_guard_pages() {
> >>   assert(uses_stack_guard_pages(), "sanity check");
> >>- // XXXBSD: ??
> >>- //  return thr_main();
> >>- //  return pthread_main_np();
> >>-   return true;
> >> }
> >>
> >>
> >>--- 29,37 ----
> >>
> >> inline bool os::allocate_stack_guard_pages() {
> >>   assert(uses_stack_guard_pages(), "sanity check");
> >>+   // Since FreeBSD 4 uses malloc() for allocating the thread stack
> >>+   // there is no need to do anything extra to allocate the guard pages
> >>+   return false;
> >> }
> >>
> >>
> >>any ideas?
> >>
> >>any help installing any 1.4 or 1.5 (preferably)  jdk would be appreciated.
> >>
> >>thanks,
> >>ron.
> >>
> >>
> >>_______________________________________________
> >>freebsd-amd64 at freebsd.org mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
> >>To unsubscribe, send any mail to "freebsd-amd64-unsubscribe at freebsd.org"
> >>
> >>
> >>
> >>
> >Tried installing JDK15 again. Fresh install of the supported
> >Linux_base-8, the necessary linux-sun-jdk14. Then compiling jdk15, most
> >recent ports tree update (I do this nearly every day or once a week).
> >This is what I receive. The mentioned error file is attached:
> >../../../../../src/share/classes/java/io/ObjectStreamClass.java:1006:
> >warning:
> >non-varargs call of varargs method with inexact argument type for last
> >parameter;
> >cast to java.lang.Object for a varargs call
> >cast to java.lang.Object[] for a non-varargs call and to suppress this
> >warning
> >                return readResolveMethod.invoke(obj, null);
> >                                                     ^
> >#
> ># An unexpected error has been detected by HotSpot Virtual Machine:
> >#
> >#  Internal Error (4E4D4554484F440E435050051B), pid=54296, tid=0x513000
> >#
> ># Java VM: Java HotSpot(TM) 64-Bit Server VM
> >(1.5.0-p2-root_14_dec_2005_18_55
> >mixed mode)
> ># An error report file with more information is saved as hs_err_pid54296.log
> >#
> ># If you would like to submit a bug report, please write
> ># a letter to freebsd-java at FreeBSD.org mailing list
> >#
> >Abort trap
> >gmake[7]: *** [.compile.classlist] Error 134
> >gmake[7]: Leaving directory
> >`/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile/library'
> >gmake[6]: *** [optimized] Error 2
> >gmake[6]: Leaving directory
> >`/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile/library'
> >gmake[5]: *** [all] Error 1
> >gmake[5]: Leaving directory
> >`/usr/ports/java/jdk15/work/j2se/make/sun/javac/recompile'
> >gmake[4]: *** [all] Error 1
> >gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/javac'
> >gmake[3]: *** [all] Error 2
> >gmake[3]: Leaving directory
> >`/usr/ports/java/jdk15/work/j2se/make/java/javac'
> >gmake[2]: *** [all] Error 1
> >gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java'
> >gmake[1]: *** [all] Error 1
> >gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make'
> >gmake: *** [j2se-build] Error 2
> >*** Error code 2
> >
> >Stop in /usr/ports/java/jdk15.
> >
> >
> >
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >#
> ># An unexpected error has been detected by HotSpot Virtual Machine:
> >#
> >#  Internal Error (4E4D4554484F440E435050051B), pid=54296, tid=0x513000
> >#
> ># Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-p2-root_14_dec_2005_18_55 mixed mode)
> >
> >---------------  T H R E A D  ---------------
> >
> >Current thread (0x000000000052f400):  JavaThread "main" [_thread_in_Java, id=5320704]
> >
> >Stack: [0x00007fffffc00000,0x0000800000000000),  sp=0x00007fffffff40c0,  free space=4048k
> >Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
> >V  [libjvm.so+0x79063e]
> >V  [libjvm.so+0x465c56]
> >V  [libjvm.so+0x698eab]
> >V  [libjvm.so+0x70aa78]
> >V  [libjvm.so+0x6ac3e4]
> >V  [libjvm.so+0x6aae1e]
> >
> >
> >---------------  P R O C E S S  ---------------
> >
> >Java Threads: ( => current thread )
> >  0x000000000060d800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=6331392]
> >  0x000000000060bc00 JavaThread "CompilerThread1" daemon [_thread_in_native, id=6330368]
> >  0x000000000060b000 JavaThread "CompilerThread0" daemon [_thread_in_native, id=6329344]
> >  0x00000000005f7400 JavaThread "AdapterThread" daemon [_thread_blocked, id=6229504]
> >  0x00000000005ee800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6228992]
> >  0x00000000005ee000 JavaThread "Finalizer" daemon [_thread_blocked, id=6208512]
> >  0x00000000005adc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=6208000]
> >=>0x000000000052f400 JavaThread "main" [_thread_in_Java, id=5320704]
> >
> >Other Threads:
> >  0x00000000005e1800 VMThread [id=6167040]
> >  0x0000000000532800 WatcherThread [id=6331904]
> >
> >VM state:synchronizing (normal execution)
> >
> >VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
> >[0x000000000052c580/0x000000000052c600] Safepoint_lock - owner thread: 0x00000000005e1800
> >[0x000000000052c700/0x000000000052c780] Threads_lock - owner thread: 0x00000000005e1800
> >
> >Heap
> > def new generation   total 38656K, used 23746K [0x0000000842b00000, 0x00000008454f0000, 0x0000000848050000)
> >  eden space 34368K,  61% used [0x0000000842b00000, 0x0000000843f9ff68, 0x0000000844c90000)
> >  from space 4288K,  61% used [0x00000008450c0000, 0x0000000845350a40, 0x00000008454f0000)
> >  to   space 4288K,   0% used [0x0000000844c90000, 0x0000000844c90000, 0x00000008450c0000)
> > tenured generation   total 85876K, used 66357K [0x0000000848050000, 0x000000084d42d000, 0x0000000852b00000)
> >   the space 85876K,  77% used [0x0000000848050000, 0x000000084c11d6b0, 0x000000084c11d800, 0x000000084d42d000)
> > compacting perm gen  total 21248K, used 5080K [0x0000000852b00000, 0x0000000853fc0000, 0x0000000857d00000)
> >   the space 21248K,  23% used [0x0000000852b00000, 0x0000000852ff6018, 0x0000000852ff6200, 0x0000000853fc0000)
> >No shared spaces configured.
> >
> >Dynamic libraries:
> >0x0000000000400000     /usr/ports/java/jdk15/work/control/build/bsd-amd64/bin/javac
> >0x0000000800639000     /usr/lib/libthr.so.2
> >0x0000000800750000     /lib/libc.so.6
> >0x000000080094d000     /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server/libjvm.so
> >0x0000000801386000     /usr/lib/libstdc++.so.5
> >0x000000080157d000     /lib/libm.so.4
> >0x0000000801699000     /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/native_threads/libhpi.so
> >0x00000008017a5000     /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/libverify.so
> >0x00000008018b4000     /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/libjava.so
> >0x00000008019dc000     /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/libzip.so
> >0x000000080050f000     /libexec/ld-elf.so.1
> >
> >VM Arguments:
> >jvm_args: -Denv.class.path= -Dapplication.home=/usr/ports/java/jdk15/work/control/build/bsd-amd64 -Xms8m -Xss4m -ea:com.sun.tools... -XX:ThreadStackSize=1536 -Xms64m -Xmx256m
> >java_command: com.sun.tools.javac.Main -classpath /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/java/java.lang/library/newclasses:../../../../../src/share/classes -bootclasspath /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/jce.jar:/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/jsse.jar -sourcepath /usr/ports/java/jdk15/work/control/build/bsd-amd64/gensrc:../../../../../src/solaris/classes:../../../../../src/share/classes -d /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/java/java.lang/library/newclasses -encoding ascii -source 1.5 ../../../../../src/share/classes/java/lang/Object.java ../../../../../src/share/classes/java/lang/Class.java ../../../../../src/share/classes/java/lang/Thread.java ../../../../../src/share/classes/java/lang/Character.java ../../../../../src/share/classes/sun/misc/ASCIICaseInsensitiveComparator.java ../../../../../src/share/classes/sun/misc/VM.java ../../../../../src/share/classes/sun/misc/Signal.java
> ../../../../../src/share/classes/sun/misc/NativeSignalHandler.java ../../../../../src/share/classes/java/lang/ThreadGroup.java ../../../../../src/share/classes/java/lang/ThreadLocal.java ../../../../../src/share/classes/java/lang/InheritableThreadLocal.java ../../../../../src/share/classes/java/lang/String.java ../../../../../src/share/classes/java/lang/ConditionalSpecialCasing.java ../../../../../src/share/classes/java/lang/StringCoding.java ../../../../../src/share/classes/java/lang/StringBuffer.java ../../../../../src/share/classes/java/lang/StringBuilder.java ../../../../../src/share/classes/java/lang/SuppressWarnings.java ../../../../../src/share/classes/java/lang/AbstractStringBuilder.java ../../../../../src/share/classes/java/lang/ClassLoader.java ../../../../../src/share/classes/java/lang/AssertionStatusDirectives.java ../../../../../src/share/classes/java/lang/Enum.java ../../../../../src/share/classes/java/lang/StrictMath.java
> ../../../../../src/share/classes/java/lang/Math.java ../../../../../src
> >
> >Environment Variables:
> >JAVA_HOME=
> >CLASSPATH=
> >PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/local/samba/bin:/usr/local/mysql/bin:/root/bin:/usr/local/scripts/admin:/usr/local/scripts/public:usr/local/gmt/bin
> >LD_LIBRARY_PATH=/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server:/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64:/usr/ports/java/jdk15/work/control/build/bsd-amd64/../lib/amd64:
> >SHELL=/bin/sh
> >HOSTTYPE=FreeBSD
> >OSTYPE=FreeBSD
> >ARCH=amd64
> >MACHTYPE=unknown
> >
> >
> >---------------  S Y S T E M  ---------------
> >
> >OS:FreeBSD
> >uname:FreeBSD 6.0-STABLE FreeBSD 6.0-STABLE #158: Mon Dec 12 22:29:27 CET 2005     root at thor.schanze.de:/usr/obj/usr/src/sys/THOR amd64
> >rlimit: STACK 524288k, CORE infinity, NOFILE 11095
> >CPU:total 1
> >
> >Memory: 4k page, physical 262144k
> >
> >vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0-p2-root_14_dec_2005_18_55) for freebsd-amd64, built on Dec 14 2005 19:38:30 by root with gcc 3.4.4 [FreeBSD] 20050518
> >
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >freebsd-amd64 at freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
> >To unsubscribe, send any mail to "freebsd-amd64-unsubscribe at freebsd.org"
> >
> >
>
> Forgot to say I'm using FreeBSD 6.0-STABLE as most recent cvsupdated and
> compiled.



More information about the freebsd-amd64 mailing list