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:
http://hub.opensolaris.org/bin/view/Community+Group+tools/sun_studio_tools
Get GCC 3.4.3:
pkg install developer/gcc-3
Get CBE 1.7.0 from:
svn co svn+ssh://anon@svn.opensolaris.org/svn/jds/jds-cbe/trunk jds-cbe
http://src.opensolaris.org/source/xref/jds/jds-cbe
Get GNU gettext 0.16.1 or higher: