Patch to build 64 bit VM
mvfranz at gmail.com
Mon Jan 5 04:42:39 PST 2009
This is my output:
Apple Inc version cctools-698.1~1, GNU assembler version 1.38
I have been trying to build 64 bit by only passing in the LP64=1 . I have
not been able to get it to work, it gets pretty far. I have to change some
cast from int64_t to intprt_t to get as far as I do.
Once I put in the correct casts (change int32_t to intptr_t) the 32 bit
build is fine.
I have not imported your latest commits.
On Mon, Jan 5, 2009 at 12:20 AM, Greg Lewis <glewis at eyesbeyond.com> wrote:
> G'day Michael,
> On Fri, Jan 02, 2009 at 10:59:37PM -0500, Michael Franz wrote:
> > On Wed, Dec 31, 2008 at 11:32 PM, Xiaobin Lu <Xiaobin.Lu at sun.com> wrote:
> > > Greg,
> > >
> > > I tried to pass in LP64=1 to build 64 bit VM on Mac OS. This is same as
> > > other platforms. It looks like you have checked in the fix to
> > > os_bsd_x86.cpp so I don't believe I have to do anything more.
> > >
> > > Regards,
> > >
> > > Happy new year.
> > > -Xiaobin
> > >
> > I am not sure where this leaves the 64 bit and 32 bit builds, but I
> > build either without patching them. I also noticed that the 64 bit
> > does not seem to honor the NO_DOCS=true flag.
> > make: *** No rule to make target
> > needed by `generic_export'
> I just committed the other two of Xiaobin's changes. These help me with
> the 64 bit build. I have two patches left. I don't think one of these
> has any effect on 64 bit builds. The other patch is to adlc.make, but I
> wonder if thats just because of how I'm trying to get things to work for
> 64 bit builds.
> I invoke GNU make with
> gmake ARCH=amd64 LP64=1
> (I think the LP64=1 is actually redundant).
> This mostly works except it then looks for x86_64.ad in the wrong place
> (src/cpu/amd64/vm instead of src/cpu/x86/vm). I can hack around that in
> adlc.make, but I have to wonder if other people are building 64 bit
> differently to avoid this?
> Anyway, I can get through the 64 bit HotSpot build, but my build dies
> during the jdk part of the build since my userland is all 32 bit.
> How are you dealing with that?
> I'm still blocked by the assembler issues on 32 bit. I think its to do
> with my version of as, but I'd really like some more insight there. Can
> you please run 'as -v' and tell me the output?
> Greg Lewis Email : glewis at eyesbeyond.com
> Eyes Beyond Web : http://www.eyesbeyond.com
> Information Technology FreeBSD : glewis at FreeBSD.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the bsd-port-dev