You need to install several packages in order to build illumos.
- On OpenIndiana Hipster, it's enough to install build-essential meta-package
On OpenIndiana you'll likely see something like 'Branch: 2017.0.0.16790'. You have to use PKGVERS_BRANCH to overwrite this value, you can't use ONNV_BUILDNUM for this purpose. You should set PKGVERS_BRANCH in a form of YEAR.MAJOR.0.0 , where YEAR is the current ear year and MAJOR is more that the one used by OpenIndiana. For example:
Building with only GCC-4.4.4-il (i.e. without using Sun Studio at all)
# Set version which is greater than current OpenIndiana Hipster build numbers, ONNV_BUILDNUM is ignored if PKGVERS_BRANCH is set: export PKGVERS_BRANCH=2017.3.0.0 # Set to current perl version export PERL_VERSION="5.22" export PERL_PKGVERS="-522" # If you are building on the latest OpenIndiana Hipster (2017-03-07 and later) export BLD_JAVA_8=
Cure: Builders must either set
JAVA_ROOT to an installation location of JDK7, or must have
/usr/java populated with JDK7 (or pointing to an installation location of JDK7). You can use whatever distribution of JDK7+ works for you best (packages or tarballs, OpenJDK or Sun/Oracle JDK).
If you are on the latest OI HipsterOpenIndiana, you want to install
developer/java/openjdk8 packages. Then in your
env file, set: