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

Build failure after JDK-8264752 with older GCCs

XMLWordPrintable

    • jfr
    • b21


        This happens with GCC 6.3.0:

        /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp: In function 'bool ensure_gteq(Argument&, jlong)':
        /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp:622:38: error: the value of 'lower_than_msg' is not usable in a constant expression
             log_out_of_range_value<Argument, lower_than_msg>(memory_argument, value);
                                              ^~~~~~~~~~~~~~
        /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp:397:19: note: 'lower_than_msg' was not declared 'constexpr'
         static const char lower_than_msg[] = "This value is lower than the minimum size required ";
                           ^~~~~~~~~~~~~~
        /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp: In function 'bool ensure_lteq(Argument&, jlong)':
        /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp:657:38: error: the value of 'higher_than_msg' is not usable in a constant expression
             log_out_of_range_value<Argument, higher_than_msg>(memory_argument, value);
                                              ^~~~~~~~~~~~~~~
        /home/buildbot/worker/build-jdkX-linux/build/src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp:396:19: note: 'higher_than_msg' was not declared 'constexpr'
         static const char higher_than_msg[] = "This value is higher than the maximum size limited ";
                           ^~~~~~~~~~~~~~~

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: