Patch to build 64 bit VM

Xiaobin Lu Xiaobin.Lu at Sun.COM
Mon Jan 5 11:14:50 PST 2009


On 01/05/09 04:42, Michael Franz wrote:
> Greg,
>
> 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.
This is what I did on my Leopard system. Go to the bsd-port directory 
and type "make ALT_BOOTDIR=/usr/local/soylatte-amd64-1.0.3 LP64=1 
hotspot" and I can build the hotspot successfully. I also tried to go to 
make directory under hotspot subdirectory and type "make 
ALT_BOOTDIR=/usr/local/soylatte-amd64-1.0.3 
ALT_OUTPUTDIR=/export/bsd-port/build/bsd-port/hotspot/outputdir LP64=1 
jvmg product fastdebug" and that will do the same thing.
>
> Once I put in the correct casts (change int32_t to intptr_t) the 32 
> bit build is fine.
As I mentioned in another email, my fix for this has only been checked 
into hotspot-rt repository and hasn't been integrated to the hotspot 
repository. I assume that will happen by the end of this week or early 
next week.

-Xiaobin
>
> I have not imported your latest commits.
>
> Michael
>
> On Mon, Jan 5, 2009 at 12:20 AM, Greg Lewis <glewis at eyesbeyond.com 
> <mailto: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
>     <mailto: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
>     <http://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 <mailto: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...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090105/7e627a2e/attachment.html 


More information about the bsd-port-dev mailing list