United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6806046 Hotspot build error when compiled from Visual Studio
JDK-6806046 : Hotspot build error when compiled from Visual Studio

Details
Type:
Bug
Submit Date:
2009-02-16
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2009-03-18
Component:
hotspot
OS:
windows
Sub-Component:
runtime
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs15 (b03)

Related Reports
Backport:
Backport:

Sub Tasks

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
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);
                                     
2009-02-16
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
                                     
2009-02-19
EVALUATION

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



Hardware and Software, Engineered to Work Together