JDK-6806046 : Hotspot build error when compiled from Visual Studio
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2009-02-16
  • Updated: 2012-10-08
  • Resolved: 2009-03-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u18Fixed 7Fixed hs15Fixed
Description
Hotspot build ends with an error when compiled from Visual Studio using a project created with create.bat. The error message is

src\share\vm\compiler\disassembler.cpp(34) : error C2146: syntax error : missing ';' before identifier 'HOTSPOT_LIB_ARCH'
src\share\vm\compiler\disassembler.cpp(34) : fatal error C1004: unexpected end of file found

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/82e4d969e7cb
20-02-2009

EVALUATION The error is because HOTSPOT_LIB_ARCH is not defined in the preprocessor definitions if the project properties. Those are defined in src/share/tools/MakeDeps/BuildConfig.java
19-02-2009

SUGGESTED FIX --- old/src/share/tools/MakeDeps/BuildConfig.java Mon Feb 16 18:25:13 2009 +++ new/src/share/tools/MakeDeps/BuildConfig.java Mon Feb 16 18:25:13 2009 @@ -247,6 +247,7 @@ sysDefines.add("HOTSPOT_BUILD_USER="+System.getProperty("user.name")); sysDefines.add("HOTSPOT_BUILD_TARGET=\\\""+get("Build")+"\\\""); sysDefines.add("_JNI_IMPLEMENTATION_"); + sysDefines.add("HOTSPOT_LIB_ARCH=\\\"i486\\\""); sysDefines.addAll(defines);
16-02-2009