Patch to build 64 bit VM
Greg Lewis
glewis at eyesbeyond.com
Mon Jan 5 22:12:57 PST 2009
On Mon, Jan 05, 2009 at 07:42:39AM -0500, Michael Franz wrote:
> This is my output:
> Apple Inc version cctools-698.1~1, GNU assembler version 1.38
Thank you! A winner it looks like. Mine is cctools-677*mumble* or
something similar. Hmmm, now how to upgrade that...
> 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.
Interesting. I'll try just doing that and see what I get.
> 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.
They were definitely necessary for me.
> 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
> > cannot
> > > build either without patching them. I also noticed that the 64 bit
> > builds
> > > does not seem to honor the NO_DOCS=true flag.
> > >
> > > make[3]: *** No rule to make target
> > >
> > `/Users/mfranz/developer/openjdk-bsd/repos/2009-01-02/build/bsd-i586/hotspot/import/docs/platform/jvmti/jvmti.html',
> > > 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
> >
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the bsd-port-dev
mailing list