request for review - 6806046 (XXS)
Ivan Krylov
Ivan.Krylov at Sun.COM
Tue Feb 24 04:23:27 PST 2009
Coleen,
Yes, I got 2 reviews. Thanks to Xiaobin and Keith.
The patch was integrated on Friday.
Thanks,
Ivan
Changeset: 82e4d969e7cb
Author: ikrylov
Date: 2009-02-19 04:54 -0500
URL: http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/82e4d969e7cb
6806046: Hotspot build error when compiled from Visual Studio
Summary: Define HOTSPOT_LIB_ARCH in the preprocessor flags of the generated projects
Reviewed-by: kamg, xlu
! src/share/tools/MakeDeps/BuildConfig.java
Coleen Phillimore - Sun Microsystems wrote:
>
> Ivan, Did you get reviews? It looks okay to me, a few more backslashes
> never hurt.
> Are you going to check this into hotspot-rt repository?
> Thanks!
> Coleen
>
> On 02/18/09 04:16, Ivan Krylov wrote:
>> Sorry, this fix should be
>> + sysDefines.add("HOTSPOT_LIB_ARCH=\\\"i486\\\"");
>> Ivan
>>
>> Ivan Krylov wrote:
>>> Hi,
>>>
>>> This is a fix for CR 6806046.
>>>
>>> There is a file that we keep in the repository called create.bat
>>> This file creates a Visual Studio project using java code from
>>> share\tools\MakeDeps
>>> At some point compilation of vm got broken in such generated projects.
>>>
>>> This is the error message:
>>> 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
>>>
>>> Clearly it is because HOTSPOT_LIB_ARCH is not defined in the
>>> preprocessor definitions if the project properties.
>>>
>>> Since we do not use the IDE for production binaries this
>>> functionality is secondary.
>>>
>>> Still this 1-line fix is worth integrating, imo.
>>>
>>> === *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);
>>>
>>> Thanks,
>>>
>>> Ivan
>>>
>>> PS There is a file to create a VS project for 64-bit vm but I was not
>>> updated for years. I will look into it later.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
More information about the hotspot-runtime-dev
mailing list