fail when "make run-test-tier1" and "make all"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

fail when "make run-test-tier1" and "make all"

Lin Zang
Hi,
    I recently tried to runt make run-test-tier1 or make all on jdk10u and
jdk11 with latest jtreg. all fail with following error:

ERROR: Build failed for target 'run-test-tier1' in configuration
'linux-x86_64-normal-server-release' (exit code 2)
Stopping sjavac server

=== Output from failing command(s) repeated here ===
* For target
support_test_failure_handler_classes__the.BUILD_FAILURE_HANDLER_batch:
/media/Source/jdk11/test/failure_handler/src/share/classes/jdk/test/failurehandler/jtreg/GatherDiagnosticInfoObserver.java:123:
error: no suitable method found for save(Map<CAP#1,CAP#2>)
        rp.save(map);
          ^
    method InterviewParameters.save(File) is not applicable
      (argument mismatch; Map<CAP#1,CAP#2> cannot be converted to File)
    method InterviewParameters.save(Map<String,String>) is not applicable
      (argument mismatch; Map<CAP#1,CAP#2> cannot be converted to
Map<String,String>)
  where CAP#1,CAP#2 are fresh type-variables:
    CAP#1 extends Object from capture of ?
    CAP#2 extends Object from capture of ?
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
   ... (rest of output omitted)

* All command lines available in
/media/Source/jdk11/build/linux-x86_64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===

=== Make failed targets repeated here ===
BuildFailureHandler.gmk:51: recipe for target
'/media/Source/jdk11/build/linux-x86_64-normal-server-release/support/test/failure_handler/classes/_the.BUILD_FAILURE_HANDLER_batch'
failed
make/Main.gmk:516: recipe for target 'build-test-failure-handler' failed
=== End of repeated output ===

Hint: Try searching the build log for the name of the first failed target.
Hint: See doc/building.html#troubleshooting for assistance.

/media/Source/jdk11/make/Init.gmk:300: recipe for target 'main' failed
make[1]: *** [main] Error 2
/media/Source/jdk11/make/Init.gmk:186: recipe for target 'run-test-tier1'
failed
make: *** [run-test-tier1] Error 2

Can anyone help to take a look at this issue? Thanks

BRs,
Lin



--
Sent from: http://openjdk.5641.n7.nabble.com/OpenJDK-jtreg-Test-Harness-f101415.html
Reply | Threaded
Open this post in threaded view
|

Re: fail when "make run-test-tier1" and "make all"

Lin Zang
Moreover it seems the following change can help fix the issue:


---
a/test/failure_handler/src/share/classes/jdk/test/failurehandler/jtreg/GatherDiagnosticInfoObserver.java
+++
b/test/failure_handler/src/share/classes/jdk/test/failurehandler/jtreg/GatherDiagnosticInfoObserver.java
@@ -119,7 +119,7 @@ public class GatherDiagnosticInfoObserver implements
Harness.Observer {
     public void startingTestRun(Parameters params) {
         // TODO find a better way to get JDKs
         InterviewParameters rp = (InterviewParameters) params;
-        Map<?,?> map = new HashMap<>();
+        Map<String, String> map = new HashMap<>();
         rp.save(map);
         compileJdk = (String) map.get("regtest.compilejdk");
         testJdk = (String) map.get("regtest.testjdk");

======================================
so is this patch a suitable fix of the issue?



--
Sent from: http://openjdk.5641.n7.nabble.com/OpenJDK-jtreg-Test-Harness-f101415.html