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

gtest fails to compile after JDK-8287661

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 19
    • 19
    • hotspot
    • b26

    Description

      Reproduce:
       configure --with-jvm-variants=server --with-debug-level=optimized ...


      ```
      * For target hotspot_variant-server_libjvm_gtest_objs_test_bitMap.o:
      In file included from /root/df/jdk/src/hotspot/share/logging/logPrefix.hpp:28,
                       from /root/df/jdk/src/hotspot/share/logging/log.hpp:28,
                       from /root/df/jdk/src/hotspot/share/logging/logStream.hpp:28,
                       from /root/df/jdk/test/hotspot/gtest/utilities/test_bitMap.cpp:25:
      /root/df/jdk/test/hotspot/gtest/utilities/test_bitMap.cpp: In static member function 'static void BitMapTest::testPrintOn(BitMap::idx_t)':
      /root/df/jdk/src/hotspot/share/logging/logTag.hpp:207:36: error: '_test' is not a member of 'LogTag'
        207 | #define PREFIX_LOG_TAG(T) (LogTag::_##T)
            | ^
      /root/df/jdk/src/hotspot/share/logging/logTag.hpp:215:27: note: in definition of macro 'EXPAND_VARARGS'
        215 | #define EXPAND_VARARGS(x) x
            | ^
      /root/df/jdk/src/hotspot/share/logging/logTag.hpp:212:57: note: in expansion of macro 'PREFIX_LOG_TAG'
        212 | #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
            | ^~~~~~~~~~~~~~
      /root/df/jdk/src/hotspot/share/logging/logTag.hpp:216:38: note: in expansion of macro 'LOG_TAGS_EXPANDED'
         ... (rest of output omitted)

      * All command lines available in /root/df/jdk/build/linux-x86_64-server-release/make-support/failure-logs.
      ```

      Attachments

        Issue Links

          Activity

            People

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: