Re: How to troubleshoot build failure on windows cygwin
Some additional point. I have checked - file c:\openJdk\openjdk8u\build\windows-x86_64-normal-server-release\hotspot\windows_amd64_compiler2\product\ad_x86_64_peephole.obj exists. So I am quite entangled here If object was built and exists - why linker fails to add it to a library? чт, 11 июл. 2019 г. в 22:35, Moshe Zuisman : > now I pulled last source (used get_ssource.sh) and - same result: > > > > > > > > > > > > > > > > > *Generating Code...sh > C:\openJdk8u_test\jdk8u\hotspot/make/windows/build_vm_def.sh > C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe > @C:\cygwin64\tmp\nmE8BD.tmp Creating library jvm.lib and object > jvm.expad_x86_64_peephole.obj : error LNK2011: precompiled object not > linked in; image may not runjvm.dll : fatal error LNK1120: 1 unresolved > externalsNMAKE : fatal error U1077: > 'C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe' > : return code '0x460'Stop.NMAKE : fatal error U1077: 'cd' : return code > '0x2'Stop.NMAKE : fatal error U1077: > 'C:\PROGRA~2\MICROS~1\2017\PROFES~1\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.EXE' > : return code '0x2'Stop.make[3]: *** [Makefile:231: generic_build2] Error > 2make[2]: *** [Makefile:177: product] Error 2make[1]: *** > [HotspotWrapper.gmk:45: > /cygdrive/c/openJdk8u_test/jdk8u/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp] > Error 2make: *** [/cygdrive/c/openJdk8u_test/jdk8u//make/Main.gmk:110: > hotspot-only] Error 2* >
Re: How to troubleshoot build failure on windows cygwin
Looks like you are using a newer Visual Studio toolchain: 'C:\PROGRA~2\MICROS~1\2017\PROFES~1\VC\Tools\MSVC\14.16.27023\ See below: On 07/11/19 12:35, Moshe Zuisman wrote: now I pulled last source (used get_ssource.sh) and - same result: [...snip...] *Generating Code...sh C:\openJdk8u_test\jdk8u\hotspot/make/windows/build_vm_def.sh C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe @C:\cygwin64\tmp\nmE8BD.tmp Creating library jvm.lib and object jvm.expad_x86_64_peephole.obj : error LNK2011: precompiled object not linked in; image may not runjvm.dll : fatal error LNK1120: 1 unresolved externalsNMAKE : fatal error U1077: 'C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe' : return code '0x460'Stop.NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2017\PROFES~1\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.EXE' : return code '0x2'Stop.make[3]: *** [Makefile:231: generic_build2] Error 2make[2]: *** [Makefile:177: product] Error 2make[1]: *** [HotspotWrapper.gmk:45: /cygdrive/c/openJdk8u_test/jdk8u/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2make: *** [/cygdrive/c/openJdk8u_test/jdk8u//make/Main.gmk:110: hotspot-only] Error 2* Take a look at JDK-8043492. This issue looks very similar: https://bugs.openjdk.java.net/browse/JDK-8043492 Fixed in 9, but if you want to update the toolchain when building jdk8u, you may need to backport the fix. Tim
Re: How to troubleshoot build failure on windows cygwin
now I pulled last source (used get_ssource.sh) and - same result: *Generating Code...sh C:\openJdk8u_test\jdk8u\hotspot/make/windows/build_vm_def.sh C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe @C:\cygwin64\tmp\nmE8BD.tmp Creating library jvm.lib and object jvm.expad_x86_64_peephole.obj : error LNK2011: precompiled object not linked in; image may not runjvm.dll : fatal error LNK1120: 1 unresolved externalsNMAKE : fatal error U1077: 'C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe' : return code '0x460'Stop.NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2017\PROFES~1\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.EXE' : return code '0x2'Stop.make[3]: *** [Makefile:231: generic_build2] Error 2make[2]: *** [Makefile:177: product] Error 2make[1]: *** [HotspotWrapper.gmk:45: /cygdrive/c/openJdk8u_test/jdk8u/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2make: *** [/cygdrive/c/openJdk8u_test/jdk8u//make/Main.gmk:110: hotspot-only] Error 2* чт, 11 июл. 2019 г. в 17:54, Moshe Zuisman : > Sorry - it is b04 > But if get you right - i will have to last commit... > > $ hg log --rev $(hg id -i | sed 's/.$//') > changeset: 2369:d43cf567cf72 > tag: jdk8u212-b04 > user:andrew > date:Wed Apr 03 05:14:53 2019 +0100 > summary: Added tag jdk8u212-b03 for changeset 5218ef8ea6c3 > > чт, 11 июл. 2019 г. в 14:25, Aleksey Shipilev : > >> On 7/11/19 1:17 PM, Moshe Zuisman wrote: >> > I am trying to build openjdk8u_b24 on windows cygwin environment. >> >> What is "openjdk8u_b24"? What exactly are you trying to build? In other >> words, where did you get the >> source, and what is the latest change in the source tree? There are many >> improvements in build >> system in recent 8u, make sure you build the latest source. >> >> -- >> Thanks, >> -Aleksey >> >>
Re: How to troubleshoot build failure on windows cygwin
Sorry - it is b04 But if get you right - i will have to last commit... $ hg log --rev $(hg id -i | sed 's/.$//') changeset: 2369:d43cf567cf72 tag: jdk8u212-b04 user:andrew date:Wed Apr 03 05:14:53 2019 +0100 summary: Added tag jdk8u212-b03 for changeset 5218ef8ea6c3 чт, 11 июл. 2019 г. в 14:25, Aleksey Shipilev : > On 7/11/19 1:17 PM, Moshe Zuisman wrote: > > I am trying to build openjdk8u_b24 on windows cygwin environment. > > What is "openjdk8u_b24"? What exactly are you trying to build? In other > words, where did you get the > source, and what is the latest change in the source tree? There are many > improvements in build > system in recent 8u, make sure you build the latest source. > > -- > Thanks, > -Aleksey > >
Re: How to troubleshoot build failure on windows cygwin
On 7/11/19 1:17 PM, Moshe Zuisman wrote: > I am trying to build openjdk8u_b24 on windows cygwin environment. What is "openjdk8u_b24"? What exactly are you trying to build? In other words, where did you get the source, and what is the latest change in the source tree? There are many improvements in build system in recent 8u, make sure you build the latest source. -- Thanks, -Aleksey
How to troubleshoot build failure on windows cygwin
Hi. I am trrting to build openjdk8u_b24 on windows cygwin environment. Get fololowing error: _ * C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\cl.exe /nologo /W3 /WX /Zi /D "_LP64" /D "AMD64" /D "WIN32" /D "_WINDOWS" /D "VM_LITTLE_ENDIAN" /D TARGET_OS_FAMILY_windows /D TARGET_ARCH_x86 /D TARGET_ARCH_MODEL_x86_64 /D TARGET_OS_ARCH_windows_x86 /D TARGET_OS_ARCH_MODEL_windows_x86_64 /D TARGET_COMPILER_visCPP /MD /D "PRODUCT" /D "COMPILER1" /D "COMPILER2" /D "HOTSPOT_RELEASE_VERSION=\"25.71-b00\"" /D "JRE_RELEASE_VERSION=\"1.8.0-internal-administrator_2019_07_09_23_08-b00\"" /D "HOTSPOT_LIB_ARCH=\"amd64\"" /D "HOTSPOT_BUILD_TARGET=\"product\"" /D "HOTSPOT_BUILD_USER=\"Administrator\"" /D "HOTSPOT_VM_DISTRO=\"OpenJDK\"" /D "VENDOR=\"\"" /D "VENDOR_URL=\"\"" /D "VENDOR_URL_BUG=\"\"" /D "VENDOR_URL_VM_BUG=\"\"" /I "..\generated" /I "C:\openJdk\openjdk8u\hotspot\src\share\vm" /I "C:\openJdk\openjdk8u\hotspot\src\share\vm\precompiled" /I "C:\openJdk\openjdk8u\hotspot\src\share\vm\prims" /I "C:\openJdk\openjdk8u\hotspot\src\os\windows\vm" /I "C:\openJdk\openjdk8u\hotspot\src\os_cpu\windows_x86\vm" /I "C:\openJdk\openjdk8u\hotspot\src\cpu\x86\vm" /D "_JNI_IMPLEMENTATION_" /Fp"vm.pch" /Yu"precompiled.hpp" /c ..\generated\adfiles\ad_x86_64.cpp ..\generated\adfiles\ad_x86_64_clone.cpp ..\generated\adfiles\ad_x86_64_expand.cpp ..\generated\adfiles\ad_x86_64_format.cpp ..\generated\adfiles\ad_x86_64_gen.cpp ..\generated\adfiles\ad_x86_64_misc.cpp ..\generated\adfiles\ad_x86_64_peephole.cpp ..\generated\adfiles\ad_x86_64_pipeline.cpp ..\generated\adfiles\dfa_x86_64.cppad_x86_64.cppad_x86_64_clone.cppad_x86_64_expand.cppad_x86_64_format.cppad_x86_64_gen.cppad_x86_64_misc.cppad_x86_64_peephole.cppad_x86_64_pipeline.cppdfa_x86_64.cppGenerating Code...sh C:\openJdk\openjdk8u\hotspot/make/windows/build_vm_def.sh C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe @C:\cygwin64\tmp\nm155D.tmp Creating library jvm.lib and object jvm.expad_x86_64_peephole.obj : error LNK2011: precompiled object not linked in; image may not runjvm.dll : fatal error LNK1120: 1 unresolved externalsNMAKE : fatal error U1077: 'C:\progra~2\micros~1\2017\profes~1\vc\tools\msvc\1416~1.270\bin\hostx86\x64\link.exe' : return code '0x460'Stop.NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2017\PROFES~1\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\nmake.EXE' : return code '0x2'Stop.make[3]: *** [Makefile:231: generic_build2] Error 2make[2]: *** [Makefile:177: product] Error 2make[1]: *** [HotspotWrapper.gmk:45: /cygdrive/c/openJdk/openjdk8u/build/windows-x86_64-normal-server-release/hotspot/_hotspot.timestamp] Error 2make: *** [/cygdrive/c/openJdk/openjdk8u//make/Main.gmk:110: hotspot-only] Error 2* I have here 2 questions. First is obvious - what can be a reason for such a failure? Second - are there some troubleshooting flags , methods to work out such problems? Since message is here very unclear. I can not get any clue from here which external refference can not be found, which module refference it?