Hi, I have jdk15 running on NetBSD/amd64 4.0. I used a jdk15 running on NetBSD/i386 4.0 to bootstrap the amd64 version, using the method in the attached message (yes, it's somewhat cumbersome, but got me there on 4.0, at least). I've not attempted this procedure with -current NetBSD/amd64. Best regards, - Håvard
--- Begin Message ---
- To: landonf%bikemonkey.org@localhost
- Subject: Re: Sparc64
- From: Havard Eidnes <he%uninett.no@localhost>
- Date: Fri, 01 Feb 2008 15:20:54 +0100 (CET)
> What's the status of svr4 emulation on sparc64? I forgot a critical > piece; One needs a bootstrap JVM, and bootstrapping off of Sun's VM > would make things easier. One can use a bootstrap JVM from another host (and architecture) and some scripts which use ssh to the bootstrap host and sharing files via NFS -- that's how I bootstrapped the NetBSD/amd64 version using the NetBSD/i386 version. I've attached my notes and the scripts I used to do this. (Admittedly, I've since tweaked the scripts to use environment variables, so they've not been tested in their present form...) Best regards, - HåvardMy notes for using a JVM on NetBSD/i386 to bootstrap JVM on NetBSD/amd64: I used a set of script wrappers which ssh to another machine (in my case running NetBSD/i386, with its native java installed) which has the same directory tree available via NFS as on the target (amd64) machine, using the exact same paths. Substitute scripts were made for java, javac, javah, and jar, and the ALT_BOOTDIR was pointed to the directory tree containing those scripts. Some peculiarities were discovered: o java needs to be able to read from stdin. This means you can't use "ssh -n", which again means that the build job has to run in the foreground with access to the tty (yuk...). o javah gets at least once passed a class name with a $ in it. This causes issues because we get a double shell interpretation which leads to variable expansion; once on the local machine, once on the remote. To work around that problem I borrowed the "shquote" shell function from pkgsrc and tweaked the argument list using it (it's included). o the jar script sleeps 10 seconds because otherwise it would trip over "stale NFS file handle" problems when some files were copied in place (replaced) on the NFS server just prior to using "jar". Attached below is the set of scripts which I placed in /usr/pkg/java/ as boot-java/, packaged up as "boot-java.tar.gz". Set JAVA_BOOTHOST (your boot host) and JAVA_BOOTDIR (top of java directory tree on JAVA_BOOTHOST) in the environment to suit your config. I also include the "build-java" shell script I used (to be executed from the top of the Java source tree).Attachment: boot-java.tar.gz
Description: Binary data#!/usr/bin/env bash set -x export MAKE_VERBOSE=t unset LANG unset JAVA_HOME unset CLASSPATH unset LD_LIBRARY_PATH export ALT_MOTIF_DIR=/usr/pkg # export ALT_NSPR_PATH=/usr/pkg export ALT_NSPR_HEADERS_PATH=/usr/pkg/include/firefox/nspr export ALT_MOZILLA_HEADERS_PATH=/usr/pkg/include/firefox export SKIP_COMPARE_IMAGES=YES export DONT_ENABLE_IPV6=YES export ALT_BOOTDIR=/usr/pkg/java/boot-java # export ALT_BOOTDIR=/usr/pkg/java/jdk-1.5.0 # export ALT_BOOTDIR=/usr/pkg/java/sun-1.5 cd control/make/ gmake_______________________________________________ freebsd-java%freebsd.org@localhost mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-java To unsubscribe, send any mail to "freebsd-java-unsubscribe%freebsd.org@localhost"
--- End Message ---