OpenJDK on Solaris Dev Express 1/2008?
Erik Trimble
Erik.Trimble at Sun.COM
Tue Jun 3 22:51:12 UTC 2008
Kelly O'Hair wrote:
> I'm not sure what the state of the Makefiles are for building with gcc
> on Solaris. It has been done in the past, from the artifacts I see in the
> Makefiles, however, it won't 'just build', it will take some changes.
>
> In general we focus on one compiler set per OS, the one that has
> the most potential for performance and makes the most sense for that OS.
> Takes a great deal of testing and performance tests to 'validate' that
> even a particular release of a compiler isn't regressing us.
>
> We will be going through that validation process as we change our
> default JDK7 compilers to SS12 on Solaris, gcc4 on Linux, and
> VS2008 on Windows.
>
> -kto
>
> Christian Thalinger wrote:
>> On Mon, 2008-06-02 at 08:43 -0700, Kelly O'Hair wrote:
>>> If SXDE contains Sun Studio 12 (SS12), you may have some problems
>>> with compiling
>>> hotspot. I've integrated some hotspot changes to deal with SS12 issues
>>> http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/a49545cab84a
>>> (hasn't been integrated into the master jdk7/jdk7 repositories yet).
>>>
>>> The rest of the jdk may compile file with SS12, but lots of warnings
>>> about
>>> the use of -xarch options, harmless but annoying. I'm working on the
>>> rest
>>> of the SS12 Makefile changes for the jdk, to get rid of these
>>> warnings etc.
>>>
>>> If you can get a Sun Studio 11 installed, would be better right now.
>>>
>>> I used a previous version of SXDE to build OpenJDK a while back, but it
>>> had SS11 in it at that time, so it was a while ago.
>>> Looks like the latest SXDE includes Sun Studio Express compilers, which
>>> are effectively SS12+ I assume.
>>
>> Is it possible to build OpenJDK for OpenSolaris with GCC?
>>
>> - twisti
>>
Followup to Kelly here:
The Hotspot VM (which is (mostly) what is using the compiler), is set up
to build with SunStudio 11. As Kelly notes, we're (well, actually, most
He) is in the process of validating SS12 as a build compiler.
GCC will NOT work under Solaris/SPARC, and I'm pretty darned sure it
won't work under Solaris/x86 or Solaris/x64. There are some
significant GCC-isms which the JDK does not currently support.
That said, it would not be terribly difficult to modify the source to
get GCC to work, but you'd definitely have to spend a bit of time doing so.
Sadly, C compilers are not interchangeable.
--
Erik Trimble
Java System Support
Mailstop: usca22-123
Phone: x17195
Santa Clara, CA
Timezone: US/Pacific (GMT-0800)
More information about the build-dev
mailing list