Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2012 23:27:57 -0800
From:      Greg Lewis <glewis@eyesbeyond.com>
To:        Justin Hibbits <chmeeedalf@gmail.com>
Cc:        freebsd-ppc@FreeBSD.org
Subject:   Re: GCJ on ppc
Message-ID:  <20120110072757.GA62184@misty.eyesbeyond.com>
In-Reply-To: <F6D7EA1A-6419-4BB2-9497-2264B9D2C58A@gmail.com>
References:  <5222401A-788E-4635-A302-7F4D1E5305EA@gmail.com> <CA%2BWntOvMRRWYmaz-5HcPAvu5viPmrjUUVjQKkTV=WM0nAbS4Aw@mail.gmail.com> <20120110024956.GA61524@misty.eyesbeyond.com> <F6D7EA1A-6419-4BB2-9497-2264B9D2C58A@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
G'day Justin,

On Mon, Jan 09, 2012 at 09:56:00PM -0500, Justin Hibbits wrote:
> On Jan 9, 2012, at 9:49 PM, Greg Lewis wrote:
> > On Sun, Jan 08, 2012 at 02:58:32PM -0500, Super Bisquit wrote:
> >> That's good news. Thanks.
> >>
> >> On Fri, Jan 6, 2012 at 7:37 PM, Justin Hibbits  
> >> <chmeeedalf@gmail.com> wrote:
> >>> Well, guys, I don't know if anyone's tried this before, but GCJ and
> >>> libjava both compile on FreeBSD/ppc.  I just tested this with  
> >>> 4.6-20111111,
> >>> and only compiled, haven't tried actually running anything built  
> >>> with gcj.
> >>> My goal in doing this was to see about getting LLVM's vmkit/J3  
> >>> working on
> >>> here, and this was the first step in doing so.  All it took to do  
> >>> this was
> >>> to add the line 'powerpc-*-*) ;;' at line 3144 (I can provide a  
> >>> patch for
> >>> the port later, these are just simple instructions to get it to  
> >>> compile).
> >>>
> >>> Happy hacking, maybe we'll get a JVM on ppc soon.
> >
> > IIRC one should be able to get the openjdk7 port working on powerpc  
> > with
> > the Zero VM at least.  We've at one point had Zero working on both
> > FreeBSD/amd64 and FreeBSD/sparc64 and it has previously worked on  
> > Leopard/ppc
> > at some point.  The big problem, as usual, is the bootstrapping.   
> > I'll be the
> > first to admit that is probably much easier with gcj.
> >
> > FWIW.
> 
> Hadn't even considered openjdk, just going with vmkit as that's  
> already known to work on Linux/ppc.  According to the IcedTea build  
> requirements, a working JDK is required to build IcedTea, which makes  
> it a chicken-and-egg problem.  So having vmkit, which should work on  
> ppc now that gcj is building on ppc, should allow bootstrapping  
> IcedTea as well.

You can manually bootstrap without a working JDK, but it is pretty painful.
Basically you need a system with a working JDK (e.g. amd64 or i386) and the
powerpc system with a shared NFS mount of the source.  You make your
bootstrap JDK then be a set of scripts that ssh's to the system with the
working JDK on it and executes the command while all the C++/C compilation
steps run locally on the powerpc box.  Once you've bootstrapped like that
you can then use the JDK you get from that step as the bootstrap JDK next
time without the NFS set up.  I bootstrapped sparc64 something like that.

Getting gcj running is definitely easier.  I was under the impression that
you could bootstrap IcedTea with a mix of gcj, ejc and a VM like jamvm and
GNU classpath.  I could easily be mistaken though.

-- 
Greg Lewis                          Email   : glewis@eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120110072757.GA62184>