official compiler for Solaris jdk9 build?

Phil Race philip.race at oracle.com
Tue Jun 2 15:47:19 UTC 2015


E_STATEMENT_NOT_REACHED is a favourite of SunStudio and
I recently fixed one such warning (in closed code so I can't point to it 
here)
but I did not see this one .. however I was using jprt and locally
Solaris 10 SPARC. So perhaps it is something to do with the headers ?

Ironically the warning is apparently due to an attempt to suppress
a previous warning :-(
..
     _exit(-1);
     return 0;  /* Suppress warning "no return value from function" */
}
..

-phil.

On 06/02/2015 08:37 AM, Erik Joelsson wrote:
> Hello Semyon,
>
> Solaris Studio 12.3 is the correct version. However, internally we use 
> devkits with the compiler and system headers/libraries all packaged 
> together (details in separate mail). The devkits still use headers and 
> libraries from Solaris 10u10 for compatibility with that release. We 
> normally run the build on Solaris 11.1.
>
> /Erik
>
> On 2015-06-02 17:27, Semyon Sadetsky wrote:
>> Hi,
>>
>> I'm trying to build jdk9 under the current Solaris 11.2 version.
>> Which version of the Solaris Studio should be installed for that? The 
>> readme-builds states:
>> ...
>> At a minimum, the Studio 12 Update 1 Compilers (containing version 
>> 5.10 of the C and C++ compilers) is required, including specific 
>> patches.
>> ...
>> Currently there are 3 versions currently available for downloading:
>>
>> Oracle Solaris Studio 12.2
>> Oracle Solaris Studio 12.3
>> Oracle Solaris Studio 12.4
>>
>> I tried all 3 and only with 12.3 I do no receive build warnings about 
>> wrong compiler version,
>> but my build constantly fails with 12.3 with the next message:
>>
>> Compiling 246 files for jdk.jdi
>> "/jdk9/client/jdk/src/java.base/unix/native/libjava/childproc.c", 
>> line 384: warning: statement not reached (E_STATEMENT_NOT_REACHED)
>> "/jdk9/client/jdk/src/java.base/unix/native/libjli/java_md_solinux.c", line 
>> 496: warning: statement not reached (E_STATEMENT_NOT_REACHED)
>> ld: fatal: file 
>> /jdk9/client/build/solaris-x86_64-normal-server-fastdebug/support/modules_libs/java.base/amd64/server/libjvm.so: 
>> not an ELF object
>> gmake[3]: *** 
>> [/jdk9/client/build/solaris-x86_64-normal-server-fastdebug/support/modules_libs/java.base/amd64/libverify.so] 
>> Error 2
>> gmake[3]: *** Waiting for unfinished jobs....
>> gmake[2]: *** [java.base-libs] Error 1
>>
>> Even --disable-warnings-as-errors option does not save the build from 
>> failure.
>> Could you send me the software list with the versions that should be 
>> installed on a clean Solaris 11.2 instance to have the build running 
>> smoothly?
>>
>> Thank you,
>> --Semyon
>>
>>
>>
>




More information about the build-dev mailing list