The recommended OS to build OpenIndiana on will always be the latest development release at the time you are building. The exception to the OS rule is for bootstrapping OpenIndiana from OpenSolaris where you should have the latest development binary release (b134) installed which can be obtained from Genunix. (In case you want to upgrade an older OpenSolaris install to osol-134, follow How to upgrade to osol-134).
The recommended build environment uses a patched Sun Studio version 12 to compile along side a patched Sun Studio 12.1 to provide the lint. Both compilers are available to download as tarballs from here:
Use the Sep 2009 download link for Sun Studio 12 here
Use the February 2010 download link for Sun Studio 12u1 here
Also see the IllumOS site, section 'Installing required packages', howto install the above Sun Studio packages.
Note: Sun Studio 12.2 is available but has not been tested so please do not use at this time.
Install GCC 3.4.3, Mercurial and swig:
Install CBE 1.7.0 from:
or http://dlc.sun.com/osol/jds/downloads/cbe/test/. The ./cbe-install script is not ment to be run as root. It has to be run as user with "Software Installation" or "Primary Administrator" rights! (See /etc/user_attr). Answer 'no' to all questions and ignore missing package dependencies.
Get GNU gettext (at least version 0.16.1):
http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz and install it using: ./configure --prefix=/opt/dtbld && make && pfexec make install
Alternative: You may use pkgbuild from CBE (above).
[18:04] <Meths> Otherwise, cd jds-cbe-dir; pkgbuild -bb CBEgettext.spec
[18:04] <Meths> cd ~/packages/PKGS/CBEgettext/reloc
[18:05] <Meths> tar cf - * | ( cd /opt/dtbld; pfexec tar xvpf - )
Once you've setup and installed the recommended build environment, the build process can/shall be entirely done as user.