Compile hotspot VS2010 project errors,

Dang Nhan Nguyen nhann at chalmers.se
Tue Dec 21 12:27:55 UTC 2010


Hi,

I used make/windows/create.bat to create VS-project for 64bits (x86_64). Maybe it caused the errors.

Is there any script to create VS-project for 64bits?


/Nhan

-----Original Message-----
From: Bengt Rutisson [mailto:bengt.rutisson at oracle.com] 
Sent: Tuesday, December 21, 2010 9:22 AM
To: Bengt Rutisson; Dang Nhan Nguyen
Cc: hotspot-gc-dev at openjdk.java.net
Subject: RE: Compile hotspot VS2010 project errors,


...one thing I forgot. The make/windows/create.bat script only creates a 32-bit VS-project.

Bengt

> -----Original Message-----
> From: Bengt Rutisson 
> Sent: den 21 december 2010 07:47
> To: Dang Nhan Nguyen
> Cc: hotspot-gc-dev at openjdk.java.net
> Subject: Re: Compile hotspot VS2010 project errors,
> 
> 
> Hi Nhan,
> 
> How did you create the VS2010 project? Did you use the 
> make/windows/create.bat script?
> 
> If not, I suggest that you try it out. Staffan Larsen 
> recently updated it and I find that it works well.
> 
> Bengt
> 
> 
> 20 dec 2010 kl. 19:29 skrev Dang Nhan Nguyen <nhann at chalmers.se>:
> 
> > Hi everyone,
> > 
> > Following the errors in previous mail (below).
> > I changed the platform parameter (of the hotspot VS2010 
> project) to x64 (which I think matching with arch parameter 
> x86_64 when running hotspot/make/windows/create.bat scripts.
> > And the errors now is:
> > 
> > 1>------ Build started: Project: vm, Configuration: 
> core_debug x64 ------
> > 1>  java.cpp
> > 
> 1>d:\tools\openjdk\openjdk7\openjdk\hotspot-copy\src\share\vm\
runtime\globals.hpp(43): error C2370: 'pd_InlineSmallCode' : > redefinition; different storage class
> > 1>          
> D:\Tools\openjdk\openjdk7\openjdk\hotspot-copy\src\cpu\x86\vm\
globals_x86.hpp(50) : see declaration of 'pd_InlineSmallCode'
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot-copy\src\os_cpu\wi
ndows_x86\vm\orderAccess_windows_x86.inline.hpp(36): error > C4235: nonstandard extension used : '__asm' keyword not 
> supported on this architecture
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot-copy\src\os_cpu\wi
ndows_x86\vm\orderAccess_windows_x86.inline.hpp(37): error > C2065: 'mov' : undeclared identifier
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot-copy\src\os_cpu\wi
ndows_x86\vm\orderAccess_windows_x86.inline.hpp(37): error > C2146: syntax error : missing ';' before identifier 'eax'
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot-copy\src\os_cpu\wi
ndows_x86\vm\orderAccess_windows_x86.inline.hpp(37): error > C2065: 'eax' : undeclared identifier
> > ...<and continue with the similar errors>...
> > ==============================================
> > I built OpenJDK7_b121 on Windows 7 (64bit), on an Intel Dou 
> core E8400.
> > During building process and running the script, the 
> architecture parameter is amd64 or x86_64 respectively.
> > 
> > Why error C4235:  state that __asm is not supported?
> > If it is not supported by x64 architecture, why the 
> create.bat script create such a file?
> > 
> > And most important: how to fix it?
> > 
> > Thank you for your help,
> > /Nhan
> > 
> > 
> > 
> > -----Original Message-----
> > From: hotspot-gc-dev-bounces at openjdk.java.net 
> [mailto:hotspot-gc-dev-bounces at openjdk.java.net] On Behalf Of 
> Dang Nhan Nguyen
> > Sent: Monday, December 20, 2010 6:25 PM
> > To: hotspot-gc-dev at openjdk.java.net
> > Subject: Compile hotspot VS2010 project errors,
> > 
> > Hi everyone,
> > 
> > I have successfully built OpenJDK7 on Windows 7, using VS2010.
> > 
> > Now I create a VC2010 project of the hotspot with 
> hotspot/make/windows/create.bat script.
> > The I compile the created project in VS2010, and got the 
> below error (So far, I have not change anything in the 
> hotspot source code):
> > 
> > =========
> > 1>------ Build started: Project: vm, Configuration: 
> compiler1_debug Win32 ------
> > 1>  java.cpp
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot\src\cpu\x86\vm\int
erp_masm_x86_64.hpp(65): error C2065: 'r13' : undeclared > identifier
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot\src\cpu\x86\vm\int
erp_masm_x86_64.hpp(69): error C2065: 'r13' : undeclared > identifier
> > 
> 1>D:\Tools\openjdk\openjdk7\openjdk\hotspot\src\cpu\x86\vm\int
erp_masm_x86_64.hpp(73): error C2065: 'r14' : undeclared > identifier
> > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 
> skipped ==========
> > 
> > ==========
> > 
> > Could somebody explain about the problem and solution suggestion?
> > 
> > Thank you,
> > /Nhan
> 
>



More information about the hotspot-gc-dev mailing list