troubles building 64-bit VM on a mac

Landon Fuller landonf at plausiblelabs.com
Thu May 14 21:08:44 PDT 2009


On May 14, 2009, at 8:58 AM, David Green wrote:

> I've managed to build a 32-bit jdk7 on my mac.  When attempting to  
> build 64-bit I run into the following error message:
[snip]
> The only thing that I changed is between builds is ARCH_DATA_MODEL=64

Darwin x86's uname -m returns i386 on both 32-bit/64-bit systems,  
which causes some issues with using ARCH_DATA_MODEL=64. Attached are  
patches that:

- Enable overriding the default i586/i386 corba, jdk, and hotspot ARCH  
settings via ARCH_DATA_MODEL=64
- Set -m32 and -m64 for i386/amd64 builds (should fix the Snow Leopard  
issue Weijun reported)
- Removes i586/i686 detection cases in Hotspot's bsd/defs.make that  
are not necessary on NetBSD, FreeBSD, or OpenBSD (hw.machine always  
returns 'i386')

With the patches, 32-bit and 64-bit jdk7 builds complete successfully  
on my Mac, using soylatte i386/amd64. Unless there are any objections,  
I'll go ahead and commit after testing a FreeBSD build.

Thanks,
Landon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-corba
Type: application/octet-stream
Size: 1442 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090514/1e03515f/patch-corba.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-hotspot
Type: application/octet-stream
Size: 2230 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090514/1e03515f/patch-hotspot.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-jdk
Type: application/octet-stream
Size: 1444 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090514/1e03515f/patch-jdk.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090514/1e03515f/PGP.sig 


More information about the bsd-port-dev mailing list