Building on Solaris

Volker Simonis volker.simonis at gmail.com
Fri Jun 26 13:43:17 UTC 2015


Hi Andrew,

we are building nightly on Solaris 11 / SPARC with SS 12u3 (see
http://cr.openjdk.java.net/~simonis/ppc-aix-port/ - you can click on
the traffic lights to download the complete build logs). And I've just
verified that I can build jdk9-dev myself.

Assuming you have the compiler (SS12u3) in your path this is my configure line:

configure -with-boot-jdk=/sun_64/last_known_good/output-jdk8/images/j2sdk-image
--with-jvm-variants=server
--with-freetype=/usr/work/openjdk/tools/sun_64/freetype
--with-cups=/usr/work/openjdk/tools/cups-1.6.1 --with-target-bits=64
--with-debug-level=slowdebug --disable-zip-debug-info
--disable-warnings-as-errors

Essential is that you use "--disable-warnings-as-errors" because of
this problem:

"/jdk9/client/jdk/src/java.base/unix/native/libjava/childproc.c", line
384: error: statement not reached (E_STATEMENT_NOT_REACHED)
cc: acomp failed for
/jdk9/client/jdk/src/java.base/unix/native/libjava/childproc.c
gmake[3]: *** [/jdk9/client/build/solaris-x86_64-normal-server-fastdebug/support/native/java.base/libjava/childproc.o]
Error 2
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [java.base-libs] Error 1

If you search the build-dev list for "childproc.c" you'll find the
exact reason for the problem.

Regards,
Volker


On Fri, Jun 26, 2015 at 10:05 AM, Andrew Haley <aph at redhat.com> wrote:
> On 26/06/15 06:34, David Holmes wrote:
>> On 25/06/2015 11:15 PM, Andrew Haley wrote:
>>> On 06/25/2015 02:03 PM, Erik Joelsson wrote:
>>>> Can you check that you have
>>>> $(JDK_TOPDIR)/make/src/classes/build/tools/module in your source tree?
>>>
>>> Ah yes, that's a problem.  Somehow a ton of files is missing in there.
>>>
>>> I'll rebuild from a clean tree.
>>
>> Also note that we use a devkit from Solaris 10u10 when building on S11.
>> Building natively on S11 make not work.
>
> I am trying to duplicate your setup so that I can test on Solaris.  If
> you could let me know exactly what tools y'all use that would help me
> a great deal.
>
> Thanks,
> Andrew.



More information about the build-dev mailing list