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

Jvmti test fails to build with VS2017

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • b17
    • windows

        One of the newly converted Jvmti tests fails to compile with VS2017:

        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): error C2220: warning treated as error - no 'object' file generated
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 1 has type 'jlong'
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%lld' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%Id' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%I64d' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): warning C4477: 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 3 has type 'jlong'
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%lld' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%Id' in the format string
        c:\erik\jdk\closed\test\hotspot\jtreg\vmtestbase\nsk\jvmti\unit\timers\jvmtitest\JvmtiTest.c(352): note: consider using '%I64d' in the format string
        JtregNativeHotspot.gmk:210: recipe for target '/cygdrive/c/erik/jdk/build/windows-x64/support/test/hotspot/jtreg/native/support/libtimers/libtimers.obj' failed

              dtitov Daniil Titov (Inactive)
              erikj Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: