Mark Wielaard wrote: > On Wed, 2010-11-24 at 20:39 -0600, kevin diggs wrote: > > This question is a little ... weird ... but ... > > > > Is the thought of trying to build your sdk with gcj ... heresy > > (sp?). If not please give me ... your thought as to whether > > it has any chance of working. I would think that if it is for > > compiles and the like ... it might work ... > > Not weird at all! This is exactly what the IcedTea project set out > to do. Make OpenJDK bootstrap using only free tools. Since GCJ is > the main free java implementation already available on GNU/Linux > that is what it has used. http://icedtea.classpath.org/ ... > There are multiple ways towards getting a powerpc port. One is using > the Zero interpreter, which has (almost) zero architecture specific > (assembly) code. Another is using Shark, which uses LLVM to generate > code. Both of these extend the Hotspot runtime. > http://icedtea.classpath.org/wiki/ZeroSharkFaq
If you do try Shark, you'll need to build a patched LLVM (sadly, LLVM has been broken on PowerPC for some time). There are patches for the various versions here: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=399 Once you've applied the patch, build LLVM with: ./configure --with-pic --enable-pic make Then, download IcedTea6, and build it like this: LLVM_CONFIG=/path/to/llvm/build/Release/bin/llvm-config ./configure --enable-shark make And after some compiling you should have a copy of OpenJDK :) Join #openjdk on OFTC if you need help, there's some of us there most times. Cheers, Gary -- http://gbenson.net/