You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Tim Ellison <t....@gmail.com> on 2008/03/02 11:20:20 UTC

[build] Re: build problem

lyon wrote:
> I build the harmony.
> the error as follows.
> 
> I have found that the "I_64" was defined in the file "hycomp.h",
> The hythread.h had included the "hycomp.h".
> 
> why didn't the programm know the identifier "I_64"?
> 
> make-all:
> 
> -build-native:
> [echo] Making "" in
> C:\trunk\working_classlib\modules\portlib\src\main\native/common/windows
> [exec] cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -FIsehmap.h
> -D_X86_=1 -D_WIN95 -D_WIN32_WINDOWS=0x0400 -D_WIN32_IE=0x0500 -DWIN
> CURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE
> -D_DLL -D_MT -D_WINSOCKAPI_ /IC:\trunk\working_classlib\deploy\include /
> .\shared\ -Fo..\shared\libglob.obj ..\shared\libglob.c
> [exec] libglob.c
> [exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
> C2146: syntax error : missing ')' before identifier 'millis'

<snip>

Hi lyon,

What compiler and OS are you building on?

Your compile line looks a bit different to mine. You don't have -DWIN32
defined.

Thanks,
Tim

Re: [build] Re: build problem

Posted by Tim Ellison <t....@gmail.com>.
lyon wrote:
> Tim Ellison 写道:
>> What compiler and OS are you building on?
>>
>> Your compile line looks a bit different to mine. You don't have -DWIN32
>> defined.
>>
> I think I have solve the problem.
> 
> When execute the command 'cl', it was wrong. It have to config the Microsoft Visual Studio .NET environment.
> My Microsoft Visual Studio .NET is 2005,so it has something wrong .
> 

Ah, that answers my previous question.  I only have Visual Studio 2003,
and have heard other people had trouble with 2005.  Can anyone else with
the same version help lyon?

Tim

Re: [build] Re: build problem

Posted by lyon <us...@gmail.com>.
Tim Ellison 写道:
> lyon wrote:
>   
>> I build the harmony.
>> the error as follows.
>>
>> I have found that the "I_64" was defined in the file "hycomp.h",
>> The hythread.h had included the "hycomp.h".
>>
>> why didn't the programm know the identifier "I_64"?
>>
>> make-all:
>>
>> -build-native:
>> [echo] Making "" in
>> C:\trunk\working_classlib\modules\portlib\src\main\native/common/windows
>> [exec] cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -FIsehmap.h
>> -D_X86_=1 -D_WIN95 -D_WIN32_WINDOWS=0x0400 -D_WIN32_IE=0x0500 -DWIN
>> CURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE
>> -D_DLL -D_MT -D_WINSOCKAPI_ /IC:\trunk\working_classlib\deploy\include /
>> .\shared\ -Fo..\shared\libglob.obj ..\shared\libglob.c
>> [exec] libglob.c
>> [exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
>> C2146: syntax error : missing ')' before identifier 'millis'
>>     
>
> <snip>
>
> Hi lyon,
>
> What compiler and OS are you building on?
>
> Your compile line looks a bit different to mine. You don't have -DWIN32
> defined.
>
> Thanks,
> Tim
>
>   
I think I have solve the problem.

When execute the command 'cl', it was wrong. It have to config the Microsoft Visual Studio .NET environment.
My Microsoft Visual Studio .NET is 2005,so it has something wrong .



Re: [build] Re: build problem

Posted by Tim Ellison <t....@gmail.com>.
lyon wrote:
> Tim Ellison 写道:
>> lyon wrote:
>>> -build-native:
>>> [echo] Making "" in
>>> C:\trunk\working_classlib\modules\portlib\src\main\native/common/windows
>>> [exec] cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -FIsehmap.h
>>> -D_X86_=1 -D_WIN95 -D_WIN32_WINDOWS=0x0400 -D_WIN32_IE=0x0500 -DWIN
>>> CURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE
>>> -D_DLL -D_MT -D_WINSOCKAPI_ /IC:\trunk\working_classlib\deploy\include /
>>> .\shared\ -Fo..\shared\libglob.obj ..\shared\libglob.c
>>> [exec] libglob.c
>>> [exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
>>> C2146: syntax error : missing ')' before identifier 'millis'
>>>     
>> My OS is windows and my compiler is  ‘hy.javac.compiler’.
>>   
> When I build the harmony, it always says that :
> "
> The Eclipse compiler class for Ant could not be found. Please place the
> ECJ JAR in ANT_HOME/lib.
> The JAR can be downloaded directly from eclipse.org or copied from
> COMMON_RESOURCES/depends/jars/ecj_3.x folder after the fetch-depends
> target for JDKTOOLS has been run.
> Alternatively, you can switch to another compiler, e.g. specify
> '-Dhy.javac.compiler=modern' for classic javac.
> "
> So I run the ant with the option that is '-Dhy.javac.compiler=modern'.
> 
> ant -Dhy.javac.compiler=modern.


Sorry, I meant which native (C code) compiler?
The one that is reporting this error.

Thanks,
Tim

Re: [build] Re: build problem

Posted by lyon <us...@gmail.com>.
Tim Ellison 写道:
> lyon wrote:
>   
>> I build the harmony.
>> the error as follows.
>>
>> I have found that the "I_64" was defined in the file "hycomp.h",
>> The hythread.h had included the "hycomp.h".
>>
>> why didn't the programm know the identifier "I_64"?
>>
>> make-all:
>>
>> -build-native:
>> [echo] Making "" in
>> C:\trunk\working_classlib\modules\portlib\src\main\native/common/windows
>> [exec] cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -FIsehmap.h
>> -D_X86_=1 -D_WIN95 -D_WIN32_WINDOWS=0x0400 -D_WIN32_IE=0x0500 -DWIN
>> CURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE
>> -D_DLL -D_MT -D_WINSOCKAPI_ /IC:\trunk\working_classlib\deploy\include /
>> .\shared\ -Fo..\shared\libglob.obj ..\shared\libglob.c
>> [exec] libglob.c
>> [exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
>> C2146: syntax error : missing ')' before identifier 'millis'
>>     
> My OS is windows and my compiler is  ‘hy.javac.compiler’.
>   
When I build the harmony, it always says that :
"
The Eclipse compiler class for Ant could not be found. Please place the
ECJ JAR in ANT_HOME/lib.
The JAR can be downloaded directly from eclipse.org or copied from
COMMON_RESOURCES/depends/jars/ecj_3.x folder after the fetch-depends
target for JDKTOOLS has been run.
Alternatively, you can switch to another compiler, e.g. specify
'-Dhy.javac.compiler=modern' for classic javac.
"
So I run the ant with the option that is '-Dhy.javac.compiler=modern'.

ant -Dhy.javac.compiler=modern.

> <snip>
>
> Hi lyon,
>
> What compiler and OS are you building on?
>
> Your compile line looks a bit different to mine. You don't have -DWIN32
> defined.
>
> Thanks,
> Tim
>
>