Hi all, Yesterday I've undertook bootstrapping of bsd-port on my G5. I was unaware about recent discussion of this topic on this list, so I've used instructions from [1, 2] and Google :)
My build scripts (modified version of scripts from [2]) are attached.
My build command:
JAVA_BOOTHOST=192.168.1.2 JAVA_BOOTDIR=/usr/lib/jvm/java-6-sun/ nice make
ALLOW_DOWNLOADS=true SA_APPLE_BOOT_JAVA=true ALWAYS_PASS_TEST_GAMMA=true
ALT_BOOTDIR=/usr/lib/jvm/java-6-sun HOTSPOT_BUILD_JOBS=1
ANT_HOME=/usr/share/ant
ALT_FREETYPE_HEADERS_PATH=/Volumes/Development/Gentoo/usr/include
ALT_FREETYPE_LIB_PATH=/Volumes/Development/Gentoo/usr/lib
ALT_CUPS_HEADERS_PATH=/usr/include
ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts
LIBFFI_CFLAGS="-I/usr/include/ffi" NO_DOCS=true ZERO_BUILD=true
ZERO_ENDIANNESS=big ZERO_LIBARCH=ppc ZERO_ARCHDEF=PPC ZERO_ARCHFLAG=-m32
JAVA_BOOTHOST=192.168.1.2 JAVA_BOOTDIR=/usr/lib/jvm/java-6-sun/
Default gcc and g++ are set to gcc 4.2 provided by Apple.
Compilation of Zero failed twice. I've applied patches [3] and [4], and it was
compiled.
When everything was build, I've tried to run java -version. It failed:
/build/bsd-ppc/j2sdk-image/bin/java -help
Error occurred during initialization of VM
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:432)
at java.lang.System.initProperties(Native Method)
at java.lang.System.initializeSystemClass(System.java:1115)
Questions:
1) How to find out why initialization failed? If debugging with gdb can help,
how to rebuild only needed module (Zero VM?) with debugging symbols?
2) Do you have any plans to merge fresh Zero? Backporting of [3] and [4] may
not be enoough to make thing working.
[1] http://landonf.bikemonkey.org/code/java
[2] http://freebsd.monkey.org/freebsd-java/200802/msg00002.html
[3] http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/a3142bdb6707
[4] http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/d17bd0b18663
--
Regards,
Konstantin
boot-java2.tar.gz
Description: Binary data
