From zuismanm at gmail.com Sun Jun 2 20:20:00 2019 From: zuismanm at gmail.com (Moshe Zuisman) Date: Sun, 2 Jun 2019 23:20:00 +0300 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> Message-ID: Hi David. I have updated to Visual studio 2017 15.9.12. Build still fails, while now works much longer and pass much more steps: *$ makeBuilding target 'default (exploded-image)' in configuration 'windows-x86_64-normal-server-release'Compiling 8 files for BUILD_TOOLS_LANGTOOLSCreating hotspot/variant-server/tools/adlc/adlc.exe from 13 file(s)Compiling 2 files for BUILD_JVMTI_TOOLSCompiling 1 files for BUILD_JFR_TOOLSCompiling 12 properties into resource bundles for jdk.jdepsCompiling 7 properties into resource bundles for jdk.jshellWarning: No mercurial configuration present and no .src-revParsing 2 properties into enum-like class for jdk.compilerCompiling 13 properties into resource bundles for jdk.javadocCompiling 19 properties into resource bundles for jdk.compilerCompiling 117 files for BUILD_java.compiler.interimCompiling 394 files for BUILD_jdk.compiler.interimCreating support/modules_libs/java.base/server/jvm.dll from 855 file(s)Creating hotspot/variant-server/libjvm/gtest/jvm.dll from 91 file(s)Creating hotspot/variant-server/libjvm/gtest/gtestLauncher.exe from 1 file(s)Compiling 299 files for BUILD_jdk.javadoc.interimCompiling 162 files for BUILD_TOOLS_JDKSjavac server failed to initialize: No port file values materialized. Giving up after 60369 msProcess output:Process exit code: 0IOException caught during compilation: Server failed to initialize: No port file values materialized. Giving up after 60369 msmake[3]: *** [CompileToolsJdk.gmk:48: /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/buildtoo/jdk_tools_classes/_the.BUILD_TOOLS_JDK_batch] Error 1make[2]: *** [make/Main.gmk:85: buildtools-jdk] Error 2make[2]: *** Waiting for unfinished jobs....Compiling 188 files for BUILD_jdk.rmic.interimNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): error C2220: warning treated as error -o 'object' file generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): warning C4305: 'argument': truncation fm 'const intx' to 'double'make[3]: *** [lib/CompileJvm.gmk:151: /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] Error 1make[3]: *** Waiting for unfinished jobs....make[2]: *** [make/Main.gmk:257: hotspot-server-libs] Error 2ERROR: Build failed for target 'default (exploded-image)' in configuration 'windows-x86_64-normal-server-release' (exit code 2)=== Output from failing command(s) repeated here ===* For target buildtools_jdk_tools_classes__the.BUILD_TOOLS_JDK_batch:Sjavac server failed to initialize: No port file values materialized. Giving up after 60369 msProcess output:Process exit code: 0IOException caught during compilation: Server failed to initialize: No port file values materialized. Giving up after 60369 ms* For target hotspot_variant-server_libjvm_objs_jvmFlagRangeList.obj:jvmFlagRangeList.cppc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): error C2220: warning treated as error -o 'object' file generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): warning C4305: 'argument': truncation fm 'const intx' to 'double' ... (rest of output omitted)* All command lines available in /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/make-support/ilure-logs.=== End of repeated output ===No indication of failed target found.Hint: Try searching the build log for '] Error'.Hint: See doc/building.html#troubleshooting for assistance.make[1]: *** [/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:305: main] Error 2make: *** [/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:186: default] Error 2* ??, 31 ??? 2019 ?. ? 08:47, David Holmes : > Hi Moshe, > > Can you update your VS 2017 installation? The only difference I can spot > is that we are using > > Microsoft Visual Studio 2017 15.9.6 > > with > > Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27026.1 > > while you have: > > Visual Studio 2017 Developer Command Prompt v15.0.26228.86 > > with > > [Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25027 > > David > ----- > > On 31/05/2019 1:55 am, Moshe Zuisman wrote: > > Hi David. I have done it. with same result. > > I have added --debug-configure flag.. Attaching full configure output.. > > > > I am stuck with this issue and right now - have no idea - how to get out > > of this "blind alley"... > > > > ??, 30 ??? 2019 ?. ? 12:46, David Holmes > >: > > > > Hi Moshe, > > > > can you try running configure with --disable-precompiled-headers > > > > Thanks, > > David > > > > On 30/05/2019 6:26 pm, Moshe Zuisman wrote: > > > Configuration summary: > > > ==================================================== > > > The existing configuration has been successfully updated in > > > > > > /cygdrive/c/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release > > > using configure arguments > '--with-boot-jdk=/cygdrive/c/jdk-11.0.3'. > > > > > > Configuration summary: > > > * Debug level: release > > > * HS debug level: product > > > * JVM variants: server > > > * JVM features: server: 'aot cds cmsgc compiler1 compiler2 > > epsilongc > > > g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc > > serialgc > > > services vm-structs' > > > * OpenJDK target: OS: windows, CPU architecture: x86, address > > length: 64 > > > * Version string: > 11-internal+0-adhoc.ADPRODcuser.jdk11-1ddf9a99e4ad > > > (11-internal) > > > > > > Tools summary: > > > * Environment: cygwin version 3.0.7(0.338/5/3) (root at > > > /cygdrive/c/cygwin64) > > > * Boot JDK: java version "11.0.3" 2019-04-16 LTS Java(TM) > SE > > > Runtime Environment 18.9 (build 11.0.3+12-LTS) Java HotSpot(TM) > > 64-Bit > > > Server VM 18.9 (build 11.0.3+12-LTS, mixed mode) (at > > > /cygdrive/c/jdk-11.0.3) > > > * Toolchain: microsoft (Microsoft Visual Studio 2017) > > > * C Compiler: Version 19.10.25027 (at > > > > > > /cygdrive/c/progra~2/mib055~1/2017/profes~1/vc/tools/msvc/1410~1.250/bin/hostx86/x64/cl) > > > * C++ Compiler: Version 19.10.25027 (at > > > > > > /cygdrive/c/progra~2/mib055~1/2017/profes~1/vc/tools/msvc/1410~1.250/bin/hostx86/x64/cl) > > > > > > Build performance summary: > > > * Cores to use: 2 > > > * Memory limit: 8191 MB > > > > > > WARNING: The result of this configuration has overridden an older > > > configuration. You *should* run 'make clean' to make sure you get > a > > > proper build. Failure to do so might result in strange build > > problems. > > > > > > ??, 30 ??? 2019 ?. ? 00:58, David Holmes > > > > >>>: > > > > > > Can you provide the configuration summary produced by > configure? > > > > > > It's an issue with precompiled headers but I've no idea what. > > > > > > David > > > > > > On 30/05/2019 5:21 am, Moshe Zuisman wrote: > > > > I thought, that may be probleem ressults form some > specific > > > > configuration on my machine (for example I have 2 version > of > > > MSVCc - > > > > 2012 and 2017. > > > > So I created clean VmWare Virtual machine and installed > their > > > only MSVC > > > > 2017 and cygwin. And tried to build OPEN JDK theeir. and > > got exactly > > > > same failure. > > > > > > > > ??, 29 ??? 2019 ?. ? 09:40, Moshe Zuisman > > > > > > > > > > > > >>>: > > > > > > > > I am using > > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 > > > > > > > > > > > > > > > > > > ??, 29 ??? 2019 ?. ? 08:35, David Holmes > > > > > > > > > > > > > > > >>>: > > > > > > > > Hi Moshe, > > > > > > > > On 29/05/2019 2:15 am, Moshe Zuisman wrote: > > > > > I am trying to build OPEN jdk 11 on cygwin with > > MSVC 2017 > > > > > > > > > > > > > > > _________________________________________________________________________ > > > > > > > > VS 2017 is the official supported compiler for > > building > > > OpenJDK > > > > 11 [1] > > > > and we don't see any issues. What version of the > 11u > > > source are you > > > > trying to compile? > > > > > > > > David > > > > > > > > [1] > > > > > > > https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms > > > > > > > > > > > > > > > > > > > > > > > > *c:\progra~2\mib055~1\2017\profes~1\vc\tools\msvc\1410~1.250\include\exception(366): > > > > > warning C4577: 'noexcept' used with no > > exception handling > > > > mode specified; > > > > > termination on exception is not guaranteed. > Specify > > > > /EHscmake[3]: *** > > > > > [lib/CompileJvm.gmk:151: > > > > > > > > > > > > > > > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_pch.obj] > > > > > Error 1make[3]: *** Waiting for unfinished > > > jobs....make[2]: *** > > > > > [make/Main.gmk:257: hotspot-server-libs] Error > > > 2make[2]: *** > > > > Waiting for > > > > > unfinished jobs....ERROR: Build failed for > > target 'default > > > > > (exploded-image)' in configuration > > > > 'windows-x86_64-normal-server-release' > > > > > (exit code 2)=== Output from failing command(s) > > > repeated here > > > > ===* For > > > > > target > > > > > > > > > > > > > > > hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_pch.obj:BUILD_LIBJVM_pch.cppc:\progra~2\mib055~1\2017\profes~1\vc\tools\msvc\1410~1.250\include\exception(366): > > > > > error C2220: warning treated as error - no > > 'object' file > > > > > > > > > > > > > > > generatedc:\progra~2\mib055~1\2017\profes~1\vc\tools\msvc\1410~1.250\include\exception(366): > > > > > warning C4577: 'noexcept' used with no > > exception handling > > > > mode specified; > > > > > termination on exception is not guaranteed. > > Specify /EHsc > > > > ... (rest of > > > > > output omitted)* All command lines available in > > > > > > > > > > > > > > > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/make-support/failure-logs.=== > > > > > End of repeated output ===No indication of > > failed target > > > > found.Hint: Try > > > > > searching the build log for '] Error'.Hint: See > > > > > doc/building.html#troubleshooting for > > > assistance.make[1]: *** > > > > > > > > > > > > > > > [/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:305: > > > > > main] Error 2make: *** > > > > > > > > > > > > > > > [/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:186: > > > > > default] Error 2* > > > > > > > > > > > > > > > From kim.barrett at oracle.com Sun Jun 2 21:34:11 2019 From: kim.barrett at oracle.com (Kim Barrett) Date: Sun, 2 Jun 2019 17:34:11 -0400 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> Message-ID: <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman wrote: > > Hi David. > I have updated to Visual studio 2017 15.9.12. > Build still fails, while now works much longer and pass much more steps: > > details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > error C2220: warning treated as error -o 'object' file > generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > warning C4305: 'argument': truncation fm 'const intx' to 'double'make[3]: > *** [lib/CompileJvm.gmk:151: > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > Error 1make[3]: *** Waiting for unfinished jobs....make[2]: *** This looks like JDK-8212052, which is marked as fixed in JDK 11.0.2. From david.holmes at oracle.com Mon Jun 3 06:47:11 2019 From: david.holmes at oracle.com (David Holmes) Date: Mon, 3 Jun 2019 16:47:11 +1000 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> Message-ID: <8aebd453-7f98-4d9e-9a98-7ba056e768ce@oracle.com> On 3/06/2019 6:20 am, Moshe Zuisman wrote: > Hi David. > I have updated to Visual studio 2017 15.9.12. > Build still fails, while now works much longer and pass much more steps: > > /$ make > Building target 'default (exploded-image)' in configuration > 'windows-x86_64-normal-server-release' > Compiling 8 files for BUILD_TOOLS_LANGTOOLS > Creating hotspot/variant-server/tools/adlc/adlc.exe from 13 file(s) > Compiling 2 files for BUILD_JVMTI_TOOLS > Compiling 1 files for BUILD_JFR_TOOLS > Compiling 12 properties into resource bundles for jdk.jdeps > Compiling 7 properties into resource bundles for jdk.jshell > Warning: No mercurial configuration present and no .src-rev Not sure how significant that is. > Parsing 2 properties into enum-like class for jdk.compiler > Compiling 13 properties into resource bundles for jdk.javadoc > Compiling 19 properties into resource bundles for jdk.compiler > Compiling 117 files for BUILD_java.compiler.interim > Compiling 394 files for BUILD_jdk.compiler.interim > Creating support/modules_libs/java.base/server/jvm.dll from 855 file(s) > Creating hotspot/variant-server/libjvm/gtest/jvm.dll from 91 file(s) > Creating hotspot/variant-server/libjvm/gtest/gtestLauncher.exe from 1 > file(s) > Compiling 299 files for BUILD_jdk.javadoc.interim > Compiling 162 files for BUILD_TOOLS_JDK > Sjavac server failed to initialize: No port file values materialized. > Giving up after 60369 ms Sorry I have no idea how sjavac is initialized or why it might fail to initialize. Hopefully Erik or Tim can chime in. > Process output: > > Process exit code: 0 > IOException caught during compilation: Server failed to initialize: No > port file values materialized. Giving up after 60369 ms > make[3]: *** [CompileToolsJdk.gmk:48: > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/buildtoo/jdk_tools_classes/_the.BUILD_TOOLS_JDK_batch] > Error 1 > make[2]: *** [make/Main.gmk:85: buildtools-jdk] Error 2 > make[2]: *** Waiting for unfinished jobs.... > Compiling 188 files for BUILD_jdk.rmic.interim > Note: Some input files use or override a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > error C2220: warning treated as error -o 'object' file generated > c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > warning C4305: 'argument': truncation fm 'const intx' to 'double' > make[3]: *** [lib/CompileJvm.gmk:151: > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] As Kim stated this issue should be fixed already, but I can't readily tell whether the version you are using contains the fix. David ----- > Error 1 > make[3]: *** Waiting for unfinished jobs.... > make[2]: *** [make/Main.gmk:257: hotspot-server-libs] Error 2 > > ERROR: Build failed for target 'default (exploded-image)' in > configuration 'windows-x86_64-normal-server-release' (exit code 2) > > === Output from failing command(s) repeated here === > * For target buildtools_jdk_tools_classes__the.BUILD_TOOLS_JDK_batch: > Sjavac server failed to initialize: No port file values materialized. > Giving up after 60369 ms > Process output: > > Process exit code: 0 > IOException caught during compilation: Server failed to initialize: No > port file values materialized. Giving up after 60369 ms > * For target hotspot_variant-server_libjvm_objs_jvmFlagRangeList.obj: > jvmFlagRangeList.cpp > c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > error C2220: warning treated as error -o 'object' file generated > c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > warning C4305: 'argument': truncation fm 'const intx' to 'double' > ? ?... (rest of output omitted) > > * All command lines available in > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/make-support/ilure-logs. > === End of repeated output === > > No indication of failed target found. > Hint: Try searching the build log for '] Error'. > Hint: See doc/building.html#troubleshooting for assistance. > > make[1]: *** > [/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:305: > main] Error 2 > make: *** > [/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:186: > default] Error 2/ > > ??, 31 ??? 2019 ?. ? 08:47, David Holmes >: > > Hi Moshe, > > Can you update your VS 2017 installation? The only difference I can > spot > is that we are using > > Microsoft Visual Studio 2017 15.9.6 > > with > > Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27026.1 > > while you have: > > Visual Studio 2017 Developer Command Prompt v15.0.26228.86 > > with > > [Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25027 > > David > ----- > > On 31/05/2019 1:55 am, Moshe Zuisman wrote: > > Hi David. I have done it. with same result. > > I have added?--debug-configure flag.. Attaching full configure > output.. > > > > I am stuck with this issue and right now - have no idea - how to > get out > > of this "blind alley"... > > > > ??, 30 ??? 2019 ?. ? 12:46, David Holmes > > >>: > > > >? ? ?Hi Moshe, > > > >? ? ?can you try running configure with --disable-precompiled-headers > > > >? ? ?Thanks, > >? ? ?David > > > >? ? ?On 30/05/2019 6:26 pm, Moshe Zuisman wrote: > >? ? ? > Configuration summary: > >? ? ? > ==================================================== > >? ? ? > The existing configuration has been successfully updated in > >? ? ? > > > > ?/cygdrive/c/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release > >? ? ? > using configure arguments > '--with-boot-jdk=/cygdrive/c/jdk-11.0.3'. > >? ? ? > > >? ? ? > Configuration summary: > >? ? ? > * Debug level: ? ?release > >? ? ? > * HS debug level: product > >? ? ? > * JVM variants: ? server > >? ? ? > * JVM features: ? server: 'aot cds cmsgc compiler1 compiler2 > >? ? ?epsilongc > >? ? ? > g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc > >? ? ?serialgc > >? ? ? > services vm-structs' > >? ? ? > * OpenJDK target: OS: windows, CPU architecture: x86, address > >? ? ?length: 64 > >? ? ? > * Version string: > 11-internal+0-adhoc.ADPRODcuser.jdk11-1ddf9a99e4ad > >? ? ? > (11-internal) > >? ? ? > > >? ? ? > Tools summary: > >? ? ? > * Environment: ? ?cygwin version 3.0.7(0.338/5/3) (root at > >? ? ? > /cygdrive/c/cygwin64) > >? ? ? > * Boot JDK: ? ? ? java version "11.0.3" 2019-04-16 LTS > ?Java(TM) SE > >? ? ? > Runtime Environment 18.9 (build 11.0.3+12-LTS) ?Java > HotSpot(TM) > >? ? ?64-Bit > >? ? ? > Server VM 18.9 (build 11.0.3+12-LTS, mixed mode) ? (at > >? ? ? > /cygdrive/c/jdk-11.0.3) > >? ? ? > * Toolchain: ? ? ?microsoft (Microsoft Visual Studio 2017) > >? ? ? > * C Compiler: ? ? Version 19.10.25027 (at > >? ? ? > > > > ?/cygdrive/c/progra~2/mib055~1/2017/profes~1/vc/tools/msvc/1410~1.250/bin/hostx86/x64/cl) > >? ? ? > * C++ Compiler: ? Version 19.10.25027 (at > >? ? ? > > > > ?/cygdrive/c/progra~2/mib055~1/2017/profes~1/vc/tools/msvc/1410~1.250/bin/hostx86/x64/cl) > >? ? ? > > >? ? ? > Build performance summary: > >? ? ? > * Cores to use: ? 2 > >? ? ? > * Memory limit: ? 8191 MB > >? ? ? > > >? ? ? > WARNING: The result of this configuration has overridden > an older > >? ? ? > configuration. You *should* run 'make clean' to make sure > you get a > >? ? ? > proper build. Failure to do so might result in strange build > >? ? ?problems. > >? ? ? > > >? ? ? > ??, 30 ??? 2019 ?. ? 00:58, David Holmes > > >? ? ?> > >? ? ? > >>>: > >? ? ? > > >? ? ? >? ? ?Can you provide the configuration summary produced by > configure? > >? ? ? > > >? ? ? >? ? ?It's an issue with precompiled headers but I've no > idea what. > >? ? ? > > >? ? ? >? ? ?David > >? ? ? > > >? ? ? >? ? ?On 30/05/2019 5:21 am, Moshe Zuisman wrote: > >? ? ? >? ? ? > I? thought, that may be probleem ressults form some > specific > >? ? ? >? ? ? > configuration on my? machine (for example I have 2 > version of > >? ? ? >? ? ?MSVCc - > >? ? ? >? ? ? > 2012 and 2017. > >? ? ? >? ? ? > So I created clean VmWare Virtual machine and > installed their > >? ? ? >? ? ?only MSVC > >? ? ? >? ? ? > 2017 and cygwin. And tried to build OPEN JDK > theeir. and > >? ? ?got exactly > >? ? ? >? ? ? > same? failure. > >? ? ? >? ? ? > > >? ? ? >? ? ? > ??, 29 ??? 2019 ?. ? 09:40, Moshe Zuisman > >? ? ? > > > >? ? ? >? ? ? > >> > >? ? ? >? ? ? > > > >? ? ? > >>>>: > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ?I am using > >? ? ? >? ? ? > > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 > >? ? ? >? ? ? > > > > ? > >? ? ? >? ? ? > > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ???, 29 ??? 2019 ?. ? 08:35, David Holmes > >? ? ? >? ? ? > > >? ? ? >> > >? ? ? >? ? ? >? ? ? > >? ? ?> > >? ? ? >? ? ? > >? ? ? >>>>: > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ? ? ?Hi Moshe, > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ? ? ?On 29/05/2019 2:15 am, Moshe Zuisman wrote: > >? ? ? >? ? ? >? ? ? ? ? > I am trying to build OPEN jdk 11 on > cygwin with > >? ? ?MSVC 2017 > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?_________________________________________________________________________ > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ? ? ?VS 2017 is the official supported compiler for > >? ? ?building > >? ? ? >? ? ?OpenJDK > >? ? ? >? ? ? >? ? ? ? ?11 [1] > >? ? ? >? ? ? >? ? ? ? ?and we don't see any issues. What version > of the 11u > >? ? ? >? ? ?source are you > >? ? ? >? ? ? >? ? ? ? ?trying to compile? > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ? ? ?David > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ? ? ?[1] > >? ? ? >? ? ? > > > https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms > >? ? ? >? ? ? > > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?*c:\progra~2\mib055~1\2017\profes~1\vc\tools\msvc\1410~1.250\include\exception(366): > >? ? ? >? ? ? >? ? ? ? ? > warning C4577: 'noexcept' used with no > >? ? ?exception handling > >? ? ? >? ? ? >? ? ? ? ?mode specified; > >? ? ? >? ? ? >? ? ? ? ? > termination on exception is not > guaranteed. Specify > >? ? ? >? ? ? >? ? ? ? ?/EHscmake[3]: *** > >? ? ? >? ? ? >? ? ? ? ? > [lib/CompileJvm.gmk:151: > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM_pch.obj] > >? ? ? >? ? ? >? ? ? ? ? > Error 1make[3]: *** Waiting for unfinished > >? ? ? >? ? ?jobs....make[2]: *** > >? ? ? >? ? ? >? ? ? ? ? > [make/Main.gmk:257: hotspot-server-libs] > Error > >? ? ? >? ? ?2make[2]: *** > >? ? ? >? ? ? >? ? ? ? ?Waiting for > >? ? ? >? ? ? >? ? ? ? ? > unfinished jobs....ERROR: Build failed for > >? ? ?target 'default > >? ? ? >? ? ? >? ? ? ? ? > (exploded-image)' in configuration > >? ? ? >? ? ? >? ? ? ? ?'windows-x86_64-normal-server-release' > >? ? ? >? ? ? >? ? ? ? ? > (exit code 2)=== Output from failing > command(s) > >? ? ? >? ? ?repeated here > >? ? ? >? ? ? >? ? ? ? ?===* For > >? ? ? >? ? ? >? ? ? ? ? > target > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_pch.obj:BUILD_LIBJVM_pch.cppc:\progra~2\mib055~1\2017\profes~1\vc\tools\msvc\1410~1.250\include\exception(366): > >? ? ? >? ? ? >? ? ? ? ? > error C2220: warning treated as error - no > >? ? ?'object' file > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?generatedc:\progra~2\mib055~1\2017\profes~1\vc\tools\msvc\1410~1.250\include\exception(366): > >? ? ? >? ? ? >? ? ? ? ? > warning C4577: 'noexcept' used with no > >? ? ?exception handling > >? ? ? >? ? ? >? ? ? ? ?mode specified; > >? ? ? >? ? ? >? ? ? ? ? > termination on exception is not guaranteed. > >? ? ?Specify /EHsc > >? ? ? >? ? ? >? ? ? ? ? ?... (rest of > >? ? ? >? ? ? >? ? ? ? ? > output omitted)* All command lines > available in > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/make-support/failure-logs.=== > >? ? ? >? ? ? >? ? ? ? ? > End of repeated output ===No indication of > >? ? ?failed target > >? ? ? >? ? ? >? ? ? ? ?found.Hint: Try > >? ? ? >? ? ? >? ? ? ? ? > searching the build log for '] > Error'.Hint: See > >? ? ? >? ? ? >? ? ? ? ? > doc/building.html#troubleshooting for > >? ? ? >? ? ?assistance.make[1]: *** > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?[/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:305: > >? ? ? >? ? ? >? ? ? ? ? > main] Error 2make: *** > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?[/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/make/Init.gmk:186: > >? ? ? >? ? ? >? ? ? ? ? > default] Error 2* > >? ? ? >? ? ? >? ? ? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > From nick.gasson at arm.com Mon Jun 3 06:58:39 2019 From: nick.gasson at arm.com (Nick Gasson) Date: Mon, 3 Jun 2019 14:58:39 +0800 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> Message-ID: <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> Hi Kim, > If I'm reading the gcc documentation for __sync_add_and_fetch > correctly, I think the following (completely untested) should work, > and won't cause Andrew to (I think rightly) complain about > type-punning reinterpret_casts. > > Though I wonder if this is a clang bug. (See below.) > > template > struct Atomic::PlatformAdd > : Atomic::AddAndFetch > > { > template > D add_and_fetch(I add_value, D volatile* dest, atomic_memory_order order) const { > // Cast to work around clang pointer arithmetic bug. > return PrimitiveConversions::cast(__sync_add_and_fetch(dest, add_value)); > } > } This fails with: /home/nicgas01/jdk/src/hotspot/share/metaprogramming/primitiveConversions.hpp:162:10: error: invalid use of incomplete type 'struct PrimitiveConversions::Cast' return Cast()(x); ^~~~~~~~~~~~ I think because all the specialisations of PrimitiveConversions are only enabled if T is an integral type and here it's char*? > > The key bit from the documentation is "Operations on pointer arguments > are performed as if the operands were of the uintptr_t type." > > The bug description says this warning only arises with clang. It > seems like clang is overdoing that as-if, and treating it literally as > uintptr_t all the way through to the result type. > I think Clang is actually complaining about the argument types mismatching here. According to the GCC docs the __sync_add_and_fetch prototype looks like: type __sync_add_and_fetch (type *ptr, type value, ...) I guess Clang infers type=char* from the first argument, and complains that the second argument is unsigned long. So Clang gives an error for the following but GCC accepts it: char *ptr; unsigned long val; __sync_add_and_fetch(&ptr, val); Another way round this is to use __atomic_add_fetch instead which both Clang and GCC accept: template D add_and_fetch(I add_value, D volatile* dest, atomic_memory_order order) const { D res = __atomic_add_fetch(dest, add_value, __ATOMIC_RELEASE); FULL_MEM_BARRIER; return res; } > Or don't change the code at all here, and say that clang is not (currently) a supported > compiler for this platform. Yes, that's an option too :-). But we should change the configure script to give an error on --with-toolchain-type=clang on AArch64. Thanks, Nick From zuismanm at gmail.com Mon Jun 3 07:06:18 2019 From: zuismanm at gmail.com (Moshe Zuisman) Date: Mon, 3 Jun 2019 10:06:18 +0300 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> Message-ID: Hi. Probably I do not understand something in source control system of Open JDK projeck. I have gone to : https://hg.openjdk.java.net/jdk/jdk11 and clicked last label: "9 months ago jwilhelm Added tag jdk-11+28 for changeset 76072a077ee1default tip" arrived to: https://hg.openjdk.java.net/jdk/jdk11/rev/1ddf9a99e4ad and downloaded zip with sources. How have I to download latest fixed source of JDK 11.0.2? ??, 3 ???. 2019 ?. ? 00:34, Kim Barrett : > > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman wrote: > > > > Hi David. > > I have updated to Visual studio 2017 15.9.12. > > Build still fails, while now works much longer and pass much more steps: > > > > > details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > error C2220: warning treated as error -o 'object' file > > > generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > warning C4305: 'argument': truncation fm 'const intx' to 'double'make[3]: > > *** [lib/CompileJvm.gmk:151: > > > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > > Error 1make[3]: *** Waiting for unfinished jobs....make[2]: *** > > This looks like JDK-8212052, which is marked as fixed in JDK 11.0.2. > > > From shade at redhat.com Mon Jun 3 07:12:32 2019 From: shade at redhat.com (Aleksey Shipilev) Date: Mon, 3 Jun 2019 09:12:32 +0200 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> Message-ID: <87337dff-6f16-734e-af07-e1e4ec6a7422@redhat.com> On 6/3/19 9:06 AM, Moshe Zuisman wrote: > I have gone to : https://hg.openjdk.java.net/jdk/jdk11 That is not the latest jdk11 source. It is a stabilization tree for jdk11 GA -- notice the last commit there. Up-to-date 11u tree is here: http://hg.openjdk.java.net/jdk-updates/jdk11u -Aleksey From david.holmes at oracle.com Mon Jun 3 07:20:02 2019 From: david.holmes at oracle.com (David Holmes) Date: Mon, 3 Jun 2019 17:20:02 +1000 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> Message-ID: <76e55196-cde1-89a4-c559-3a0b1718e4cf@oracle.com> On 3/06/2019 5:06 pm, Moshe Zuisman wrote: > Hi. > Probably I do not understand something in source control system of Open > JDK projeck. > I have gone to : > https://hg.openjdk.java.net/jdk/jdk11 > and clicked last label: > "9 months ago jwilhelm Added tag jdk-11+28 for changeset > 76072a077ee1default tip" > arrived to: > https://hg.openjdk.java.net/jdk/jdk11/rev/1ddf9a99e4ad > and downloaded zip with sources. Thats JDK 11 GA version. > How have I to download latest fixed source of JDK 11.0.2? 11.0.2 is one of the JDK 11 update releases. You previously indicated that you were using 11u sources at: http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 which seems to be a somewhat arbitrary point in 11u development. If you want a specific release, rather than latest dev sources then use the appropriate tag to update your sources to that level: http://hg.openjdk.java.net/jdk-updates/jdk11u/tags So if you clone http://hg.openjdk.java.net/jdk-updates/jdk11u/ then do: hg update -r jdk-11.0.2-ga that should get you to the final 11.0.2 sources. That all said, the fix Kim was referring to appears to have gone into 11u 3 months before the date of the sources you indicated you were using. Hope that helps. David ----- > > ??, 3 ???. 2019 ?. ? 00:34, Kim Barrett >: > > > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman > wrote: > > > > Hi David. > > I have updated to Visual studio 2017 15.9.12. > > Build still fails, while now works much longer and pass much more > steps: > > > > > details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > error C2220: warning treated as error -o 'object' file > > > generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > warning C4305: 'argument': truncation fm 'const intx' to > 'double'make[3]: > > *** [lib/CompileJvm.gmk:151: > > > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > > Error 1make[3]: *** Waiting for unfinished jobs....make[2]: *** > > This looks like JDK-8212052, which is marked as fixed in JDK 11.0.2. > > From aph at redhat.com Mon Jun 3 08:32:13 2019 From: aph at redhat.com (Andrew Haley) Date: Mon, 3 Jun 2019 09:32:13 +0100 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> Message-ID: <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> On 6/3/19 7:58 AM, Nick Gasson wrote: > >> If I'm reading the gcc documentation for __sync_add_and_fetch >> correctly, I think the following (completely untested) should work, >> and won't cause Andrew to (I think rightly) complain about >> type-punning reinterpret_casts. >> >> Though I wonder if this is a clang bug. (See below.) It's arguably a mistake in the GCC documentation, but adding two pointers is not well defined whereas adding a pointer and an integer is. >> template >> struct Atomic::PlatformAdd >> : Atomic::AddAndFetch > >> { >> template >> D add_and_fetch(I add_value, D volatile* dest, atomic_memory_order order) const { >> // Cast to work around clang pointer arithmetic bug. >> return PrimitiveConversions::cast(__sync_add_and_fetch(dest, add_value)); >> } >> } > > This fails with: > > /home/nicgas01/jdk/src/hotspot/share/metaprogramming/primitiveConversions.hpp:162:10: error: invalid use of incomplete type 'struct PrimitiveConversions::Cast' > return Cast()(x); > ^~~~~~~~~~~~ > > I think because all the specialisations of PrimitiveConversions are only > enabled if T is an integral type and here it's char*? > >> >> The key bit from the documentation is "Operations on pointer arguments >> are performed as if the operands were of the uintptr_t type." >> >> The bug description says this warning only arises with clang. It >> seems like clang is overdoing that as-if, and treating it literally as >> uintptr_t all the way through to the result type. >> > > I think Clang is actually complaining about the argument types > mismatching here. According to the GCC docs the __sync_add_and_fetch > prototype looks like: > > type __sync_add_and_fetch (type *ptr, type value, ...) > > I guess Clang infers type=char* from the first argument, and complains > that the second argument is unsigned long. So Clang gives an error for > the following but GCC accepts it: > > char *ptr; > unsigned long val; > __sync_add_and_fetch(&ptr, val); > > Another way round this is to use __atomic_add_fetch instead which both > Clang and GCC accept: > > template > D add_and_fetch(I add_value, D volatile* dest, atomic_memory_order order) const { > D res = __atomic_add_fetch(dest, add_value, __ATOMIC_RELEASE); > FULL_MEM_BARRIER; > return res; > } I could live with that. >> Or don't change the code at all here, and say that clang is not >> (currently) a supported compiler for this platform. > > Yes, that's an option too :-). But we should change the configure script > to give an error on --with-toolchain-type=clang on AArch64. I don't think there's any need to boycott the whole compiler because of this bug. It would make more sense to try to get clang fixed. Maybe for now put the cast in #ifdef CLANG ? -- Andrew Haley Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671 From robin.westberg at oracle.com Mon Jun 3 08:36:40 2019 From: robin.westberg at oracle.com (Robin Westberg) Date: Mon, 3 Jun 2019 10:36:40 +0200 Subject: RFR: 8223678: Add Visual Studio Code workspace generation support (for native code) In-Reply-To: References: <01BD2934-BC92-42A4-B6DC-C977359F0FA2@oracle.com> <48ff6be3-b2f2-68e2-8082-abba17d0dcc2@oracle.com> Message-ID: <04B1C957-E7D6-4516-9543-8210BC8593EB@oracle.com> Hi Erik, > On 31 May 2019, at 18:15, Erik Joelsson wrote: > > Hello Robin, > > On 2019-05-31 05:26, Robin Westberg wrote: >> Hi Erik, >> >>> On 29 May 2019, at 17:22, Erik Joelsson wrote: >>> >>> Thanks, looks good! >> Thanks for reviewing! Unfortunately I had to do a few more general changes to get the ?ccls" indexer working properly as well, hope you don?t mind taking another look: >> >> Webrevs: >> - Full: http://cr.openjdk.java.net/~rwestberg/8223678/webrev.03/ >> - Inc: http://cr.openjdk.java.net/~rwestberg/8223678/webrev.02-03/ > > Looks good! > > I sure appreciate adding tests when modifying the hairier utility macros. Thanks again for reviewing! I did a small tweak to the settings of one of the optional indexers (ccls), perhaps not something that needs a detailed review, but here?s the final version that I?m thinking of pushing: Webrev: - Full: https://cr.openjdk.java.net/~rwestberg/8223678/webrev.04/ - Inc: http://cr.openjdk.java.net/~rwestberg/8223678/webrev.03-04/ Best regards, Robin > > /Erik > >> Best regards, >> Robin >> >>> /Erik >>> >>> On 2019-05-29 06:52, Robin Westberg wrote: >>>> Hi Erik, >>>> >>>> Thanks for taking a look! >>>> >>>>> On 28 May 2019, at 15:52, Erik Joelsson wrote: >>>>> >>>>> Hello Robin, >>>>> >>>>> Looks good. >>>>> >>>>> Adding of ide.md is very nice, but could you try to format it like testing.md and building.md in regards to line lengths? I believe we are trying for 80 chars in those to make them read reasonably in a standard editor. >>>> Sure, did a bit of reflowing and updated some formatting in order to look more like the other .md files. >>>> >>>> Webrevs: >>>> - Full: https://cr.openjdk.java.net/~rwestberg/8223678/webrev.02/ >>>> - Inc: https://cr.openjdk.java.net/~rwestberg/8223678/webrev.01-02/ >>>> >>>> Best regards, >>>> Robin >>>> >>>>> /Erik >>>>> >>>>> On 2019-05-27 09:03, Robin Westberg wrote: >>>>>> Hi all, >>>>>> >>>>>> Please review this change that adds build system support for generating a Visual Studio Code workspace configured for working with the JDK native code. It configures the default C/C++ IntelliSense Engine to allow code completion/navigation and similar features. It also configures two executable targets (gtestLauncher and java) that can be built and debugged from the IDE. >>>>>> >>>>>> The main target is "make vscode-project?, additional information can be found in doc/ide.[md|html]. >>>>>> >>>>>> Issue: >>>>>> https://bugs.openjdk.java.net/browse/JDK-8223678 >>>>>> >>>>>> Webrev: >>>>>> https://cr.openjdk.java.net/~rwestberg/8223678/webrev.01/ >>>>>> >>>>>> Testing: >>>>>> Manual testing on Linux, MacOS and Windows >>>>>> >>>>>> Thanks Erik Joelsson for taking a look at an earlier version of it! >>>>>> >>>>>> Best regards, >>>>>> Robin From nick.gasson at arm.com Mon Jun 3 09:08:45 2019 From: nick.gasson at arm.com (Nick Gasson) Date: Mon, 3 Jun 2019 17:08:45 +0800 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> Message-ID: <94de2466-4b73-7091-17ee-7168114df1ee@arm.com> Hi Andrew, On 03/06/2019 16:32, Andrew Haley wrote: > > I don't think there's any need to boycott the whole compiler because > of this bug. It would make more sense to try to get clang fixed. > > Maybe for now put the cast in #ifdef CLANG ? > I think I'd rather put the __atomic_fetch_add in an #ifdef CLANG? This seems a bit neater than casting the integer argument to a pointer. Did you have any thoughts about os::current_stack_pointer() from my earlier email? Thanks, Nick From aph at redhat.com Mon Jun 3 10:24:04 2019 From: aph at redhat.com (Andrew Haley) Date: Mon, 3 Jun 2019 11:24:04 +0100 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: <94de2466-4b73-7091-17ee-7168114df1ee@arm.com> References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> <94de2466-4b73-7091-17ee-7168114df1ee@arm.com> Message-ID: <0b355166-4bb7-7de2-b30b-9a481aa085a2@redhat.com> On 6/3/19 10:08 AM, Nick Gasson wrote: > Hi Andrew, > > On 03/06/2019 16:32, Andrew Haley wrote: >> >> I don't think there's any need to boycott the whole compiler because >> of this bug. It would make more sense to try to get clang fixed. >> >> Maybe for now put the cast in #ifdef CLANG ? >> > > I think I'd rather put the __atomic_fetch_add in an #ifdef CLANG? This > seems a bit neater than casting the integer argument to a pointer. I guess the solution which uses __atomic_add_fetch instead is best. > Did you have any thoughts about os::current_stack_pointer() from my > earlier email? We need to know what it's used for to know which solution is right. I'm guessing the primary use case is asynchronous runtime stack probes, used by debugging tools. -- Andrew Haley Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671 From nick.gasson at arm.com Mon Jun 3 10:36:10 2019 From: nick.gasson at arm.com (Nick Gasson) Date: Mon, 3 Jun 2019 18:36:10 +0800 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: <0b355166-4bb7-7de2-b30b-9a481aa085a2@redhat.com> References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> <94de2466-4b73-7091-17ee-7168114df1ee@arm.com> <0b355166-4bb7-7de2-b30b-9a481aa085a2@redhat.com> Message-ID: Hi Andrew, > > We need to know what it's used for to know which solution is right. I'm > guessing the primary use case is asynchronous runtime stack probes, used > by debugging tools. > Yes, we also have os::stack_shadow_pages_available() which uses it to calculate how much space there is between the current SP and the end of the stack. In this case I think it's ok as long as we don't return a value that's *above* the actual stack pointer. And os::current_frame(), which constructs a `frame' object using the FP of the caller, but the SP will point into the frame of os::current_frame(), so it seems it's already inaccurate. There's also a comment in os_linux.cpp that says "Don't use os::current_stack_pointer(), as its result can be slightly below current stack pointer". So I'm wondering if we can simplify this a lot and use __builtin_frame_address(0) which will give us the FP in os::current_stack_pointer (ought to be the caller's SP - 16). Zero does this currently. And maybe we can replace _get_previous_fp() with __builtin_frame_address(1)? Thanks, Nick From aph at redhat.com Mon Jun 3 11:03:53 2019 From: aph at redhat.com (Andrew Haley) Date: Mon, 3 Jun 2019 12:03:53 +0100 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> <94de2466-4b73-7091-17ee-7168114df1ee@arm.com> <0b355166-4bb7-7de2-b30b-9a481aa085a2@redhat.com> Message-ID: Hi, On 6/3/19 11:36 AM, Nick Gasson wrote: > >> We need to know what it's used for to know which solution is right. I'm >> guessing the primary use case is asynchronous runtime stack probes, used >> by debugging tools. >> > > Yes, we also have os::stack_shadow_pages_available() which uses it to > calculate how much space there is between the current SP and the end of > the stack. In this case I think it's ok as long as we don't return a > value that's *above* the actual stack pointer. And os::current_frame(), > which constructs a `frame' object using the FP of the caller, but the SP > will point into the frame of os::current_frame(), so it seems it's > already inaccurate. Eww. > There's also a comment in os_linux.cpp that says "Don't use > os::current_stack_pointer(), as its result can be slightly below current > stack pointer". So I'm wondering if we can simplify this a lot and use > __builtin_frame_address(0) which will give us the FP in > os::current_stack_pointer (ought to be the caller's SP - 16). Zero does > this currently. And maybe we can replace _get_previous_fp() with > __builtin_frame_address(1)? Let's make os::current_stack_pointer() noinline, then make it return __builtin_frame_address(0). -- Andrew Haley Java Platform Lead Engineer Red Hat UK Ltd. https://keybase.io/andrewhaley EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671 From erik.joelsson at oracle.com Mon Jun 3 15:52:01 2019 From: erik.joelsson at oracle.com (Erik Joelsson) Date: Mon, 3 Jun 2019 08:52:01 -0700 Subject: RFR: 8223678: Add Visual Studio Code workspace generation support (for native code) In-Reply-To: <04B1C957-E7D6-4516-9543-8210BC8593EB@oracle.com> References: <01BD2934-BC92-42A4-B6DC-C977359F0FA2@oracle.com> <48ff6be3-b2f2-68e2-8082-abba17d0dcc2@oracle.com> <04B1C957-E7D6-4516-9543-8210BC8593EB@oracle.com> Message-ID: <609c5ce5-b9fa-fd7f-2a63-322a219c60ec@oracle.com> Looks good. /Erik On 2019-06-03 01:36, Robin Westberg wrote: > Hi Erik, > >> On 31 May 2019, at 18:15, Erik Joelsson wrote: >> >> Hello Robin, >> >> On 2019-05-31 05:26, Robin Westberg wrote: >>> Hi Erik, >>> >>>> On 29 May 2019, at 17:22, Erik Joelsson wrote: >>>> >>>> Thanks, looks good! >>> Thanks for reviewing! Unfortunately I had to do a few more general changes to get the ?ccls" indexer working properly as well, hope you don?t mind taking another look: >>> >>> Webrevs: >>> - Full: http://cr.openjdk.java.net/~rwestberg/8223678/webrev.03/ >>> - Inc: http://cr.openjdk.java.net/~rwestberg/8223678/webrev.02-03/ >> Looks good! >> >> I sure appreciate adding tests when modifying the hairier utility macros. > Thanks again for reviewing! > > I did a small tweak to the settings of one of the optional indexers (ccls), perhaps not something that needs a detailed review, but here?s the final version that I?m thinking of pushing: > > Webrev: > - Full: https://cr.openjdk.java.net/~rwestberg/8223678/webrev.04/ > - Inc: http://cr.openjdk.java.net/~rwestberg/8223678/webrev.03-04/ > > Best regards, > Robin > >> /Erik >> >>> Best regards, >>> Robin >>> >>>> /Erik >>>> >>>> On 2019-05-29 06:52, Robin Westberg wrote: >>>>> Hi Erik, >>>>> >>>>> Thanks for taking a look! >>>>> >>>>>> On 28 May 2019, at 15:52, Erik Joelsson wrote: >>>>>> >>>>>> Hello Robin, >>>>>> >>>>>> Looks good. >>>>>> >>>>>> Adding of ide.md is very nice, but could you try to format it like testing.md and building.md in regards to line lengths? I believe we are trying for 80 chars in those to make them read reasonably in a standard editor. >>>>> Sure, did a bit of reflowing and updated some formatting in order to look more like the other .md files. >>>>> >>>>> Webrevs: >>>>> - Full: https://cr.openjdk.java.net/~rwestberg/8223678/webrev.02/ >>>>> - Inc: https://cr.openjdk.java.net/~rwestberg/8223678/webrev.01-02/ >>>>> >>>>> Best regards, >>>>> Robin >>>>> >>>>>> /Erik >>>>>> >>>>>> On 2019-05-27 09:03, Robin Westberg wrote: >>>>>>> Hi all, >>>>>>> >>>>>>> Please review this change that adds build system support for generating a Visual Studio Code workspace configured for working with the JDK native code. It configures the default C/C++ IntelliSense Engine to allow code completion/navigation and similar features. It also configures two executable targets (gtestLauncher and java) that can be built and debugged from the IDE. >>>>>>> >>>>>>> The main target is "make vscode-project?, additional information can be found in doc/ide.[md|html]. >>>>>>> >>>>>>> Issue: >>>>>>> https://bugs.openjdk.java.net/browse/JDK-8223678 >>>>>>> >>>>>>> Webrev: >>>>>>> https://cr.openjdk.java.net/~rwestberg/8223678/webrev.01/ >>>>>>> >>>>>>> Testing: >>>>>>> Manual testing on Linux, MacOS and Windows >>>>>>> >>>>>>> Thanks Erik Joelsson for taking a look at an earlier version of it! >>>>>>> >>>>>>> Best regards, >>>>>>> Robin From erik.joelsson at oracle.com Mon Jun 3 22:55:43 2019 From: erik.joelsson at oracle.com (Erik Joelsson) Date: Mon, 3 Jun 2019 15:55:43 -0700 Subject: RFR: JDK-8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling Message-ID: This is a fix for a problem brought up on this list [1]. The main issue is that when cross compiling, and creating a buildjdk during the build, the UnixConstants.java cannot necessarily be reused between the target JDK and the buildjdk. While investigating this, I came to the conclusion that we really should stop trying to reuse anything between the buildjdk and target JDK. It's just becoming too complex to maintain (due to the intricate interactions with the interim-image, generate-link-opt-data and exploded-image-optimize targets, causing circular dependencies and endless incremental rebuilds). So this fix simply removes all the reuse of buildtools, gensrc and java compilation when creating a buildjdk. Hopefully this is making Main.gmk a bit less convoluted. While working on this, I came up with the idea of adding a log prefix functionality, to more easily discern which log lines were printed by the buildjdk build and which were part of the normal build. I liked this a lot so including that in the same fix, and applied it to the bootcycle build as well. Bug: https://bugs.openjdk.java.net/browse/JDK-8217739 Webrev: http://cr.openjdk.java.net/~erikj/8217739/webrev.01/index.html /Erik [1] http://mail.openjdk.java.net/pipermail/build-dev/2019-January/024729.html From kim.barrett at oracle.com Tue Jun 4 03:03:30 2019 From: kim.barrett at oracle.com (Kim Barrett) Date: Mon, 3 Jun 2019 23:03:30 -0400 Subject: RFR: 8224851: AArch64: fix warnings and errors with Clang and GCC 8.3 In-Reply-To: <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> References: <5c150ab2-e99f-e2b7-9b9f-bd80ac1d0d2c@arm.com> <4890e74d-8ee0-3f0a-1fc0-5bce82dc7663@redhat.com> <04beb363-f4a4-e509-dd90-9d2df1a044d5@arm.com> <57D13B0D-5362-4975-871D-7E9F3D3D1B37@oracle.com> <0869b095-caa6-dbb1-6364-bb7cf6abaf1c@arm.com> <9657115c-3b44-5812-c5d6-c96edf852cd3@redhat.com> Message-ID: <8F37D029-DE22-4CE5-981C-A87CB97C7690@oracle.com> > On Jun 3, 2019, at 4:32 AM, Andrew Haley wrote: > > On 6/3/19 7:58 AM, Nick Gasson wrote: >> >>> If I'm reading the gcc documentation for __sync_add_and_fetch >>> correctly, I think the following (completely untested) should work, >>> and won't cause Andrew to (I think rightly) complain about >>> type-punning reinterpret_casts. >>> >>> Though I wonder if this is a clang bug. (See below.) > > It's arguably a mistake in the GCC documentation, but adding two > pointers is not well defined whereas adding a pointer and an integer > is. Yes, the gcc documentation seems to be a bit botched here. But there is also the semantic description, e.g. for __sync_OP_and_fetch: { *ptr OP= value; return *ptr; } >> Another way round this is to use __atomic_add_fetch instead which both >> Clang and GCC accept: >> >> template >> D add_and_fetch(I add_value, D volatile* dest, atomic_memory_order order) const { >> D res = __atomic_add_fetch(dest, add_value, __ATOMIC_RELEASE); >> FULL_MEM_BARRIER; >> return res; >> } > > I could live with that. The __atomic_xxx operations seem to have the same documentation issues. It's strange that clang would get one set right and the other wrong. But okay, using them seems like a good workaround. And maybe someday the order argument will be used to select the barriers to use. From tim.bell at oracle.com Tue Jun 4 14:53:40 2019 From: tim.bell at oracle.com (Tim Bell) Date: Tue, 04 Jun 2019 07:53:40 -0700 Subject: RFR: JDK-8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling In-Reply-To: References: Message-ID: <5CF685F4.3050305@oracle.com> Erik: Looks good. Tim > This is a fix for a problem brought up on this list [1]. The main issue > is that when cross compiling, and creating a buildjdk during the build, > the UnixConstants.java cannot necessarily be reused between the target > JDK and the buildjdk. While investigating this, I came to the conclusion > that we really should stop trying to reuse anything between the buildjdk > and target JDK. It's just becoming too complex to maintain (due to the > intricate interactions with the interim-image, generate-link-opt-data > and exploded-image-optimize targets, causing circular dependencies and > endless incremental rebuilds). > > So this fix simply removes all the reuse of buildtools, gensrc and java > compilation when creating a buildjdk. Hopefully this is making Main.gmk > a bit less convoluted. > > While working on this, I came up with the idea of adding a log prefix > functionality, to more easily discern which log lines were printed by > the buildjdk build and which were part of the normal build. I liked this > a lot so including that in the same fix, and applied it to the bootcycle > build as well. > > Bug: https://bugs.openjdk.java.net/browse/JDK-8217739 > > Webrev: http://cr.openjdk.java.net/~erikj/8217739/webrev.01/index.html > > /Erik > > [1] > http://mail.openjdk.java.net/pipermail/build-dev/2019-January/024729.html From erik.joelsson at oracle.com Tue Jun 4 16:00:17 2019 From: erik.joelsson at oracle.com (Erik Joelsson) Date: Tue, 4 Jun 2019 09:00:17 -0700 Subject: RFR: JDK-8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling In-Reply-To: <5CF685F4.3050305@oracle.com> References: <5CF685F4.3050305@oracle.com> Message-ID: Thanks! During testing, I found an intermittent race issue. The command line that runs the interim langtools version of javac still always points to the buildtools/interim-langtools dir of the normal build. This variable also needs to be rewritten in buildjdk-spec.gmk.in. New webrev, only changed in buildjdk-spec.gmk.in: http://cr.openjdk.java.net/~erikj/8217739/webrev.02/ /Erik On 2019-06-04 07:53, Tim Bell wrote: > Erik: > > Looks good. > > Tim > >> This is a fix for a problem brought up on this list [1]. The main issue >> is that when cross compiling, and creating a buildjdk during the build, >> the UnixConstants.java cannot necessarily be reused between the target >> JDK and the buildjdk. While investigating this, I came to the conclusion >> that we really should stop trying to reuse anything between the buildjdk >> and target JDK. It's just becoming too complex to maintain (due to the >> intricate interactions with the interim-image, generate-link-opt-data >> and exploded-image-optimize targets, causing circular dependencies and >> endless incremental rebuilds). >> >> So this fix simply removes all the reuse of buildtools, gensrc and java >> compilation when creating a buildjdk. Hopefully this is making Main.gmk >> a bit less convoluted. >> >> While working on this, I came up with the idea of adding a log prefix >> functionality, to more easily discern which log lines were printed by >> the buildjdk build and which were part of the normal build. I liked this >> a lot so including that in the same fix, and applied it to the bootcycle >> build as well. >> >> Bug: https://bugs.openjdk.java.net/browse/JDK-8217739 >> >> Webrev: http://cr.openjdk.java.net/~erikj/8217739/webrev.01/index.html >> >> /Erik >> >> [1] >> http://mail.openjdk.java.net/pipermail/build-dev/2019-January/024729.html >> > > > From zuismanm at gmail.com Tue Jun 4 16:20:39 2019 From: zuismanm at gmail.com (Moshe Zuisman) Date: Tue, 4 Jun 2019 19:20:39 +0300 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: <76e55196-cde1-89a4-c559-3a0b1718e4cf@oracle.com> References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> <76e55196-cde1-89a4-c559-3a0b1718e4cf@oracle.com> Message-ID: Hi. Thank for your recomendation! Although I did not success to run "hg update -r jdk-11.0.2-ga" - got : "abort: no repository found in '/cygdrive/c/jdk11u-11.0.2-ga' (.hg not found)!" But since I from begining cloned jdk-11.0.2 label form site - I suppose it gives equavalent result. And finally I was able to pass compilation (make) But "make test" fails any where: to get it clear form begening - I donladed latest stabel jtreg and configured with it: ./configure --with-jtreg=/cygdrive/c/jtreg *$ make testBuilding target 'test' in configuration 'windows-x86_64-normal-server-release'Warning: No mercurial configuration present and no .src-revCompiling 31 files for BUILD_JRTFSCompiling 27 files for BUILD_FAILURE_HANDLERCreating support/test/failure_handler/timeoutHandler.dll from 1 file(s)Creating support/modules_libs/java.base/jrt-fs.jarc:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: error: no suitable method found for save(Map) rp.save(map); ^ method InterviewParameters.save(File) is not applicable (argument mismatch; Map cannot be converted to File) method InterviewParameters.save(Map) is not applicable (argument mismatch; Map cannot be converted to Map) 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.Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output1 errormake[3]: *** [BuildFailureHandler.gmk:54: /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/support/test/failure_handler/classes/_the.BUILD_FAILURE_HANDLER_batch] Error 1make[2]: *** [make/Main.gmk:516: build-test-failure-handler] Error 2make[2]: *** Waiting for unfinished jobs....ERROR: Build failed for target 'test' in configuration 'windows-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:c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: error: no suitable method found for save(Map) rp.save(map); ^ method InterviewParameters.save(File) is not applicable (argument mismatch; Map cannot be converted to File) method InterviewParameters.save(Map) is not applicable (argument mismatch; Map cannot be converted to Map) 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 /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/make-support/failure-logs.=== End of repeated output ===No indication of failed target found.Hint: Try searching the build log for '] Error'.Hint: See doc/building.html#troubleshooting for assistance.make[1]: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:305: main] Error 2make: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:186: test] Error 2* ??, 3 ???. 2019 ?. ? 10:20, David Holmes : > On 3/06/2019 5:06 pm, Moshe Zuisman wrote: > > Hi. > > Probably I do not understand something in source control system of Open > > JDK projeck. > > I have gone to : > > https://hg.openjdk.java.net/jdk/jdk11 > > and clicked last label: > > "9 months ago jwilhelm Added tag jdk-11+28 for changeset > > 76072a077ee1default tip" > > arrived to: > > https://hg.openjdk.java.net/jdk/jdk11/rev/1ddf9a99e4ad > > and downloaded zip with sources. > > Thats JDK 11 GA version. > > > How have I to download latest fixed source of JDK 11.0.2? > > 11.0.2 is one of the JDK 11 update releases. You previously indicated > that you were using 11u sources at: > > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 > > which seems to be a somewhat arbitrary point in 11u development. If you > want a specific release, rather than latest dev sources then use the > appropriate tag to update your sources to that level: > > http://hg.openjdk.java.net/jdk-updates/jdk11u/tags > > So if you clone > > http://hg.openjdk.java.net/jdk-updates/jdk11u/ > > then do: > > hg update -r jdk-11.0.2-ga > > that should get you to the final 11.0.2 sources. > > That all said, the fix Kim was referring to appears to have gone into > 11u 3 months before the date of the sources you indicated you were using. > > Hope that helps. > > David > ----- > > > > > ??, 3 ???. 2019 ?. ? 00:34, Kim Barrett > >: > > > > > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman > > wrote: > > > > > > Hi David. > > > I have updated to Visual studio 2017 15.9.12. > > > Build still fails, while now works much longer and pass much more > > steps: > > > > > > > > > details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > > error C2220: warning treated as error -o 'object' file > > > > > > generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > > warning C4305: 'argument': truncation fm 'const intx' to > > 'double'make[3]: > > > *** [lib/CompileJvm.gmk:151: > > > > > > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > > > Error 1make[3]: *** Waiting for unfinished jobs....make[2]: *** > > > > This looks like JDK-8212052, which is marked as fixed in JDK 11.0.2. > > > > > From erik.joelsson at oracle.com Tue Jun 4 21:53:10 2019 From: erik.joelsson at oracle.com (Erik Joelsson) Date: Tue, 4 Jun 2019 14:53:10 -0700 Subject: RFR: JDK-8209381: Default CDS classlist generation should run with an explicit locale setting Message-ID: Hello, Please review this fix for the default CDS classlist generation. This patch adds an explicit English locale to the generation command to make the build less dependent on the locale it is running in, and produce the same classlist regardless. Thanks to Ioi who helped me verify that the patch actually works. Bug: https://bugs.openjdk.java.net/browse/JDK-8209381 Webrev: http://cr.openjdk.java.net/~erikj/8209381/webrev.01/index.html /Erik From david.holmes at oracle.com Tue Jun 4 23:25:20 2019 From: david.holmes at oracle.com (David Holmes) Date: Wed, 5 Jun 2019 09:25:20 +1000 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> <76e55196-cde1-89a4-c559-3a0b1718e4cf@oracle.com> Message-ID: <22acd655-89ff-0437-daf1-613f4a00f8b9@oracle.com> On 5/06/2019 2:20 am, Moshe Zuisman wrote: > Hi. Thank for your recomendation! > Although I did not success to run "hg update -r jdk-11.0.2-ga" - got : > "abort: no repository found in '/cygdrive/c/jdk11u-11.0.2-ga' (.hg not > found)!" I don't know how you are "cloning" things but you are not getting an actual mercurial repository out of the process! > But since I from begining cloned?jdk-11.0.2 label form site - I suppose > it gives equavalent result. > > And finally I was able to pass compilation (make) > But "make test" fails any where: > to get it clear form begening - I donladed latest stabel jtreg and > configured with it: > ?./configure --with-jtreg=/cygdrive/c/jtreg Latest jtreg may not be suitable for 11u. The specified version (make/conf/jib-profiles.js) is 4.2-b12 David ----- > /$ make test > Building target 'test' in configuration > 'windows-x86_64-normal-server-release' > Warning: No mercurial configuration present and no .src-rev > Compiling 31 files for BUILD_JRTFS > Compiling 27 files for BUILD_FAILURE_HANDLER > Creating support/test/failure_handler/timeoutHandler.dll from 1 file(s) > Creating support/modules_libs/java.base/jrt-fs.jar > c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: > error: no suitable method found for save(Map) > ? ? ? ? rp.save(map); > ? ? ? ? ? ^ > ? ? method InterviewParameters.save(File) is not applicable > ? ? ? (argument mismatch; Map cannot be converted to File) > ? ? method InterviewParameters.save(Map) is not applicable > ? ? ? (argument mismatch; Map cannot be converted to > Map) > ? 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. > Note: Some messages have been simplified; recompile with -Xdiags:verbose > to get full output > 1 error > make[3]: *** [BuildFailureHandler.gmk:54: > /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/support/test/failure_handler/classes/_the.BUILD_FAILURE_HANDLER_batch] > Error 1 > make[2]: *** [make/Main.gmk:516: build-test-failure-handler] Error 2 > make[2]: *** Waiting for unfinished jobs.... > > ERROR: Build failed for target 'test' in configuration > 'windows-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: > c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: > error: no suitable method found for save(Map) > ? ? ? ? rp.save(map); > ? ? ? ? ? ^ > ? ? method InterviewParameters.save(File) is not applicable > ? ? ? (argument mismatch; Map cannot be converted to File) > ? ? method InterviewParameters.save(Map) is not applicable > ? ? ? (argument mismatch; Map cannot be converted to > Map) > ? 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 > /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/make-support/failure-logs. > === End of repeated output === > > No indication of failed target found. > Hint: Try searching the build log for '] Error'. > Hint: See doc/building.html#troubleshooting for assistance. > > make[1]: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:305: main] Error 2 > make: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:186: test] Error 2 > / > > ??, 3 ???. 2019 ?. ? 10:20, David Holmes >: > > On 3/06/2019 5:06 pm, Moshe Zuisman wrote: > > Hi. > > Probably I do not understand something in source control system > of Open > > JDK projeck. > > I have gone to : > > https://hg.openjdk.java.net/jdk/jdk11 > > and clicked last label: > > "9 months ago jwilhelm Added tag jdk-11+28 for changeset > > 76072a077ee1default tip" > > arrived to: > > https://hg.openjdk.java.net/jdk/jdk11/rev/1ddf9a99e4ad > > and downloaded zip with sources. > > Thats JDK 11 GA version. > > > How have I to download latest fixed source of JDK 11.0.2? > > 11.0.2 is one of the JDK 11 update releases. You previously indicated > that you were using 11u sources at: > > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 > > which seems to be a somewhat arbitrary point in 11u development. If you > want a specific release, rather than latest dev sources then use the > appropriate tag to update your sources to that level: > > http://hg.openjdk.java.net/jdk-updates/jdk11u/tags > > So if you clone > > http://hg.openjdk.java.net/jdk-updates/jdk11u/ > > then do: > > hg update -r jdk-11.0.2-ga > > that should get you to the final 11.0.2 sources. > > That all said, the fix Kim was referring to appears to have gone into > 11u 3 months before the date of the sources you indicated you were > using. > > Hope that helps. > > David > ----- > > > > > ??, 3 ???. 2019 ?. ? 00:34, Kim Barrett > > >>: > > > >? ? ? > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman > > >? ? ?>> wrote: > >? ? ? > > >? ? ? > Hi David. > >? ? ? > I have updated to Visual studio 2017 15.9.12. > >? ? ? > Build still fails, while now works much longer and pass > much more > >? ? ?steps: > >? ? ? > > >? ? ? > > > > ?details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > >? ? ? > error C2220: warning treated as error -o 'object' file > >? ? ? > > > > ?generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > >? ? ? > warning C4305: 'argument': truncation fm 'const intx' to > >? ? ?'double'make[3]: > >? ? ? > *** [lib/CompileJvm.gmk:151: > >? ? ? > > > > ?/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > >? ? ? > Error 1make[3]: *** Waiting for unfinished > jobs....make[2]: *** > > > >? ? ?This looks like JDK-8212052, which is marked as fixed in JDK > 11.0.2. > > > > > From IOI.LAM at ORACLE.COM Tue Jun 4 23:59:02 2019 From: IOI.LAM at ORACLE.COM (Ioi Lam) Date: Tue, 4 Jun 2019 16:59:02 -0700 Subject: RFR: JDK-8209381: Default CDS classlist generation should run with an explicit locale setting In-Reply-To: References: Message-ID: Looks good! Thanks for the patch. Ioi > On Jun 4, 2019, at 2:53 PM, Erik Joelsson wrote: > > Hello, > > Please review this fix for the default CDS classlist generation. This patch adds an explicit English locale to the generation command to make the build less dependent on the locale it is running in, and produce the same classlist regardless. > > Thanks to Ioi who helped me verify that the patch actually works. > > Bug: https://bugs.openjdk.java.net/browse/JDK-8209381 > > Webrev: http://cr.openjdk.java.net/~erikj/8209381/webrev.01/index.html > > /Erik > From tim.bell at oracle.com Wed Jun 5 00:10:39 2019 From: tim.bell at oracle.com (Tim Bell) Date: Tue, 04 Jun 2019 17:10:39 -0700 Subject: RFR: JDK-8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling In-Reply-To: References: <5CF685F4.3050305@oracle.com> Message-ID: <5CF7087F.2020702@oracle.com> Erik: OK - version 2 looks good. Tim > Thanks! > > During testing, I found an intermittent race issue. The command line > that runs the interim langtools version of javac still always points to > the buildtools/interim-langtools dir of the normal build. This variable > also needs to be rewritten in buildjdk-spec.gmk.in. New webrev, only > changed in buildjdk-spec.gmk.in: > > http://cr.openjdk.java.net/~erikj/8217739/webrev.02/ > > /Erik > > On 2019-06-04 07:53, Tim Bell wrote: >> Erik: >> >> Looks good. >> >> Tim >> >>> This is a fix for a problem brought up on this list [1]. The main issue >>> is that when cross compiling, and creating a buildjdk during the build, >>> the UnixConstants.java cannot necessarily be reused between the target >>> JDK and the buildjdk. While investigating this, I came to the conclusion >>> that we really should stop trying to reuse anything between the buildjdk >>> and target JDK. It's just becoming too complex to maintain (due to the >>> intricate interactions with the interim-image, generate-link-opt-data >>> and exploded-image-optimize targets, causing circular dependencies and >>> endless incremental rebuilds). >>> >>> So this fix simply removes all the reuse of buildtools, gensrc and java >>> compilation when creating a buildjdk. Hopefully this is making Main.gmk >>> a bit less convoluted. >>> >>> While working on this, I came up with the idea of adding a log prefix >>> functionality, to more easily discern which log lines were printed by >>> the buildjdk build and which were part of the normal build. I liked this >>> a lot so including that in the same fix, and applied it to the bootcycle >>> build as well. >>> >>> Bug: https://bugs.openjdk.java.net/browse/JDK-8217739 >>> >>> Webrev: http://cr.openjdk.java.net/~erikj/8217739/webrev.01/index.html >>> >>> /Erik >>> >>> [1] >>> http://mail.openjdk.java.net/pipermail/build-dev/2019-January/024729.html >>> >> >> >> From tim.bell at oracle.com Wed Jun 5 00:14:15 2019 From: tim.bell at oracle.com (Tim Bell) Date: Tue, 04 Jun 2019 17:14:15 -0700 Subject: RFR: JDK-8209381: Default CDS classlist generation should run with an explicit locale setting In-Reply-To: References: Message-ID: <5CF70957.9070806@oracle.com> Erik: Looks good to me as well. Tim On 06/04/19 16:59, Ioi Lam wrote: > Looks good! Thanks for the patch. > > Ioi > >> On Jun 4, 2019, at 2:53 PM, Erik Joelsson wrote: >> >> Hello, >> >> Please review this fix for the default CDS classlist generation. This patch adds an explicit English locale to the generation command to make the build less dependent on the locale it is running in, and produce the same classlist regardless. >> >> Thanks to Ioi who helped me verify that the patch actually works. >> >> Bug: https://bugs.openjdk.java.net/browse/JDK-8209381 >> >> Webrev: http://cr.openjdk.java.net/~erikj/8209381/webrev.01/index.html >> >> /Erik >> > From aoqi at loongson.cn Wed Jun 5 04:48:43 2019 From: aoqi at loongson.cn (Ao Qi) Date: Wed, 5 Jun 2019 12:48:43 +0800 Subject: RFR: JDK-8217739: Cannot reuse java.base UnixConstants.java from target in BuildJDK when cross compiling In-Reply-To: References: <5CF685F4.3050305@oracle.com> Message-ID: Hi Erik, Thank you a lot for taking care of this. I mainly like your approach. I tested the patch by cross building mips64-zero, by which we found this problem. However, it seems the problem still exists. The reason I found is that UnixConstants.java of buildjdk is generated by cross compiler, so the macro definitions are defined by the target. Here is a preliminary workaround for your reference only (only worked for gcc): $ hg diff make/gensrc/GensrcMisc.gmk diff -r f4df9d4201cc make/gensrc/GensrcMisc.gmk --- a/make/gensrc/GensrcMisc.gmk Tue Jun 04 16:50:25 2019 -0700 +++ b/make/gensrc/GensrcMisc.gmk Wed Jun 05 12:39:43 2019 +0800 @@ -61,6 +61,13 @@ CPP_FLAGS += -nologo endif +ifeq ($(CREATING_BUILDJDK), true) + # Only worked for gcc + TEMP_CPP=gcc -E +else + TEMP_CPP=$(CPP) +endif + # Generate a java source file from a template through the C preprocessor for the # target system. First extract the copyright notice at the start of the file. # Run the preprocessor. Filter out the default compiler stderr output on @@ -71,7 +78,7 @@ define generate-preproc-src $(call MakeDir, $(@D)) ( $(NAWK) '/@@END_COPYRIGHT@@/{exit}1' $< && \ - $(CPP) $(CPP_FLAGS) $(SYSROOT_CFLAGS) $(CFLAGS_JDKLIB) $< \ + $(TEMP_CPP) $(CPP_FLAGS) $(SYSROOT_CFLAGS) $(CFLAGS_JDKLIB) $< \ 2> >($(GREP) -v '^$(&2) \ | $(NAWK) '/@@START_HERE@@/,0' \ | $(SED) -e 's/@@START_HERE@@/\/\/ AUTOMATICALLY GENERATED FILE - DO NOT EDIT/' \ Cheers, Ao Qi On Wed, Jun 5, 2019 at 12:00 AM Erik Joelsson wrote: > > Thanks! > > During testing, I found an intermittent race issue. The command line > that runs the interim langtools version of javac still always points to > the buildtools/interim-langtools dir of the normal build. This variable > also needs to be rewritten in buildjdk-spec.gmk.in. New webrev, only > changed in buildjdk-spec.gmk.in: > > http://cr.openjdk.java.net/~erikj/8217739/webrev.02/ > > /Erik > > On 2019-06-04 07:53, Tim Bell wrote: > > Erik: > > > > Looks good. > > > > Tim > > > >> This is a fix for a problem brought up on this list [1]. The main issue > >> is that when cross compiling, and creating a buildjdk during the build, > >> the UnixConstants.java cannot necessarily be reused between the target > >> JDK and the buildjdk. While investigating this, I came to the conclusion > >> that we really should stop trying to reuse anything between the buildjdk > >> and target JDK. It's just becoming too complex to maintain (due to the > >> intricate interactions with the interim-image, generate-link-opt-data > >> and exploded-image-optimize targets, causing circular dependencies and > >> endless incremental rebuilds). > >> > >> So this fix simply removes all the reuse of buildtools, gensrc and java > >> compilation when creating a buildjdk. Hopefully this is making Main.gmk > >> a bit less convoluted. > >> > >> While working on this, I came up with the idea of adding a log prefix > >> functionality, to more easily discern which log lines were printed by > >> the buildjdk build and which were part of the normal build. I liked this > >> a lot so including that in the same fix, and applied it to the bootcycle > >> build as well. > >> > >> Bug: https://bugs.openjdk.java.net/browse/JDK-8217739 > >> > >> Webrev: http://cr.openjdk.java.net/~erikj/8217739/webrev.01/index.html > >> > >> /Erik > >> > >> [1] > >> http://mail.openjdk.java.net/pipermail/build-dev/2019-January/024729.html > >> > > > > > > From zuismanm at gmail.com Wed Jun 5 07:40:45 2019 From: zuismanm at gmail.com (Moshe Zuisman) Date: Wed, 5 Jun 2019 10:40:45 +0300 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: <22acd655-89ff-0437-daf1-613f4a00f8b9@oracle.com> References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> <76e55196-cde1-89a4-c559-3a0b1718e4cf@oracle.com> <22acd655-89ff-0437-daf1-613f4a00f8b9@oracle.com> Message-ID: Hi David. 2 questions. 1. I as was told here - downloaded JDK sources from http://hg.openjdk.java.net/jdk-updates/jdk11u/ . I can not perform "hg update -r jdk-11.0.2-ga", since I get: " "abort: no repository found in '/cygdrive/c/jdk11u-11.0.2-ga' (.hg not found)!" " And really - in director, that I get after extracting there is not ".hg" 2. When I took jtreg 4.2-b12, most tests passes, but I still fail at: *D rectory "C:\jdk11u-11.0.2-ga\build\windows-x86_64-normal-server-release\testoutput\jaxp_all\JTwork" not found: creating^M Directory "C:\jdk11u-11.0.2-ga\build\windows-x86_64-normal-server-release\testoutput\jaxp_all\JTreport" not found: creating^M Error: Unexpected exception occurred! java.lang.NoSuchMethodError: com.sun.javatest.regtest.agent.JDK_Version.compareTo(Lcom/sun/javatest/regtest/agent/JDK_Version;)I^M java.lang.NoSuchMethodError: com.sun.javatest.regtest.agent.JDK_Version.compareTo(Lcom/sun/javatest/regtest/agent/JDK_Version;)I^M at com.sun.javatest.regtest.config.JDK.getSystemModules(JDK.java:405)^M at com.sun.javatest.regtest.config.RegressionParameters.getModulesFilter(RegressionParameters.java:202)^M at com.sun.javatest.regtest.config.RegressionParameters.getRelevantTestFilter(RegressionParameters.java:177)^M at com.sun.javatest.InterviewParameters.getFilters(InterviewParameters.java:767)^M at com.sun.javatest.Harness.createTreeIterator(Harness.java:811)^M at com.sun.javatest.Harness.runTests(Harness.java:701)^M at com.sun.javatest.Harness.batch(Harness.java:400)^M at com.sun.javatest.regtest.tool.Tool.batchHarness(Tool.java:1824)^M at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1216)^M at com.sun.javatest.regtest.tool.Tool.run(Tool.java:962)^M at com.sun.javatest.regtest.tool.Tool.main(Tool.java:134)^M at com.sun.javatest.regtest.Main.main(Main.java:58)^M Missing file: C:/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/testoutput/jaxp_all/JTreport/text/summary.txt EXIT CODE: 6* ??, 5 ???. 2019 ?. ? 02:25, David Holmes : > On 5/06/2019 2:20 am, Moshe Zuisman wrote: > > Hi. Thank for your recomendation! > > Although I did not success to run "hg update -r jdk-11.0.2-ga" - got : > > "abort: no repository found in '/cygdrive/c/jdk11u-11.0.2-ga' (.hg not > > found)!" > > I don't know how you are "cloning" things but you are not getting an > actual mercurial repository out of the process! > > > But since I from begining cloned jdk-11.0.2 label form site - I suppose > > it gives equavalent result. > > > > And finally I was able to pass compilation (make) > > But "make test" fails any where: > > to get it clear form begening - I donladed latest stabel jtreg and > > configured with it: > > ./configure --with-jtreg=/cygdrive/c/jtreg > > Latest jtreg may not be suitable for 11u. The specified version > (make/conf/jib-profiles.js) is 4.2-b12 > > David > ----- > > > /$ make test > > Building target 'test' in configuration > > 'windows-x86_64-normal-server-release' > > Warning: No mercurial configuration present and no .src-rev > > Compiling 31 files for BUILD_JRTFS > > Compiling 27 files for BUILD_FAILURE_HANDLER > > Creating support/test/failure_handler/timeoutHandler.dll from 1 file(s) > > Creating support/modules_libs/java.base/jrt-fs.jar > > > c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: > > > error: no suitable method found for save(Map) > > rp.save(map); > > ^ > > method InterviewParameters.save(File) is not applicable > > (argument mismatch; Map cannot be converted to File) > > method InterviewParameters.save(Map) is not > applicable > > (argument mismatch; Map cannot be converted to > > Map) > > 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. > > Note: Some messages have been simplified; recompile with -Xdiags:verbose > > to get full output > > 1 error > > make[3]: *** [BuildFailureHandler.gmk:54: > > > /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/support/test/failure_handler/classes/_the.BUILD_FAILURE_HANDLER_batch] > > > Error 1 > > make[2]: *** [make/Main.gmk:516: build-test-failure-handler] Error 2 > > make[2]: *** Waiting for unfinished jobs.... > > > > ERROR: Build failed for target 'test' in configuration > > 'windows-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: > > > c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: > > > error: no suitable method found for save(Map) > > rp.save(map); > > ^ > > method InterviewParameters.save(File) is not applicable > > (argument mismatch; Map cannot be converted to File) > > method InterviewParameters.save(Map) is not > applicable > > (argument mismatch; Map cannot be converted to > > Map) > > 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 > > > /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/make-support/failure-logs. > > === End of repeated output === > > > > No indication of failed target found. > > Hint: Try searching the build log for '] Error'. > > Hint: See doc/building.html#troubleshooting for assistance. > > > > make[1]: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:305: main] > Error 2 > > make: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:186: test] Error 2 > > / > > > > ??, 3 ???. 2019 ?. ? 10:20, David Holmes > >: > > > > On 3/06/2019 5:06 pm, Moshe Zuisman wrote: > > > Hi. > > > Probably I do not understand something in source control system > > of Open > > > JDK projeck. > > > I have gone to : > > > https://hg.openjdk.java.net/jdk/jdk11 > > > and clicked last label: > > > "9 months ago jwilhelm Added tag jdk-11+28 for changeset > > > 76072a077ee1default tip" > > > arrived to: > > > https://hg.openjdk.java.net/jdk/jdk11/rev/1ddf9a99e4ad > > > and downloaded zip with sources. > > > > Thats JDK 11 GA version. > > > > > How have I to download latest fixed source of JDK 11.0.2? > > > > 11.0.2 is one of the JDK 11 update releases. You previously indicated > > that you were using 11u sources at: > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 > > > > which seems to be a somewhat arbitrary point in 11u development. If > you > > want a specific release, rather than latest dev sources then use the > > appropriate tag to update your sources to that level: > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/tags > > > > So if you clone > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/ > > > > then do: > > > > hg update -r jdk-11.0.2-ga > > > > that should get you to the final 11.0.2 sources. > > > > That all said, the fix Kim was referring to appears to have gone into > > 11u 3 months before the date of the sources you indicated you were > > using. > > > > Hope that helps. > > > > David > > ----- > > > > > > > > ??, 3 ???. 2019 ?. ? 00:34, Kim Barrett > > > > >>: > > > > > > > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman > > > > > >> > wrote: > > > > > > > > Hi David. > > > > I have updated to Visual studio 2017 15.9.12. > > > > Build still fails, while now works much longer and pass > > much more > > > steps: > > > > > > > > > > > > > > details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > > > error C2220: warning treated as error -o 'object' file > > > > > > > > > > generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > > > > warning C4305: 'argument': truncation fm 'const intx' to > > > 'double'make[3]: > > > > *** [lib/CompileJvm.gmk:151: > > > > > > > > > > /cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > > > > Error 1make[3]: *** Waiting for unfinished > > jobs....make[2]: *** > > > > > > This looks like JDK-8212052, which is marked as fixed in JDK > > 11.0.2. > > > > > > > > > From david.holmes at oracle.com Wed Jun 5 08:12:38 2019 From: david.holmes at oracle.com (David Holmes) Date: Wed, 5 Jun 2019 18:12:38 +1000 Subject: Failure buiilding OPEN JDK 11 on windows cygwin with VC 2017 In-Reply-To: References: <9b66c58b-12ba-1060-0cec-363917ebef38@oracle.com> <5e3519d0-18a6-7a31-0381-96d8853d098c@oracle.com> <1160ccd0-6ee7-13aa-0bff-10c07ee05615@oracle.com> <89E732EF-5961-4C92-B102-A3B1B2943974@oracle.com> <76e55196-cde1-89a4-c559-3a0b1718e4cf@oracle.com> <22acd655-89ff-0437-daf1-613f4a00f8b9@oracle.com> Message-ID: On 5/06/2019 5:40 pm, Moshe Zuisman wrote: > Hi David. > 2 questions. > > 1. I as was told here - downloaded JDK sources from > http://hg.openjdk.java.net/jdk-updates/jdk11u/ > ?.? I can not > perform "hg update -r jdk-11.0.2-ga", since I get: > " "abort: no repository found in '/cygdrive/c/jdk11u-11.0.2-ga' (.hg > not?found)!"? " > And really - in director, that I get after extracting there is not ".hg" Ah you downloaded the zip file, you didn't use hg to actually create a clone of the repository. I'd recommend creating a proper clone. > 2. When I took jtreg 4.2-b12, most tests passes, but I still fail at: > /D rectory > "C:\jdk11u-11.0.2-ga\build\windows-x86_64-normal-server-release\testoutput\jaxp_all\JTwork" > not found: creating^M > Directory > "C:\jdk11u-11.0.2-ga\build\windows-x86_64-normal-server-release\testoutput\jaxp_all\JTreport" > not found: creating^M > Error: Unexpected exception occurred! java.lang.NoSuchMethodError: > com.sun.javatest.regtest.agent.JDK_Version.compareTo(Lcom/sun/javatest/regtest/agent/JDK_Version;)I^M > java.lang.NoSuchMethodError: > com.sun.javatest.regtest.agent.JDK_Version.compareTo(Lcom/sun/javatest/regtest/agent/JDK_Version;)I^M > ? ? ? ? at > com.sun.javatest.regtest.config.JDK.getSystemModules(JDK.java:405)^M > ? ? ? ? at I suggest you take that to jtreg-use at openjdk.java.net. They should be able to help. David ----- > com.sun.javatest.regtest.config.RegressionParameters.getModulesFilter(RegressionParameters.java:202)^M > ? ? ? ? at > com.sun.javatest.regtest.config.RegressionParameters.getRelevantTestFilter(RegressionParameters.java:177)^M > ? ? ? ? at > com.sun.javatest.InterviewParameters.getFilters(InterviewParameters.java:767)^M > ? ? ? ? at > com.sun.javatest.Harness.createTreeIterator(Harness.java:811)^M > ? ? ? ? at com.sun.javatest.Harness.runTests(Harness.java:701)^M > ? ? ? ? at com.sun.javatest.Harness.batch(Harness.java:400)^M > ? ? ? ? at > com.sun.javatest.regtest.tool.Tool.batchHarness(Tool.java:1824)^M > ? ? ? ? at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1216)^M > ? ? ? ? at com.sun.javatest.regtest.tool.Tool.run(Tool.java:962)^M > ? ? ? ? at com.sun.javatest.regtest.tool.Tool.main(Tool.java:134)^M > ? ? ? ? at com.sun.javatest.regtest.Main.main(Main.java:58)^M > Missing file: > C:/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/testoutput/jaxp_all/JTreport/text/summary.txt > EXIT CODE: 6/ > > > > > ??, 5 ???. 2019 ?. ? 02:25, David Holmes >: > > On 5/06/2019 2:20 am, Moshe Zuisman wrote: > > Hi. Thank for your recomendation! > > Although I did not success to run "hg update -r jdk-11.0.2-ga" - > got : > > "abort: no repository found in '/cygdrive/c/jdk11u-11.0.2-ga' > (.hg not > > found)!" > > I don't know how you are "cloning" things but you are not getting an > actual mercurial repository out of the process! > > > But since I from begining cloned?jdk-11.0.2 label form site - I > suppose > > it gives equavalent result. > > > > And finally I was able to pass compilation (make) > > But "make test" fails any where: > > to get it clear form begening - I donladed latest stabel jtreg and > > configured with it: > >? ?./configure --with-jtreg=/cygdrive/c/jtreg > > Latest jtreg may not be suitable for 11u. The specified version > (make/conf/jib-profiles.js) is 4.2-b12 > > David > ----- > > > /$ make test > > Building target 'test' in configuration > > 'windows-x86_64-normal-server-release' > > Warning: No mercurial configuration present and no .src-rev > > Compiling 31 files for BUILD_JRTFS > > Compiling 27 files for BUILD_FAILURE_HANDLER > > Creating support/test/failure_handler/timeoutHandler.dll from 1 > file(s) > > Creating support/modules_libs/java.base/jrt-fs.jar > > > c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: > > > error: no suitable method found for save(Map) > >? ? ? ? ? rp.save(map); > >? ? ? ? ? ? ^ > >? ? ? method InterviewParameters.save(File) is not applicable > >? ? ? ? (argument mismatch; Map cannot be converted > to File) > >? ? ? method InterviewParameters.save(Map) is not > applicable > >? ? ? ? (argument mismatch; Map cannot be converted to > > Map) > >? ? 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. > > Note: Some messages have been simplified; recompile with > -Xdiags:verbose > > to get full output > > 1 error > > make[3]: *** [BuildFailureHandler.gmk:54: > > > /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/support/test/failure_handler/classes/_the.BUILD_FAILURE_HANDLER_batch] > > > Error 1 > > make[2]: *** [make/Main.gmk:516: build-test-failure-handler] Error 2 > > make[2]: *** Waiting for unfinished jobs.... > > > > ERROR: Build failed for target 'test' in configuration > > 'windows-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: > > > c:\jdk11u-11.0.2-ga\test\failure_handler\src\share\classes\jdk\test\failurehandler\jtreg\GatherDiagnosticInfoObserver.java:123: > > > error: no suitable method found for save(Map) > >? ? ? ? ? rp.save(map); > >? ? ? ? ? ? ^ > >? ? ? method InterviewParameters.save(File) is not applicable > >? ? ? ? (argument mismatch; Map cannot be converted > to File) > >? ? ? method InterviewParameters.save(Map) is not > applicable > >? ? ? ? (argument mismatch; Map cannot be converted to > > Map) > >? ? 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 > > > /cygdrive/c/jdk11u-11.0.2-ga/build/windows-x86_64-normal-server-release/make-support/failure-logs. > > === End of repeated output === > > > > No indication of failed target found. > > Hint: Try searching the build log for '] Error'. > > Hint: See doc/building.html#troubleshooting for assistance. > > > > make[1]: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:305: > main] Error 2 > > make: *** [/cygdrive/c/jdk11u-11.0.2-ga/make/Init.gmk:186: test] > Error 2 > > / > > > > ??, 3 ???. 2019 ?. ? 10:20, David Holmes > > >>: > > > >? ? ?On 3/06/2019 5:06 pm, Moshe Zuisman wrote: > >? ? ? > Hi. > >? ? ? > Probably I do not understand something in source control > system > >? ? ?of Open > >? ? ? > JDK projeck. > >? ? ? > I have gone to : > >? ? ? > https://hg.openjdk.java.net/jdk/jdk11 > >? ? ? > and clicked last label: > >? ? ? > "9 months ago jwilhelm Added tag jdk-11+28 for changeset > >? ? ? > 76072a077ee1default tip" > >? ? ? > arrived to: > >? ? ? > https://hg.openjdk.java.net/jdk/jdk11/rev/1ddf9a99e4ad > >? ? ? > and downloaded zip with sources. > > > >? ? ?Thats JDK 11 GA version. > > > >? ? ? > How have I to download latest fixed source of JDK 11.0.2? > > > >? ? ?11.0.2 is one of the JDK 11 update releases. You previously > indicated > >? ? ?that you were using 11u sources at: > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/a23d4b4ea281 > > > >? ? ?which seems to be a somewhat arbitrary point in 11u > development. If you > >? ? ?want a specific release, rather than latest dev sources then > use the > >? ? ?appropriate tag to update your sources to that level: > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/tags > > > >? ? ?So if you clone > > > > http://hg.openjdk.java.net/jdk-updates/jdk11u/ > > > >? ? ?then do: > > > >? ? ?hg update -r jdk-11.0.2-ga > > > >? ? ?that should get you to the final 11.0.2 sources. > > > >? ? ?That all said, the fix Kim was referring to appears to have > gone into > >? ? ?11u 3 months before the date of the sources you indicated you > were > >? ? ?using. > > > >? ? ?Hope that helps. > > > >? ? ?David > >? ? ?----- > > > >? ? ? > > >? ? ? > ??, 3 ???. 2019 ?. ? 00:34, Kim Barrett > > >? ? ?> > >? ? ? > >>>: > >? ? ? > > >? ? ? >? ? ? > On Jun 2, 2019, at 4:20 PM, Moshe Zuisman > >? ? ? > > > >? ? ? >? ? ? > >>> wrote: > >? ? ? >? ? ? > > >? ? ? >? ? ? > Hi David. > >? ? ? >? ? ? > I have updated to Visual studio 2017 15.9.12. > >? ? ? >? ? ? > Build still fails, while now works much longer and pass > >? ? ?much more > >? ? ? >? ? ?steps: > >? ? ? >? ? ? > > >? ? ? >? ? ? > > >? ? ? > > > > ?details.c:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > >? ? ? >? ? ? > error C2220: warning treated as error -o 'object' file > >? ? ? >? ? ? > > >? ? ? > > > > ?generatedc:/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/src/hotspot/share/runtime/flags/jvmFlagRangeList.cpp(341): > >? ? ? >? ? ? > warning C4305: 'argument': truncation fm 'const > intx' to > >? ? ? >? ? ?'double'make[3]: > >? ? ? >? ? ? > *** [lib/CompileJvm.gmk:151: > >? ? ? >? ? ? > > >? ? ? > > > > ?/cygdrive/c/Git_Repos/open_jdk_11/jdk11-1ddf9a99e4ad/jdk11-1ddf9a99e4ad/build/windows-x86_64-normal-server-release/hotspot/riant-server/libjvm/objs/jvmFlagRangeList.obj] > >? ? ? >? ? ? > Error 1make[3]: *** Waiting for unfinished > >? ? ?jobs....make[2]: *** > >? ? ? > > >? ? ? >? ? ?This looks like JDK-8212052, which is marked as fixed > in JDK > >? ? ?11.0.2. > >? ? ? > > >? ? ? > > > > From jonathan.gibbons at oracle.com Wed Jun 5 15:21:04 2019 From: jonathan.gibbons at oracle.com (Jonathan Gibbons) Date: Wed, 5 Jun 2019 08:21:04 -0700 Subject: RFR XXS,docs JDK-8225346: Convert file to HTML5 Message-ID: <0619e7fe-80d2-009d-66be-4ac2ba70bc40@oracle.com> Please review a trivial fix to change the doctype for a file from HTML 4 to HTML 5. This gets the file off the doccheck radar. No webrev; patch below. -- Jon JBS: https://bugs.openjdk.java.net/browse/JDK-8225346 $ hg diff -R open diff -r f4df9d4201cc make/data/docs-resources/index.html --- a/make/data/docs-resources/index.html??? Tue Jun 04 16:50:25 2019 -0700 +++ b/make/data/docs-resources/index.html??? Wed Jun 05 08:11:55 2019 -0700 @@ -1,4 +1,4 @@ - + ?