Building 32-bit binaries on Solaris

Erik Joelsson erik.joelsson at oracle.com
Mon Nov 26 00:32:04 PST 2012


On 2012-11-24 20:04, Alan Bateman wrote:
> On 24/11/2012 17:57, Alan Bateman wrote:
>>
>> I'm on a Solaris SPARC system and by default the new build generates 
>> solaris-sparcv9 binaries. I'm looking to create 32-bit binaries which 
>> is the default on the old build system (unless you specify 
>> ARCH_DATA_MODEL) and trying to figure out the options to specify to 
>> configure. The guide suggests that --with-host-bits is Windows only. 
>> Is a build of 32-bit binaries considered a cross compile and should I 
>> specify --host?
>>
>> -Alan
> Never mind, I found --with-target-bits=32. It might be good to get 
> this added to the guide as it's not very obvious that the default is 
> 64-bit whereas we are used to it being 32-bit on Solaris.
>
> -Alan

The documentation surely needs to be updated. I will try to get the 
biggest out of date info corrected today at least.

The default was changed to be consistent on all platforms. I think 
that's a good idea, but I wouldn't fight for it if 32bit would still be 
preferred as default.

Also note that by default, only server version of hotspot is built, so 
if you want what was default before, you will also need 
--with-jvm-variants=client,server, which doubles the compile time for 
hotspot.

/Erik



More information about the build-infra-dev mailing list