Я пытаюсь скомпилировать исходный код openjdk-6 из http://hg.openjdk.java.net/jdk6/jdk6, и я клонировал все зависимости, репозиторий чистый. Я скомпилировал ссылку html из репозитория ( Readme )
Я скомпилировал исходный код jdk-6 для linux на машине linux и в результате получил jdk и jre.
На этот раз я хотел попробовать скомпилировать в машине windows, чтобы получить jdk иисполняемые файлы.Компиляция не будет такой простой, как для linux, потому что для windows нам нужно установить cygwin (оболочку, похожую на оболочку linux) и некоторые другие упомянутые ниже предварительные требования, которые я установил для компиляции:
Cygwin - 1.9
BootJdk - 1.6
Microsoft Platform SDK - 9
visual studio - 2010
Поскольку пакет freetype не установлен в cygwin, я получил источник freetypeотсюда ( Freetype-2.5.3 ) и скомпилировал исходный код для получения файлов lib и headers, который отлично работает с компиляцией jdk-8
Я установил все переменные и начал проверку работоспособностивызвав
make sanity
Ошибка, возникшая из-за того, что freetype не найден, и я прикрепил логи здравомыслия, и я заметил, что заголовочный файл 'stddef.h' не найден, поэтому я обновил библиотеку c / c ++ gcc до последней версиии когда я гуглю файл заголовка (stddef.h), он был от Microsoft DirectXSdk, поэтому я тоже обновил DirectXsdk.
Журналы:
make[1]: Entering directory '/home/test/jdk6/jdk/make'
make[2]: Entering directory '/home/test/jdk6/jdk/make/tools/freetypecheck'
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
freetypecheck.c
C:/cygwin2/home/test/jdk6/FREETY~1.3/include/config/ftstdlib.h(36) : fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
make[2]: *** [Makefile:73: C:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp/freetype_versioncheck] Error 2
make[2]: Leaving directory '/home/test/jdk6/jdk/make/tools/freetypecheck'
make[1]: [C:/cygwin2/home/test/jdk6/jdk/make/common/shared/Sanity.gmk:821: sane-freetype] Error 2 (ignored)
/bin/sh: C:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp/freetype_versioncheck.exe: No such file or directory
make[1]: Leaving directory '/home/test/jdk6/jdk/make'
Build Machine Information:
build machine = test
Build Directory Structure:
CWD = /home/test/jdk6
TOPDIR = .
LANGTOOLS_TOPDIR = ./langtools
JAXP_TOPDIR = ./jaxp
JAXWS_TOPDIR = ./jaxws
CORBA_TOPDIR = ./corba
HOTSPOT_TOPDIR = ./hotspot
JDK_TOPDIR = ./jdk
Build Directives:
BUILD_LANGTOOLS = true
BUILD_JAXP = true
BUILD_JAXWS = true
BUILD_CORBA = true
BUILD_HOTSPOT = true
BUILD_JDK = true
DEBUG_CLASSFILES =
DEBUG_BINARIES =
Hotspot Settings:
HOTSPOT_BUILD_JOBS =
HOTSPOT_OUTPUTDIR = C:/cygwin2/home/test/jdk6/build/WINDOW~1/hotspot/outputdir
HOTSPOT_EXPORT_PATH = C:/cygwin2/home/test/jdk6/build/WINDOW~1/hotspot/import
Bootstrap Settings:
BOOTDIR = /cygdrive/c/cygwin64/home/test/jdk6/glassfish3
ALT_BOOTDIR = /cygdrive/c/cygwin64/home/test/jdk6/glassfish3
BOOT_VER = 1.6.0 [requires at least 1.5]
OUTPUTDIR = C:/cygwin2/home/test/jdk6/build/WINDOW~1
ALT_OUTPUTDIR = C:/cygwin2/home/test/jdk6/build/WINDOW~1
ABS_OUTPUTDIR = C:/cygwin2/home/test/jdk6/build/WINDOW~1
Build Tool Settings:
SLASH_JAVA = J:
ALT_SLASH_JAVA =
VARIANT = OPT
JDK_DEVTOOLS_DIR = J:/devtools
ALT_JDK_DEVTOOLS_DIR =
ANT_HOME = /cygdrive/d/apache-ant-1.9.6/
UNIXCOMMAND_PATH = /usr/bin/
ALT_UNIXCOMMAND_PATH =
COMPILER_PATH = C:/PROGRA~2/MICROS~1.0/Common7/Tools/../../Vc/bin/amd64/
ALT_COMPILER_PATH =
DEVTOOLS_PATH = /usr/bin/
ALT_DEVTOOLS_PATH =
MSVCRT_DLL_PATH =
ALT_MSVCRT_DLL_PATH =
MSVCR71_DLL_PATH =
ALT_MSVCR71_DLL_PATH =
MSVCR100_DLL_PATH =
ALT_MSVCR100_DLL_PATH =
MSDEVTOOLS_PATH = C:/PROGRA~2/MICROS~1.0/Common7/Tools/../../Vc/bin/amd64/../../../
ALT_MSDEVTOOLS_PATH =
COMPILER_NAME = Microsoft Visual Studio 10 (16.00.30319.01)
COMPILER_VERSION = VS2010
CC_VER = 16.00.40219.01 [requires at least 16.10.40219.01]
ZIP_VER = 3.0 [requires at least 2.2]
UNZIP_VER = 6.00 [requires at least 5.12]
LINK_VER = 10.00.40219.01 [requires at least 10.00.40219.01]
ANT_VER = 1.8.0 [requires at least 1.6.3]
TEMPDIR = C:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp
Build Directives:
OPENJDK = true
USE_HOTSPOT_INTERPRETER_MODE =
PEDANTIC =
DEV_ONLY =
NO_DOCS =
NO_IMAGES =
TOOLS_ONLY =
INSANE =
COMPILE_APPROACH = normal
FASTDEBUG =
COMPILER_WARNINGS_FATAL = false
COMPILER_WARNING_LEVEL = 3
INCREMENTAL_BUILD = false
CC_HIGHEST_OPT =
CC_HIGHER_OPT =
CC_LOWER_OPT =
CXXFLAGS = -O1 -nologo -MD /D _STATIC_CPPLIB /D _DISABLE_DEPRECATE_STATIC_CPPLIB -Zc:wchar_t- -FdC:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp/obj64/.pdb -FmC:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp/obj64/.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
CFLAGS = -O1 -nologo -MD /D _STATIC_CPPLIB /D _DISABLE_DEPRECATE_STATIC_CPPLIB -Zc:wchar_t- -FdC:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp/obj64/.pdb -FmC:/cygwin2/home/test/jdk6/build/WINDOW~1/tmp/obj64/.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE
BOOT_JAVA_CMD = /cygdrive/c/cygwin64/home/test/jdk6/glassfish3/bin/java -Xmx384m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m
BOOT_JAVAC_CMD = /cygdrive/c/cygwin64/home/test/jdk6/glassfish3/bin/javac -J-XX:ThreadStackSize=1536 -J-Xmx384m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -Xlint:-path -encoding ascii -source 5 -target 5 -XDignore.symbol.file=true
BOOT_JAR_CMD = /cygdrive/c/cygwin64/home/test/jdk6/glassfish3/bin/jar
BOOT_JARSIGNER_CMD = /cygdrive/c/cygwin64/home/test/jdk6/glassfish3/bin/jarsigner
Build Platform Settings:
USER = test
PLATFORM = windows
ARCH = amd64
LIBARCH = amd64
ARCH_FAMILY = amd64
ARCH_DATA_MODEL = 64
ARCHPROP = amd64
PROCESSOR_ARCHITECTURE = AMD64
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
USING_CYGWIN = true
CYGWIN_VER = 10.0 [requires at least 4.0]
CYGPATH_CMD = cygpath -a -s -m
OS_VERSION = 10.0 [requires at least 5.2]
OS_VARIANT_NAME =
OS_VARIANT_VERSION = 10.0
MB_OF_MEMORY = 512
GNU Make Settings:
MAKE = make
MAKE_VER = 4.2.1 [requires at least 3.78]
MAKECMDGOALS = sanity
MAKEFLAGS = w
SHELL = /bin/sh
Target Build Versions:
JDK_VERSION = 1.6.0
MILESTONE = internal
RELEASE = 1.6.0-internal
FULL_VERSION = 1.6.0-internal-test_04_dec_2018_16_02-b00
BUILD_NUMBER = b00
External File/Binary Locations:
USRJDKINSTANCES_PATH = C:/PROGRA~1/Java
BUILD_JDK_IMPORT_PATH = J:/re/openjdk/6/promoted/latest/binaries
ALT_BUILD_JDK_IMPORT_PATH =
JDK_IMPORT_PATH = J:/re/openjdk/6/promoted/latest/binaries/windows-amd64
ALT_JDK_IMPORT_PATH =
LANGTOOLS_DIST =
ALT_LANGTOOLS_DIST = C:/cygwin2/home/test/jdk6/build/WINDOW~1/langtools/dist
CORBA_DIST =
ALT_CORBA_DIST = C:/cygwin2/home/test/jdk6/build/WINDOW~1/corba/dist
JAXP_DIST =
ALT_JAXP_DIST = C:/cygwin2/home/test/jdk6/build/WINDOW~1/jaxp/dist
JAXWS_DIST =
ALT_JAXWS_DIST = C:/cygwin2/home/test/jdk6/build/WINDOW~1/jaxws/dist
HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR
ALT_HOTSPOT_DOCS_IMPORT_PATH =
HOTSPOT_IMPORT_PATH = C:/cygwin2/home/test/jdk6/build/WINDOW~1/hotspot/import
ALT_HOTSPOT_IMPORT_PATH = C:/cygwin2/home/test/jdk6/build/WINDOW~1/hotspot/import
HOTSPOT_SERVER_PATH = C:/cygwin2/home/test/jdk6/build/WINDOW~1/hotspot/import/jre/bin/server
ALT_HOTSPOT_SERVER_PATH =
HOTSPOT_LIB_PATH = C:/cygwin2/home/test/jdk6/build/WINDOW~1/hotspot/import/lib
ALT_HOTSPOT_LIB_PATH =
DXSDK_VER = 0x0900
DXSDK_PATH = C:/PROGRA~2/MI5E29~1/UTILIT~1/bin/x64
ALT_DXSDK_PATH = C:/PROGRA~2/MI5E29~1/UTILIT~1/bin/x64
DXSDK_INCLUDE_PATH = C:/PROGRA~2/MI5E29~1/Include
ALT_DXSDK_INCLUDE_PATH = C:/PROGRA~2/MI5E29~1/Include
DXSDK_LIB_PATH = C:/PROGRA~2/MI5E29~1/UTILIT~1/bin/x64/Lib/x64
ALT_DXSDK_LIB_PATH =
CACERTS_FILE = ./../src/share/lib/security/cacerts
ALT_CACERTS_FILE =
OpenJDK-specific settings:
FREETYPE_HEADERS_PATH = C:/cygwin2/home/test/jdk6/FREETY~1.3/include/
ALT_FREETYPE_HEADERS_PATH = C:/cygwin2/home/test/jdk6/FREETY~1.3/include/
FREETYPE_LIB_PATH = C:/cygwin2/home/test/jdk6/FREETY~1.3/lib64/
ALT_FREETYPE_LIB_PATH = C:/cygwin2/home/test/jdk6/FREETY~1.3/lib64/
PLUG_LIBRARY_NAMES =
Previous JDK Settings:
PREVIOUS_RELEASE_PATH = J:/re/jdk/1.6.0/archive/fcs/bundles/windows-amd64
ALT_PREVIOUS_RELEASE_PATH =
PREVIOUS_JDK_VERSION = 1.6.0
ALT_PREVIOUS_JDK_VERSION =
PREVIOUS_JDK_FILE = jdk-6-windows-amd64.tar
ALT_PREVIOUS_JDK_FILE =
PREVIOUS_JRE_FILE = jre-6-windows-amd64.tar
ALT_PREVIOUS_JRE_FILE =
PREVIOUS_RELEASE_IMAGE =
ALT_PREVIOUS_RELEASE_IMAGE =
WARNING: This machine appears to only have 512Mb of physical memory,
builds on this machine could be slow.
ERROR: FreeType version 2.3.0 or higher is required.
Exiting because of the above error(s).
make: *** [make/sanity-rules.gmk:57: post-sanity] Error 1
Я полонЛюбой новичок в этом, любая помощь приветствуется.