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

ZGC fails to build on GCC 4.4.7: Type parameter issue

XMLWordPrintable

    • gc
    • b12
    • generic
    • linux

        When trying to build jdk/jdk on CentOS/RHEL 6 which has GCC version 4.4.7 one gets this compile error after JDK-8220283:

        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp: In constructor ‘ZStatSampler::ZStatSampler(const char*, const char*, void (*)(LogTargetHandle, const ZStatSampler&, const ZStatSamplerHistory&))’:
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp:407: error: class ‘ZStatSampler’ does not have any field named ‘ZStatIterableValue’
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp:408: error: no matching function for call to ‘ZStatIterableValue<ZStatSampler>::ZStatIterableValue()’
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.hpp:95: note: candidates are: ZStatIterableValue<T>::ZStatIterableValue(const char*, const char*, uint32_t) [with T = ZStatSampler]
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.hpp:85: note: ZStatIterableValue<ZStatSampler>::ZStatIterableValue(const ZStatIterableValue<ZStatSampler>&)
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp: In constructor ‘ZStatCounter::ZStatCounter(const char*, const char*, void (*)(LogTargetHandle, const ZStatSampler&, const ZStatSamplerHistory&))’:
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp:443: error: class ‘ZStatCounter’ does not have any field named ‘ZStatIterableValue’
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp:444: error: no matching function for call to ‘ZStatIterableValue<ZStatCounter>::ZStatIterableValue()’
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.hpp:95: note: candidates are: ZStatIterableValue<T>::ZStatIterableValue(const char*, const char*, uint32_t) [with T = ZStatCounter]
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.hpp:85: note: ZStatIterableValue<ZStatCounter>::ZStatIterableValue(const ZStatIterableValue<ZStatCounter>&)
        /home/openjdk/openjdk-head/src/hotspot/share/gc/z/zStat.cpp: In constructor ‘ZStatUnsampledCounter::ZStatUnsampledCounter(const char*)’:

          1. JDK-8220294.export.patch
            2 kB
            Severin Gehwolf
          2. JDK-8220294.jdk11.export.patch
            2 kB
            Severin Gehwolf

              sgehwolf Severin Gehwolf
              sgehwolf Severin Gehwolf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: