with vs2008 + winxp x86 32bit, I resolved the compier error but got
following error when run the tests.
-get-test-vm-output:
[exec] Execute failed: java.io.IOException: CreateProcess: D:\workingcopy\b
ranch6\deploy\jdk\jre\bin\java -version error=193
test-jre-vm-info:
[echo] java -version
[echo] ${test.vm.info.tmp}
[echo] hy.test.vm.name = drl
test-module:
[echo] Running luni Unit Test from luni_tests_api.jar
[echo] Tested jre: D:\workingcopy\branch6\deploy\jdk\jre/bin/java
[mkdir] Created dir: D:\workingcopy\branch6\build\test_report
[junit] Running org.apache.harmony.luni.tests.util.UtilTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
BUILD FAILED
D:\workingcopy\branch6\build.xml:181: The following error occurred while executi
ng this line:
D:\workingcopy\branch6\make\build-test.xml:54: The following error occurred whil
e executing this line:
D:\workingcopy\branch6\make\properties.xml:529: The following error occurred whi
le executing this line:
D:\workingcopy\branch6\make\properties.xml:541: The following error occurred whi
le executing this line:
D:\workingcopy\branch6\modules\luni\build.xml:334: The following error occurred
while executing this line:
D:\workingcopy\branch6\deploy\build\test\luni\build.xml:36: The following error
occurred while executing this line:
D:\workingcopy\branch6\make\properties.xml:732: Process fork failed.
seems the java -version does not work, but I it works when I try it manually,
D:\workingcopy\branch6>deploy\jdk\jre\bin\java -version
Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundatio
n or its licensors, as applicable.
java version "1.5.0"
Apache Harmony (1.5.0)
DRLVM (11.2.0)
pre-alpha : not complete or compatible
svn = r810364, (Sep 2 2009), Windows/ia32/msvc 1310, release build
http://harmony.apache.org
anybody experienced this?
On Mon, Dec 21, 2009 at 1:51 PM, Tony Wu <[email protected]> wrote:
> Renaming IFTYPE solves this problem, I think there is a defination in
> VS2008 with the same name.
>
> On Fri, Dec 18, 2009 at 9:16 PM, Tim Ellison <[email protected]> wrote:
>> While I can build ok using VisualStudio 2003, I have build problems now
>> on VisualStudio 2008.
>>
>>> [exec] cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS
>>> -FIsehmap.h -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WIN95
>>> -D_WIN32_WINDOWS=0x0400 /D_WIN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400
>>> -Zi -Od -WX -GF -Gs -MD -Zm400 -D_CRT_SECURE_NO_DEPRECATE
>>> -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_DLL -D_
>>> MT -D_WINSOCKAPI_ /ID:\java6\working_classlib\deploy\include
>>> /ID:\java6\working_classlib\deploy\jdk\include /I. /I..\shared\
>>> -Fohelpers.obj helpers.c
>>> [exec] helpers.c
>>> [exec] helpers.c(65) : error C2365: 'IFTYPE' : redefinition; previous
>>> definition was 'typedef'
>>> [exec] C:\Program Files\Microsoft
>>> SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE'
>>> [exec] helpers.c(65) : error C2086: 'IFTYPE' : redefinition
>>> [exec] helpers.c(65) : see declaration of 'IFTYPE'
>>> [exec] helpers.c(737) : error C2275: 'IFTYPE' : illegal use of this
>>> type as an expression
>>> [exec] C:\Program Files\Microsoft
>>> SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE'
>>> [exec] helpers.c(737) : error C2046: illegal case
>>> [exec] helpers.c(772) : error C2275: 'IFTYPE' : illegal use of this
>>> type as an expression
>>> [exec] C:\Program Files\Microsoft
>>> SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE'
>>> [exec] helpers.c(772) : error C2198:
>>> 'getPlatformNetworkInterfaceAttribute' : too few arguments for call
>>> [exec] helpers.c(777) : error C2275: 'IFTYPE' : illegal use of this
>>> type as an expression
>>> [exec] C:\Program Files\Microsoft
>>> SDKs\Windows\v6.0A\include\ipifcons.h(238) : see declaration of 'IFTYPE'
>>> [exec] helpers.c(777) : error C2198:
>>> 'getPlatformNetworkInterfaceAttribute' : too few arguments for call
>>> [exec] NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual
>>> Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
>>> [exec] Stop.
>>
>> Anyone else see this?
>>
>> Regards,
>> Tim
>>
>>
>> On 18/Dec/2009 11:21, Ray Chen wrote:
>>> Hi All,
>>>
>>> I run the java6 test on windows platform, 27059 tests ran, and I see
>>> 18 failures and 15 errors
>>> Failures:
>>> *javax.swing.plaf.basic.BasicScrollBarUITest.testGetThumbBounds
>>> expected: 16, actual: 0
>>> javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4615
>>> null expected:<[line4 line4]> but was:<[ line4 line]>
>>> org.apache.harmony.luni.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxy2
>>> should throw ConnectException
>>> org.apache.harmony.luni.tests.java.net.MulticastSocketTest.test_setInterfaceLjava_net_InetAddress
>>> Exception during test : null
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getName
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getInetAddresses
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getDisplayName
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getByNameLjava_lang_String
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getByInetAddressLjava_net_InetAddress
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getNetworkInterfaces
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_equalsLjava_lang_Object
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_hashCode
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_toString
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getInterfaceAddresses
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_isLoopback
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getHardwareAddress
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.NetworkInterfaceTest.test_getMTU
>>> Exception occurred getting network interfaces :
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.URLConnectionTest.test_getInputStream
>>> null expected:<[zyxwvuts]> but was:<[]>
>>>
>>> Errors:
>>> javax.swing.text.html.HTMLDocument_Reader_ActionsTest.testHarmony_4582
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.io.OutputStreamWriterTest.testHandleEarlyEOFChar_1
>>> java.nio.BufferOverflowException
>>> org.apache.harmony.luni.tests.java.io.OutputStreamWriterTest.testHandleEarlyEOFChar_2
>>> java.nio.BufferOverflowException
>>> org.apache.harmony.luni.tests.java.io.WriterTesterTest$FileWriterCharSinkTester:sinkTestWriteLargeArray
>>> java.nio.BufferOverflowException
>>> org.apache.harmony.luni.tests.java.net.InetAddressTest.test_isReachableLjava_net_NetworkInterfaceII
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InetAddressTest.test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_hashCode
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_equals_LObject
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_toString
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_getAddress
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_getBroadcast
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.InterfaceAddressTest.test_getNetworkPrefixLength
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.MulticastSocketTest.test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.MulticastSocketTest.test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface
>>> java.lang.NullPointerException
>>> org.apache.harmony.luni.tests.java.net.WinNetworkInterfaceTest.test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface
>>> java.lang.NullPointerException
>>>
>>>
>>>
>>> I think the test failures of network interface related to JIRA6369
>>> which means there are bugs in our portlib code on windows platform.
>>> And the test case start with"*" sucess when I ran it standalone.
>>>
>>>
>>
>
>
>
> --
> Tony Wu
> China Software Development Lab, IBM
>
--
Tony Wu
China Software Development Lab, IBM