Windows 11,cygwin + Visual Studio 2017编译OpenJDK12

时间:2024-10-10 06:56:05
$ ./configure --enable-debug --disable-warnings-as-errors --with-version-pre=frankcrcBuild --with-boot-jdk=/cygdrive/d/Programs/Java/jdk-11.0.11_windows-x64_bin/jdk-11.0.11/ --with-tools-dir=/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Auxiliary/Build/ Runnable configure script is not present Generating runnable configure script at /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/.configure-support/ Using autoconf at /usr/bin/autoconf [autoconf (GNU Autoconf) 2.71] stdin:222: warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you should use literals /mnt/share/cygpkgs/autoconf2.7/autoconf2./src/autoconf-2.71/lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from... /cygdrive/f/programs/tmp/jdk-b67884871b5f/make/autoconf/libraries.m4:93: LIB_SETUP_LIBRARIES is expanded from... stdin:222: the top level configure: Configuration created at Sun Jan 23 14:56:04 CST 2022. checking for basename... /usr/bin/basename ... checking for cygpath... /usr/bin/cygpath checking for df... /usr/bin/df checking for cpio... no checking for bsdcpio... no checking for nice... /usr/bin/nice checking for pandoc... no checking build system type... x86_64-unknown-cygwin checking host system type... x86_64-unknown-cygwin checking target system type... x86_64-unknown-cygwin checking openjdk-build os-cpu... windows-x86_64 checking openjdk-target os-cpu... windows-x86_64 checking compilation type... native checking cygwin release... 3.3.3(0.341/5/3) checking cygwin root directory as unix-style path... /cygdrive/e/Programs/cygwin64 checking what kind of 'find' is first on the PATH... unix style checking for top-level directory... /cygdrive/f/programs/tmp/jdk-b67884871b5f checking if custom source is suppressed (openjdk-only)... no checking which debug level to use... fastdebug checking which variants of the JVM to build... server checking for sysroot... checking for toolchain path... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Auxiliary/Build/ checking for extra path... checking where to store configuration... in default location checking what configuration name to use... windows-x86_64-server-fastdebug checking for apt-get... no checking for yum... no checking for brew... no checking for port... no checking for pkgutil... no checking for pkgadd... no checking for gmake... no checking for make... /usr/bin/make configure: Testing potential make at /usr/bin/make, found using make in PATH configure: Using GNU make at /usr/bin/make (version: GNU Make 4.2.1) checking if make --output-sync is supported... yes checking for output-sync value... none checking if find supports -delete... yes checking what type of tar was found... gnu checking that grep (/usr/bin/grep) -Fx handles empty lines in the pattern list correctly... yes checking for unzip... /usr/bin/unzip checking for zip... /usr/bin/zip checking for ldd... /usr/bin/ldd checking for greadelf... no checking for readelf... no checking for dot... no checking for hg... no checking for git... /cygdrive/d/Program Files/Git/cmd/git checking for stat... /usr/bin/stat checking for time... no checking for flock... /usr/bin/flock checking for dtrace... no checking for gpatch... no checking for patch... no checking bash version... 4.4.12 checking if bash supports pipefail... yes checking if bash supports errexit (-e)... yes checking for pkg-config... no checking for default LOG value... checking headless only... no checking for graphviz dot... no, cannot generate full docs checking for pandoc... no, cannot generate full docs checking full docs... no, missing dependencies checking for cacerts file... default checking for jni library path... default checking if packaged modules are kept... yes (default) checking for version string... 12-frankcrcBuild+-b67884871b5f configure: Found potential Boot JDK using configure arguments checking for Boot JDK... /cygdrive/d/Programs/Java/jdk-11.0.11_windows-x64_bin/jdk-11.0.11/ checking Boot JDK version... java version "11.0.11" 2021-04-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode) checking for java in Boot JDK... ok checking for javac in Boot JDK... ok checking for javadoc in Boot JDK... ok checking for jar in Boot JDK... ok checking for jarsigner in Boot JDK... ok checking if Boot JDK is 32 or 64 bits... 64 checking for local Boot JDK Class Data Sharing (CDS)... no, creation failed checking for Build JDK... yes, will use output dir configure: Using default toolchain microsoft (Microsoft Visual Studio) checking for link... /usr/bin/link checking if the first found is actually the Cygwin link tool... yes configure: Found Visual Studio installation at /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Auxiliary/Build//../.. using --with-tools-dir configure: Warning: None of vc/bin/amd64/ vc/bin/x86_amd64/vcvarsx86_amd64.bat vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/ were found, Visual Studio installation not recognized. Ignoring configure: Found Visual Studio installation at /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Auxiliary/Build//../../.. using --with-tools-dir configure: Found Microsoft Visual Studio 2017 configure: Rewriting VS_ENV_CMD to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/vc/auxiliary/build/vcvarsx86_amd64.bat" configure: Trying to extract Visual Studio environment variables ********************************************************************** ** Visual Studio 2017 Developer Command Prompt v15.9.43 ** Copyright (c) 2017 Microsoft Corporation ********************************************************************** [] Environment initialized for: 'x86_x64' configure: Setting extracted environment variables checking for Visual Studio variables... ok configure: Rewriting ipath to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/ATLMFC/include" configure: Rewriting ipath to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/include" configure: Rewriting ipath to "/cygdrive/c/progra~2/wi3cf2~1/10/include/100183~1.0/ucrt" configure: Rewriting ipath to "/cygdrive/c/progra~2/wi3cf2~1/10/include/100183~1.0/shared" configure: Rewriting ipath to "/cygdrive/c/progra~2/wi3cf2~1/10/include/100183~1.0/um" configure: Rewriting ipath to "/cygdrive/c/progra~2/wi3cf2~1/10/include/100183~1.0/winrt" configure: Rewriting ipath to "/cygdrive/c/progra~2/wi3cf2~1/10/include/100183~1.0/cppwinrt" configure: Rewriting libpath to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/ATLMFC/lib/x64" configure: Rewriting libpath to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/lib/x64" configure: Rewriting libpath to "/cygdrive/c/progra~2/wi3cf2~1/10/lib/100183~1.0/ucrt/x64" configure: Rewriting libpath to "/cygdrive/c/progra~2/wi3cf2~1/10/lib/100183~1.0/um/x64" checking for cl... no checking for cl... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl checking resolved symbolic links for CC... no symlink configure: Using microsoft C compiler version 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版 [用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版] checking whether the C compiler works... yes checking for C compiler default output file name... checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... obj checking whether the compiler supports GNU C... no checking whether /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl accepts -g... yes checking for /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl option to enable C11 features... unsupported checking for /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl option to enable C99 features... unsupported checking for /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl option to enable C89 features... unsupported checking for cl... no checking for cl... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl checking resolved symbolic links for CXX... no symlink configure: Using microsoft C++ compiler version 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版 [用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版] checking whether the compiler supports GNU C++... no checking whether /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl accepts -g... yes checking for /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl option to enable C++11 features... none needed configure: WARNING: You are using microsoft older than 16.00.30319.01. This is not a supported configuration. checking how to run the C preprocessor... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl -E checking how to run the C++ preprocessor... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl -E checking for link... link configure: Rewriting LD to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/link" checking if the found is actually the Visual Studio linker... yes configure: Using microsoft linker version 14.16.27045.0 [Microsoft (R) Incremental Linker Version 14.16.27045.0] checking for lib... lib configure: Rewriting AR to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/lib" checking for mt... mt configure: Rewriting MT to "/cygdrive/c/progra~2/wi3cf2~1/10/bin/100183~1.0/x86/mt" checking for rc... rc configure: Rewriting RC to "/cygdrive/c/progra~2/wi3cf2~1/10/bin/100183~1.0/x86/rc" checking for dumpbin... dumpbin configure: Rewriting DUMPBIN to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/dumpbin" checking for ... checking for gobjdump... no checking for objdump... no checking for jtreg... no checking for jtreg test harness... no, not found checking for jmh (Java Microbenchmark Harness)... no, disabled checking for jib... no checking if the C compiler supports "-m64"... yes checking if the C++ compiler supports "-m64"... yes checking if both compilers support "-m64"... yes checking for ... yes ... checking for target address size... 64 bits checking whether byte ordering is bigendian... no checking if native warnings are errors... no (explicitly set) checking for library containing clock_gettime... no checking what type of native debug symbols to use... external checking for dtrace tool... not found, cannot build dtrace checking for sys/... no checking if dtrace should be built... no, missing dependencies checking if Hotspot gtest unit tests should be built... yes checking if fixpath can be created... yes checking if works... yes configure: Rewriting CYGWIN_VC_INSTALL_DIR to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC" POSSIBLE_MSVC_DLL /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft./ configure: Found at /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft./ using well-known location in VCINSTALLDIR checking found architecture... ok checking for ... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft./ configure: Rewriting CYGWIN_VC_INSTALL_DIR to "/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC" POSSIBLE_MSVC_DLL /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft./ configure: Found at /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft./ using well-known location in VCINSTALLDIR checking found architecture... ok checking for ... /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Redist/MSVC/14.16.27012/x64/Microsoft./ checking for UCRT DLL dir... configure: Rewriting CYGWIN_WINDOWSSDKDIR to "/cygdrive/c/progra~2/wi3cf2~1/10" /cygdrive/c/progra~2/wi3cf2~1/10/Redist/ucrt/DLLs/x64 Using freetype: bundled checking for which libjpeg to use... bundled checking for which giflib to use... bundled checking for PNG... checking for which libpng to use... bundled checking for compress in -lz... no checking for which zlib to use... bundled checking for which lcms to use... bundled checking for dlopen in -ldl... no checking if shenandoah can be built... yes checking if zgc can be built... no, platform not supported checking if jvmci module should be built... yes checking if graal module should be built... yes checking if aot should be enabled... yes checking if cds should be enabled... yes checking if elliptic curve crypto implementation is present... yes checking if jtreg failure handler should be built... no, missing jtreg checking if the CDS classlist generation should be enabled... yes checking if any translations should be excluded... no checking if static man pages should be copied... yes checking if a default CDS archive should be generated... yes checking for number of cores... 12 checking for memory size... 16271 MB checking for appropriate number of jobs to run in parallel... 12 checking flags for boot jdk java command ... -=en -=US -Xshare:auto checking flags for boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 checking flags for bootcycle boot jdk java command for big workloads... -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 checking flags for boot jdk java command for small workloads... -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1 checking whether to use sjavac... no checking whether to use javac server... yes checking If precompiled header is enabled... yes checking is ccache enabled... no checking if build directory is on local disk... yes checking JVM features for JVM variant 'server'... "aot cds cmsgc compiler1 compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs" configure: creating /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug/configure-support/ : creating /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug/ : creating /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug/ : creating /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug/ : creating /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug/ : creating /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug/Makefile ==================================================== A new configuration has been successfully created in /cygdrive/f/programs/tmp/jdk-b67884871b5f/build/windows-x86_64-server-fastdebug using configure arguments '--enable-debug --disable-warnings-as-errors --with-version-pre=frankcrcBuild --with-boot-jdk=/cygdrive/d/Programs/Java/jdk-11.0.11_windows-x64_bin/jdk-11.0.11/ --with-tools-dir=/cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Auxiliary/Build/'. Configuration summary: * Debug level: fastdebug * HS debug level: fastdebug * JVM variants: server * JVM features: server: 'aot cds cmsgc compiler1 compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs' * OpenJDK target: OS: windows, CPU architecture: x86, address length: 64 * Version string: 12-frankcrcBuild+-b67884871b5f (12-frankcrcBuild) Tools summary: * Environment: cygwin version 3.3.3(0.341/5/3) (root at /cygdrive/e/Programs/cygwin64) * Boot JDK: java version "11.0.11" 2021-04-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode) (at /cygdrive/d/Programs/Java/jdk-11.0.11_windows-x64_bin/jdk-11.0.11/) * Toolchain: microsoft (Microsoft Visual Studio 2017) * C Compiler: Version 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版 (at /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl) * C++ Compiler: Version 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版 (at /cygdrive/e/Programs/Microsoft/VisualStudio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/cl) Build performance summary: * Cores to use: 12 * Memory limit: 16271 MB The following warnings were produced. Repeated here for convenience: WARNING: You are using microsoft older than 16.00.30319.01. This is not a supported configuration.