-
Bug
-
Resolution: Unresolved
-
P4
-
8, 9, 10
-
x86_64
-
windows
FULL PRODUCT VERSION :
openjdk version "1.8.0_112-release"
OpenJDK Runtime Environment (build 1.8.0_112-release-b585)
OpenJDK 64-Bit Server VM (build 25.112-b585, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
Running under cygwin, the test java/awt/JAWT/JAWT.sh fails in 64 bit mode on Windows on building stage with the message ''Makefile.cygwin:40: recipe for target 'mylib.dll' failed''
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
jtreg -v -a -xml -testjdk:[path_to_jdk] -javaoptions:-Djava.awt.headless=false -timeoutFactor:2 java/awt/JAWT/JAWT.sh
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#section:shell
----------messages:(3/107)----------
command: shell JAWT.sh
reason: User specified action: run shell JAWT.sh
elapsed time (seconds): 14.371
----------System.out:(6/437)----------
OS-ARCH is cygwin-amd64
openjdk full version "1.8.0_112-release-b585"
gcc -I C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/include/win32 -I C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/include -I . -c C:/BuildAgent/work/13ab0d4c51b0de0b/test/java/awt/JAWT/myfile.cpp
gcc -shared -o mylib.dll myfile.o C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/lib/jawt.lib -lgdi32
Makefile.cygwin:40: recipe for target 'mylib.dll' failed
Test failed!!
----------System.err:(8/602)----------
C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/lib/jawt.lib(jawt.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_JAWT_GetAWT' defined in .idata$5 section in C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/lib/jawt.lib(jawt.dll.b)
collect2: error: ld returned 1 exit status
make: *** [mylib.dll] Error 1
java.lang.UnsatisfiedLinkError: no mylib in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at MyCanvas.<clinit>(MyCanvas.java:31)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
The test is from Regression test suite (jtreg)
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/8b04ee324a1a/test/java/awt/JAWT
---------- END SOURCE ----------
openjdk version "1.8.0_112-release"
OpenJDK Runtime Environment (build 1.8.0_112-release-b585)
OpenJDK 64-Bit Server VM (build 25.112-b585, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
Running under cygwin, the test java/awt/JAWT/JAWT.sh fails in 64 bit mode on Windows on building stage with the message ''Makefile.cygwin:40: recipe for target 'mylib.dll' failed''
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
jtreg -v -a -xml -testjdk:[path_to_jdk] -javaoptions:-Djava.awt.headless=false -timeoutFactor:2 java/awt/JAWT/JAWT.sh
ERROR MESSAGES/STACK TRACES THAT OCCUR :
#section:shell
----------messages:(3/107)----------
command: shell JAWT.sh
reason: User specified action: run shell JAWT.sh
elapsed time (seconds): 14.371
----------System.out:(6/437)----------
OS-ARCH is cygwin-amd64
openjdk full version "1.8.0_112-release-b585"
gcc -I C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/include/win32 -I C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/include -I . -c C:/BuildAgent/work/13ab0d4c51b0de0b/test/java/awt/JAWT/myfile.cpp
gcc -shared -o mylib.dll myfile.o C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/lib/jawt.lib -lgdi32
Makefile.cygwin:40: recipe for target 'mylib.dll' failed
Test failed!!
----------System.err:(8/602)----------
C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/lib/jawt.lib(jawt.dll.b):(.text+0x2): relocation truncated to fit: R_X86_64_32 against symbol `__imp_JAWT_GetAWT' defined in .idata$5 section in C:/BuildAgent/work/13ab0d4c51b0de0b/jbsdk/lib/jawt.lib(jawt.dll.b)
collect2: error: ld returned 1 exit status
make: *** [mylib.dll] Error 1
java.lang.UnsatisfiedLinkError: no mylib in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at MyCanvas.<clinit>(MyCanvas.java:31)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
The test is from Regression test suite (jtreg)
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/8b04ee324a1a/test/java/awt/JAWT
---------- END SOURCE ----------