Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6339849

New Community Fix Received: HotSpot build on AMD64 Fedora Core 4

XMLWordPrintable

    • b63
    • x86
    • linux

      This bug covers just the glibc changes described below. See the corresponding bug for the gcc changes. ... peter

      A DESCRIPTION OF THE FIX :
      I was not able to build hotspot component of mustang of AMD64 Fedora Core 4 Linux box. Few changes have to be applied to source code to allow it to compile with gcc which is installed there by default (4.0.1 20050727). Most problems are just missing definitions of class references, which could be possibly added without breaking anything (these are included in first diff). Second problem is that in glibc 2.3.5, two pthread functions used currently by hotspot are deprecated, which gives compilation warning, which in turns leads to failed compilation (because of -Werror). Changing pthread routines to new ones was out of scope of 'compilation fixes' patch, so I just disabled -Werror to get it to compile. After that, I was able to use fastdebug binary as a replacement of existing binary distribution jvm and it worked for few sample programs I have tried (including SwingSet2 and Java2D Demo).

      I don't expect that -Werror change will be included - it is just a workaround for now, I will have to investigate pthread problem further. I'm just including it for reference, if you would like to try a build on Fedora4. Other changes could be probably applied safely.

      Diff for makefile, in JavaSrc/hotspot/build

      Index: linux/makefiles/gcc.make
      ===================================================================
      --- linux/makefiles/gcc.make (.../JavaSrc/current/hotspot/build) (revision 10)
      +++ linux/makefiles/gcc.make (.../work/hotspot/build) (revision 10)
      @@ -71,7 +71,7 @@
       endif

       # Compiler warnings are treated as errors
      -CFLAGS_WARN = -Werror
      +CFLAGS_WARN =
       CFLAGS_WARN += -Wpointer-arith -Wconversion -Wsign-compare

       # The flags to use for an Optimized g++ build


      JUnit TESTCASE :
      On AMD64 Fedora Core 4, go to hotspot/make and type
      make fastdebug

            nigottiorcl Nikolay Igotti (Inactive)
            pbk Peter Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: