JDK-8144279 : [TESTBUG] hotspot/runtime/jsig/Test8017498.sh should use native library build support
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-11-30
  • Updated: 2023-08-29
  • Resolved: 2016-07-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u401Fixed 9 b131Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
hotspot/runtime/jsig/Test8017498.sh tries to use the locally installed gcc to compile a native library. This is problematic because not all test devices have gcc installed. Also, on 64-bit machines running 32-bit tests, sometimes 32-bit compilation is not supported. Even if the installed gcc will support both 32-bit and 64-bit compilations, sometimes -m32 is not recognized on a pure 32-bit systems.

Build/makefile support as been added to allow building the native libraries along with the JDK, allowing the cross tools to be used. This test should be converted to use that support. 
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/a0cdf5e20489 User: lana Date: 2016-08-10 20:19:27 +0000
10-08-2016

URL: http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/a0cdf5e20489 User: dcubed Date: 2016-07-16 01:17:50 +0000
16-07-2016

The Test8017498.sh shell script will be replaced by a java program that ProcessBuilder to start the subtest. The java program will include a "@compile" directive to build the second java test program. The TestJNI.c file will be renamed libTestJNI.c so the build process will recognize the file and create a test library. The make/test/JtregNative.gmk file will also be modified to test library is only build for the linux test bundle.
03-05-2016

The test needs to be modified to remove the compiling of the test library and allow the build system to create the test library only for Linux. The test library will then be included in the test bundle so it will not have to be built when the test is run.
03-05-2016