b31 multiple build failures on x86 Linux
Rob Ross
rob.ross at gmail.com
Wed Jul 23 02:21:07 UTC 2008
Would getting the hotspot "project" to compile be a good first step
at porting the JDK to a new platform? I'm still trying to find the
entry point to this long road. If not hotspot, what else would be a
good first effort at porting something?
Also, on a quick perusal, it sure seems like there's a lot of
assembly-related files in this project. I suppose that's the end
result of lots of evolution and performance enhancing. But for a
newbie to this project it can sure seem daunting :)
Rob Ross, Lead Software Engineer
E! Networks
---------------------------------------------------
"Beware of he who would deny you access to information, for in his
heart he dreams himself your master." -- Commissioner Pravin Lal
On Jul 22, 2008, at 4:43 PM, Kelly O'Hair wrote:
>
>
> Jeffrey Baker wrote:
>> On Tue, Jul 22, 2008 at 1:53 PM, Kelly O'Hair
>> <Kelly.Ohair at sun.com> wrote:
>>> Jeffrey Baker wrote:
>>>> What is the officially blessed compiler? This one appears to be
>>>> gcc
>>>> 4.2.3, but I have numerous other revisions of gcc kicking around,
>>>> including 4.1 and 4.2.
>>> You won't like this, but it's 3.2.
>> That is a bit inconvenient. Ubuntu provides 3.3 and 3.4, but not
>> 3.2.
>> Nevertheless, I'm sure I can find the source somewhere.
>
> It sounds like 4.2 might have problems, you might just try 4.1.
> We are trying to upgrade our official Linux systems, but it's taking
> longer than expected.
>
>>> Treat hotspot separate, build it the way you want, and plug it into
>>> the jdk image you want to use. Your builds will be faster and you
>>> can avoid building lots of jdk code you don't need to repeatedly
>>> rebuild.
>> In the beginning, I could not get anything to work aside from the top
>> level build system. Now I appear to be suitably equipped to type
>> 'make' in hotspot/make, which is an improvement. Still, 'make
>> profiled' is not valid, and 'make help' does not offer any advice on
>> the topic. I am taunted by the 'profiled' target in the linux
>> Makefile!
>
> The top level hotspot/make/Makefile was originally written by me.
> The other makefiles have a more colorful history. ;^)
> Try mimic'ing the use of the "jvmg" target in the hotspot/make/
> Makefile,
> I'm sure you could create a set of rules that would result in doing
> a "profiled" build, but you are on your own with this.
> I only added selected build targets to the top level Makefile,
> which wasn't really for developers as much as for the overall builds
> and release engineering.
>
>>>> What is the official way to build openjdk with profiling?
>>> As far as I know, there is none. It's just not something that is
>>> done
>>> much anymore.
>> Which explains at least the difficulty of doing so ...
>>> When we are doing profiling we use tools like the Sun Studio
>>> Analyzer
>>> or the NetBeans profiler, where we really don't need to build the
>>> image
>>> in any special way. Sun Studio 12 is available on Linux, with the
>>> Analyzer,
>>> but I have never used it.
>> That's an idea. I think I might try SS12 for a bit.
>
> Have fun.
>
> -kto
>
>> -jwb
More information about the build-dev
mailing list