This is a matter for [email protected], not the build folk.
Thanks,
David
On 23/04/2026 11:49 pm, [email protected] wrote:
Problem Description
While using the Build Environment to build Visual Studio 2010 Professional
(Original Release), there has something failure on build Open JDK 8 update 492,
due to the following issue:
1. Undefined ASSOCF_NONE in awt_Desktop.cpp
When building with Windows SDK v7.0a (associated with MSVC 2010), the
identifier ASSOCF_NONE is undefined, resulting in a compilation error.
2. FreeType inline Syntax Error (ftcalc.h)
The build fails within ftcalc.h because the legacy compiler does not correctly
interpret the standard inline keyword, expecting __inline instead.
Error Log:
c:\jdk8u\jdk\src\share\native\sun\awt\libfreetype\include\freetype/internal/ftcalc.h(91)
: error C2054: expected '(' to follow 'inline'
c:\jdk8u\jdk\src\share\native\sun\awt\libfreetype\include\freetype/internal/ftcalc.h(93)
: error C2085: 'FT_MulFix_64' : not in formal parameter list
c:\jdk8u\jdk\src\share\native\sun\awt\libfreetype\include\freetype/internal/ftcalc.h(93)
: error C2143: syntax error : missing ';' before '{'
Better Solution
- AWT: Added a conditional macro definition for ASSOCF_NONE specifically for
builds when using Microsoft Visual C++ 2010 Professional.
- FreeType: Modified ftcalc.h to ensure compatibility with the legacy
compiler's handling of inline functions, or using compiler.
Note: As recent builds (tags containing 'ga') fail when using the compiler
version suggested in doc/building.html, it is recommended to update the
compiler version which specified in the documentation.
Build Environment
- OS: Windows Server 2003 SP2
- Compiler: Microsoft Visual C++ 2010 Professional (Windows SDK v7.0a), cl.exe
version: 16.00.30319.01
- Bootstrap JDK: Oracle JDK 7 update 80
- source tag: jdk8u492-ga
- configure argument: --with-target-bits=64 --with-build-number=b09
--with-milestone=LTS --with-boot-jdk='/cygdrive/c/Program
Files/Java/jdk1.7.0_80/' --with-native-debug-symbols=none