Review OSX universal mode patch

Henri Gomez henri.gomez at gmail.com
Thu May 10 04:46:09 PDT 2012


> I'm not sure in what sense you are asking it - expect of whom? Henrik Stahl
> already made a statement on this:
>
> https://blogs.oracle.com/henrik/entry/oracle_jdk_and_javafx_sdk
>
> "What if I want a 32-bit JVM, or support for older PPC-based Macs?
> There are community efforts based on OpenJDK to build JDK 7 for other
> configurations, easily found using your favorite search engine. We applaud
> these efforts! :-)"

For PPC support, on older OSX, for now zero vm should be used.
For 32bits support

I just tried to build OSX in 32bits mode, providing ARCH=i386 and
DATA_MODEL=32 and build fail :

chmod +x test_gamma
touch bsd_amd64_compiler2/profiled
cd bsd_amd64_compiler2/product && make  " LP64=1 "
cd /Users/henri/Documents/jenkins/data/jobs/openjdk-jdk7u-jdk7u/workspace/build/macosx-i386/hotspot/outputdir/bsd_amd64_compiler2/product/../generated;
 cp /Users/henri/Documents/jenkins/data/jobs/openjdk-jdk7u-jdk7u/workspace/hotspot/make/bsd/platform_amd64
/Users/henri/Documents/jenkins/data/jobs/openjdk-jdk7u-jdk7u/workspace/build/macosx-i386/hotspot/outputdir/bsd_amd64_compiler2/product/../generated/platform.current
make[8]: *** No rule to make target
`/Users/henri/Documents/jenkins/data/jobs/openjdk-jdk7u-jdk7u/workspace/hotspot/src/cpu/i386/vm/x86_64.ad',
needed by `../generated/adfiles/bsd_x86_64.ad'.  Stop.
make[8]: *** Waiting for unfinished jobs....
make[7]: *** [ad_stuff] Error 2
make[6]: *** [product] Error 2
make[5]: *** [generic_build2] Error 2
make[4]: *** [product] Error 2
make[3]: *** [all_product_universal] Error 2
make[2]: *** [universal_product] Error 2
make[1]: *** [hotspot-build] Error 2
make: *** [build_product_image] Error 2

Windows, Linux and Solaris came with 32 and 64bits JVM (at least from
Oracle Java 7) but not OSX.

If universal 32/64bits single build couldn't be done (and it was in
macosx-port time), we should at least have a fun to build 32 and 64
bits JVM and provide 2 packages.

I spent some time digging in build process to bring back universal
mode and will eventually try to fix 32bits build failure for OSX but I
don't want to waste more time if these patches are not reviewed,
commented and applied if valid.

Cheers



More information about the jdk7u-dev mailing list