Hi Nicolas,>> How would I run VMKit without GC? > > VMKit just falls back to malloc when it detects that the machine is > 64bits.OK, I think I can handle that ;-)> Yes, running a 32bits virtualized system should work just fine.I first tried something else: compiling on an older Mac (10.5, 32 bit compilers) and copy the binary over to the 64-bit Mac. Of course I ran a quick test on the 10.5 machine to make sure that it works - but it doesn't: ~/Temp> javac hello.java ~/Temp> java -cp . HelloWorld Hello World! ~/Temp> j3 -cp . HelloWorld terminate called without an active exception Abort trap Here's hello.java: class HelloWorld { public static void main(String args[]) { System.out.println("Hello World!"); } } Any ideas? Konrad.
Hi Konrad, Did you compile vmkit with llvm-gcc or gcc? Did you make sure the path to GNU Classpath is correct in your configure command? Also, you can now update to the latest revision. Cheers, Nicolas On Tue, Apr 6, 2010 at 6:15 PM, Konrad Hinsen <konrad.hinsen at fastmail.net>wrote:> Hi Nicolas, > > > How would I run VMKit without GC? >>> >> >> VMKit just falls back to malloc when it detects that the machine is >> 64bits. >> > > OK, I think I can handle that ;-) > > > Yes, running a 32bits virtualized system should work just fine. >> > > I first tried something else: compiling on an older Mac (10.5, 32 bit > compilers) and copy the binary over to the 64-bit Mac. Of course I ran a > quick test on the 10.5 machine to make sure that it works - but it doesn't: > > ~/Temp> javac hello.java > ~/Temp> java -cp . HelloWorld > Hello World! > ~/Temp> j3 -cp . HelloWorld > terminate called without an active exception > Abort trap > > Here's hello.java: > > class HelloWorld > { > public static void main(String args[]) > { > System.out.println("Hello World!"); > } > } > > Any ideas? > > Konrad. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100406/5f17a49b/attachment.html>
Hi Nicolas,> Did you compile vmkit with llvm-gcc or gcc? Did you make sure the > path to GNU Classpath is correct in your configure command?I let the configure script of VMKit do its work and it decided to use gcc, the gcc 4.0.1 that is part of Apple's XCode distribution for MacOS 10.5. There is no llvm-gcc anywhere on my machine. Should I have one? I did install llvm without any error messages and I have a couple of llvm-* executables, but no llvm-gcc. As for GNU classpath, I think my configuration is correct but I don't know how to verify. Here's my configure command line for VMKit: ./configure --with-llvmsrc=/Users/hinsen/Development/VMKit/llvm -- with-llvmobj=/Users/hinsen/Development/VMKit/llvm --with-gnu-classpath- glibj=/Users/hinsen/Development/VMKit/classpath-0.97.2/lib --with-gnu- classpath-libs=/Users/hinsen/Development/VMKit/classpath-0.97.2/lib And here's the output of "cd /Users/hinsen/Development/VMKit/ classpath-0.97.2/lib; ls": META-INF gen-classlist.sh libjavalangreflect.so Makefile gen-classlist.sh.in libjavanet.so Makefile.am glibj.zip libjavanio.so Makefile.gcj gnu libjavautil.so Makefile.in java mkcollections.pl.in classes java.dep org classes.1 javax resources classes.2 libgconfpeer.so split-for-gcj.sh compile-classes libgtkpeer.so standard.omit copy-vmresources.sh libjavaio.so standard.omit.in copy-vmresources.sh.in libjavalang.so sun> Also, you can now update to the latest revision.Done - but that doesn't change anything, unfortunately. Konrad.