You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by lyon <us...@gmail.com> on 2008/03/02 09:27:41 UTC

build problem

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'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
C2061: syntax error : identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
C2059: syntax error : ','
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(107) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(137) : error
C2146: syntax error : missing ')' before identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(137) : error
C2061: syntax error : identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(137) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(137) : error
C2059: syntax error : ','
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(137) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(180) : error
C2146: syntax error : missing ')' before identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(180) : error
C2081: 'I_64' : name in formal parameter list illegal
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(180) : error
C2061: syntax error : identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(180) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(180) : error
C2059: syntax error : ','
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(180) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(192) : error
C2146: syntax error : missing ')' before identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(192) : error
C2061: syntax error : identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(192) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(192) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(201) : error
C2146: syntax error : missing ')' before identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(201) : error
C2081: 'I_64' : name in formal parameter list illegal
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(201) : error
C2061: syntax error : identifier 'millis'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(201) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(201) : error
C2059: syntax error : ','
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(201) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(226) : error
C2061: syntax error : identifier 'hythread_get_cpu_time'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(226) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(226) : error
C2059: syntax error : 'type'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(231) : error
C2061: syntax error : identifier 'hythread_get_user_time'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(231) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hythread.h(231) : error
C2059: syntax error : 'type'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(236) : error
C2061: syntax error : identifier 'U_64'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(237) : error
C2059: syntax error : '}'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(254) : error
C2061: syntax error : identifier 'I_64'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(255) : error
C2061: syntax error : identifier 'dtime'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(255) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(256) : error
C2061: syntax error : identifier 'chtime'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(256) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(257) : error
C2059: syntax error : '}'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(277) : error
C2079: 'portVersion' uses undefined struct 'HyPortLibraryVersion'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(316) : error
C2061: syntax error : identifier 'I_64'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(319) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(319) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(319) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(321) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(321) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(321) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(323) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(323) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(323) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(324) : error
C2146: syntax error : missing ')' before identifier 'startTime'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(324) : error
C2081: 'U_64' : name in formal parameter list illegal
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(324) : error
C2061: syntax error : identifier 'startTime'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(324) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(324) : error
C2059: syntax error : ','
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(325) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(333) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(333) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(333) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(383) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(383) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(383) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(384) : error
C2146: syntax error : missing ')' before identifier 'offset'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(384) : error
C2081: 'I_64' : name in formal parameter list illegal
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(384) : error
C2061: syntax error : identifier 'offset'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(384) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(384) : error
C2059: syntax error : ','
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(384) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(395) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(395) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(395) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(398) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(398) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(398) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(402) : error
C2146: syntax error : missing ')' before identifier 'newLength'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(402) : error
C2081: 'I_64' : name in formal parameter list illegal
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(402) : error
C2061: syntax error : identifier 'newLength'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(402) : error
C2059: syntax error : ';'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(402) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(1008) : error
C2059: syntax error : '}'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(1174) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(1174) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(1174) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(70) : error
C2061: syntax error : identifier 'I_64'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(72) : error
C2371: 'portLib' : redefinition; different basic types
[exec] C:\trunk\working_classlib\deploy\include\hyport.h(1174) : see
declaration of 'portLib'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(75) : error
C2059: syntax error : '}'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2371: 'HyZipFile' : redefinition; different basic types
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(137) : see
declaration of 'HyZipFile'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2143: syntax error : missing ';' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2371: 'HyZipEntry' : redefinition; different basic types
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(124) : see
declaration of 'HyZipEntry'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2143: syntax error : missing ';' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2371: 'U_8' : redefinition; different basic types
[exec] C:\trunk\working_classlib\deploy\include\hycomp.h(82) : see
declaration of 'U_8'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2143: syntax error : missing ';' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : warning
C4142: benign redefinition of type
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2370: 'U_32' : redefinition; different storage class
[exec] C:\trunk\working_classlib\deploy\include\hycomp.h(80) : see
declaration of 'U_32'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2146: syntax error : missing ';' before identifier 'bufferSize'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(142) : error
C2059: syntax error : ')'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(145) : error
C2143: syntax error : missing ')' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(145) : error
C2143: syntax error : missing '{' before '*'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(145) : error
C2371: 'HyZipFile' : redefinition; different basic types
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(137) : see
declaration of 'HyZipFile'
[exec] C:\trunk\working_classlib\deploy\include\zipsup.h(145) : fatal
error C1003: error count exceeds 100; stopping compilation
[exec] NMAKE : fatal error U1077: 'cl' : return code '0x2'
[exec] Stop.

BUILD FAILED
C:\trunk\working_classlib\build.xml:148: The following error occurred
while executing this line:
C:\trunk\working_classlib\make\build-native.xml:73: The following error
occurred while executing this line:
C:\trunk\working_classlib\modules\portlib\build.xml:101: The following
error occurred while executing this line:
C:\trunk\working_classlib\make\properties.xml:492: exec returned: 2

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
>
>   


[build] Re: build problem

Posted by Tim Ellison <t....@gmail.com>.
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