Visual Studio project creator
Ivan Krylov
ivan at azulsystems.com
Wed Sep 25 05:12:09 PDT 2013
Folks,
I am not sure who is maintaining the visual studio project generator these days. It used to be the Runtime team in the past including myself.
I just created a jvm project for Visual Studio out of hsx 24 (7u40) using hotspot\make\windows\create <jdk> and I am seeing errors.
Out of the batch build all job I get this:
========== Rebuild All: 3 succeeded, 9 failed, 0 skipped ==========
I see several errors
1) the definitions in globals.hpp are guarded with
#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
which is not true for core targets
ClCompile:
java.cpp
c:\dev\jdk7u40-vanilla\hotspot\src\share\vm\runtime/globals.hpp(170): error C2370: 'pd_InlineSmallCode' : redefinition; different storage class
c:\dev\jdk7u40-vanilla\hotspot\src\cpu\x86\vm\globals_x86.hpp(56) : see declaration of 'pd_InlineSmallCode'
2) Missing an include directory for the generated jvmtifiles
ClCompile:
java.cpp
c:\dev\jdk7u40-vanilla\hotspot\src\share\vm\runtime/os.hpp(28): fatal error C1083: Cannot open include file: 'jvmtifiles/jvmti.h': No such file or directory
3) I also get the following warning:
jni.obj : warning LNK4197: export 'JNI_GetDefaultJavaVMInitArgs' specified multiple times; using first specification
jni.obj : warning LNK4197: export 'JNI_GetCreatedJavaVMs' specified multiple times; using first specification
jni.obj : warning LNK4197: export 'JNI_CreateJavaVM' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'jio_vsnprintf' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'jio_snprintf' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'jio_vfprintf' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'jio_printf' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'JVM_GetVersionInfo' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'jio_fprintf' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'JVM_InitAgentProperties' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'JVM_GetThreadStateValues' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'JVM_FindClassFromBootLoader' specified multiple times; using first specification
jvm.obj : warning LNK4197: export 'JVM_GetThreadStateNames' specified multiple times; using first specification
Creating library c:\dev\jdk7u40-vanilla\hotspot\build\vs-amd64\compiler1\product\jvm.lib and object c:\dev\jdk7u40-vanilla\hotspot\build\vs-amd64\compiler1\product\jvm.exp
jvm.vcxproj -> c:\dev\jdk7u40-vanilla\hotspot\build\vs-amd64\compiler1\product\jvm.dll
PostBuildEvent:
Description: Building hotspot.exe...
1 and 2 should be easy to fix, 3 - I am not sure.
Since I am looking at u40 could this have been fixed since then?
Thanks,
Ivan
More information about the hotspot-dev
mailing list