Visual Studio project creator
Francis ANDRE
francis.andre.kampbell at orange.fr
Sun Sep 29 01:10:50 PDT 2013
Hi Yvan
I just checked out
hg clone http://hg.openjdk.java.net/jdk7u/jdk7u40-dev/hotspot/
and run without any errors
create C:\Progra~1\Java\jdk1.7.0_40
The solution generated by create.bat is also compiling fine
1> java.c
1> mkdir launcher 2>NUL >NUL
1> cl /nologo /W3 /WX /D "IA32" /D "WIN32" /D "_WINDOWS" /D
"VM_LITTLE_ENDIAN" /D TARGET_OS_FAMILY_windows /D TARGET_ARCH_x86 /D
TARGET_ARCH_MODEL_x86_32 /D TARGET_OS_ARCH_windows_x86 /D
TARGET_OS_ARCH_MODEL_windows_x86_32 /D TARGET_COMPILER_visCPP /MD /D
_STATIC_CPPLIB /D _DISABLE_DEPRECATE_STATIC_CPPLIB /D
FULL_VERSION=\""\\\"24.0-b56-internal\\\""\" /D JDK_MAJOR_VERSION=\"\" /D
JDK_MINOR_VERSION=\"\" /D GAMMA /D LAUNCHER_TYPE=\"gamma\" /D
_CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE /D LINK_INTO_LIBJVM /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\os\windows\launcher /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\share\tools\launcher /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\share\vm\prims /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\share\vm /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\cpu\x86\vm /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\os\windows\vm /c /Folauncher\java_md.obj
Z:\DEV\OpenJDK_7u40\hotspot\/src/os/windows/launcher\java_md.c
1> java_md.c
1> mkdir launcher 2>NUL >NUL
1> cl /nologo /W3 /WX /D "IA32" /D "WIN32" /D "_WINDOWS" /D
"VM_LITTLE_ENDIAN" /D TARGET_OS_FAMILY_windows /D TARGET_ARCH_x86 /D
TARGET_ARCH_MODEL_x86_32 /D TARGET_OS_ARCH_windows_x86 /D
TARGET_OS_ARCH_MODEL_windows_x86_32 /D TARGET_COMPILER_visCPP /MD /D
_STATIC_CPPLIB /D _DISABLE_DEPRECATE_STATIC_CPPLIB /D
FULL_VERSION=\""\\\"24.0-b56-internal\\\""\" /D JDK_MAJOR_VERSION=\"\" /D
JDK_MINOR_VERSION=\"\" /D GAMMA /D LAUNCHER_TYPE=\"gamma\" /D
_CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE /D LINK_INTO_LIBJVM /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\os\windows\launcher /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\share\tools\launcher /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\share\vm\prims /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\share\vm /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\cpu\x86\vm /I
Z:\DEV\OpenJDK_7u40\hotspot\\src\os\windows\vm /c /Folauncher\jli_util.obj
Z:\DEV\OpenJDK_7u40\hotspot\/src/share/tools/launcher\jli_util.c
1> jli_util.c
1> echo C:\Progra~1\Java\jdk1.7.0_40 > jdkpath.txt
1> link.exe /SAFESEH /manifest jvm.lib kernel32.lib user32.lib /nologo
/machine:I386 /map /debug /subsystem:console /out:hotspot.exe launcher\java.obj
launcher\java_md.obj launcher\jli_util.obj
========== Génération : 1 a réussi, 0 a échoué, 0 mis à jour, 0 a été ignoré
==========
Francis
Le 25/09/2013 14:12, Ivan Krylov a écrit :
> 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