Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk11 win_x64 jdk_native_sanity fails with missing -nativepath option #1396

Closed
lumpfish opened this issue Oct 17, 2019 · 3 comments
Closed
Labels
Milestone

Comments

@lumpfish
Copy link
Contributor

jdk_native_sanity target is failing on win_x64 with error messages: Error. Use -nativepath to specify the location of native code

e.g. see https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/824

More context:

13:58:31  TEST: native_sanity/simplenativelib2/NativeLib.java
13:58:31  TEST JDK: C:\Users\jenkins\workspace\Grinder\openjdkbinary\j2sdk-image
13:58:31  
13:58:31  ACTION: build -- Passed. Build successful
13:58:31  REASON: Named class compiled on demand
13:58:31  TIME:   5.773 seconds
13:58:31  messages:
13:58:31  command: build NativeLib
13:58:31  reason: Named class compiled on demand
13:58:31  Test directory:
13:58:31    compile: NativeLib
13:58:31  elapsed time (seconds): 5.773
13:58:31  
13:58:31  ACTION: compile -- Passed. Compilation successful
13:58:31  REASON: .class file out of date or does not exist
13:58:31  TIME:   5.765 seconds
13:58:31  messages:
13:58:31  command: compile C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2\NativeLib.java
13:58:31  reason: .class file out of date or does not exist
13:58:31  Mode: agentvm
13:58:31  Agent id: 2
13:58:31  elapsed time (seconds): 5.765
13:58:31  configuration:
13:58:31  Boot Layer (javac runtime environment)
13:58:31    class path: C:\Users\jenkins\workspace\Grinder\jvmtest\openjdk\jtreg\lib\javatest.jar 
13:58:31                C:\Users\jenkins\workspace\Grinder\jvmtest\openjdk\jtreg\lib\jtreg.jar 
13:58:31    patch:      java.base C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\patches\java.base
13:58:31  
13:58:31  javac compilation environment
13:58:31    source path: C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2
13:58:31    class path:  C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2
13:58:31                 C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\classes\2\native_sanity\simplenativelib2\NativeLib.d
13:58:31  
13:58:31  rerun:
13:58:31  cd 'C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\scratch\2' && \
13:58:31  PATH='C:\cygwin64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Users\adoptopenjdk\AppData\Local\Microsoft\WindowsApps;C:\Strawberry\perl\bin;C:\Program Files\Git\cmd;C:\openjdk\jdk-8\bin;C:\apache-ant\apache-ant-1.10.5\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\IncrediBuild;C:\rust\bin;C:\Program Files\IcedTeaWeb\WebStart\bin;C:\Users\jenkins\AppData\Local\Microsoft\WindowsApps' \
13:58:31  SystemDrive=C: \
13:58:31  SystemRoot='C:\Windows' \
13:58:31  TEMP='C:\Users\jenkins\AppData\Local\Temp' \
13:58:31  TMP='C:\Users\jenkins\AppData\Local\Temp' \
13:58:31  windir='C:\Windows' \
13:58:31      'C:\Users\jenkins\workspace\Grinder\openjdkbinary\j2sdk-image\bin\javac' \
13:58:31          -J-ea \
13:58:31          -J-esa \
13:58:31          -J-Xmx512m \
13:58:31          -J-Xnocompressedrefs \
13:58:31          -J-Dtest.class.path.prefix='C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\classes\2\native_sanity\simplenativelib2\NativeLib.d;C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2' \
13:58:31          -J-Dtest.src='C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2' \
13:58:31          -J-Dtest.src.path='C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2' \
13:58:31          -J-Dtest.classes='C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\classes\2\native_sanity\simplenativelib2\NativeLib.d' \
13:58:31          -J-Dtest.class.path='C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\classes\2\native_sanity\simplenativelib2\NativeLib.d' \
13:58:31          -J-Dtest.vm.opts='-ea -esa -Xmx512m -Xnocompressedrefs' \
13:58:31          -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-Xnocompressedrefs' \
13:58:31          -J-Dtest.compiler.opts= \
13:58:31          -J-Dtest.java.opts= \
13:58:31          -J-Dtest.jdk='C:\Users\jenkins\workspace\Grinder\openjdkbinary\j2sdk-image' \
13:58:31          -J-Dcompile.jdk='C:\Users\jenkins\workspace\Grinder\openjdkbinary\j2sdk-image' \
13:58:31          -J-Dtest.timeout.factor=8.0 \
13:58:31          -J-Dtest.root='C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk' \
13:58:31          -d 'C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\classes\2\native_sanity\simplenativelib2\NativeLib.d' \
13:58:31          -sourcepath 'C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2' \
13:58:31          -classpath 'C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2;C:\Users\jenkins\workspace\Grinder\openjdk-tests\TestConfig\test_output_15713118052280\jdk_native_sanity_0\work\classes\2\native_sanity\simplenativelib2\NativeLib.d' 'C:\Users\jenkins\workspace\Grinder\openjdk-tests\openjdk\openjdk-jdk\test\jdk\native_sanity\simplenativelib2\NativeLib.java'
13:58:31  
13:58:31  TEST RESULT: Error. Use -nativepath to specify the location of native code

Maybe a test setup issue?

@llxia
Copy link
Contributor

llxia commented Oct 17, 2019

The test image is not provided in above Grinder. This is a user error.

@adam-thorpe
Copy link
Contributor

When this is configured properly, if ran on the test-azure-win2012r2-x64-1 machine one of these native tests will fail. Raised here: adoptium/infrastructure#964

@smlambert
Copy link
Contributor

Thanks for raising the infra issue @adam-thorpe, I will close this issue as its being tracked in appropriate repo now.

I had started to reply with instructions for proper run of Grinder, so leave them below for reference:

If you wish to run a native test in a Grinder, you need to ensure that you provide the native test image along with the SDK (by passing both via the CUSTOMIZED_SDK_URL parameter) as per instructions on How to Run a Grinder in Jenkins wiki.

Rebuild of Grinder/824 passing in both SDK & native test image: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/833/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants