clang-test build in visual studio

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

clang-test build in visual studio

kalyan ponnala
Hi,

I am using the solution file derived by cmake-gui and visual studio. I am still trying to get the "clang-test" target build. No matter what I try it keeps giving me errors. :(
Failing Tests (1):
Clang::(test path)
Expected Passes : 1704
Expected Failures : 18
Unexpected Failures: 1
I was going through the "hacking on clang" page "http://clang.llvm.org/hacking.html" and I found this :

------------------------------------------

Note that a few tests currently fail on Windows. We are working to correct this. Therefore your output might look something like this:

lit.py: lit.cfg:152: note: using clang: 'C:/Tools/llvm/bin/Debug\\clang.EXE'
-- Testing: 1723 tests, 2 threads --
FAIL: Clang::(test path) (659 of 1723)
******************** TEST 'Clang::(test path)' FAILED ********************
Script:
(commands run)
Command Output (stdout):
(output here)
Command Output (stderr):
(output here)
********************
Testing Time: 83.66s
********************
Failing Tests (1):
Clang::(test path)
Expected Passes : 1704
Expected Failures : 18
Unexpected Failures: 1

The last statistic, "Unexpected Failures", is the important one.

---------------------------------------------
Can any one tell me if these errors have been fixed or not. And if not. How do people say "testing clang regression tests" work??

--
Kalyan Ponnala
phone: 8163772059

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang-test build in visual studio

Douglas Gregor

On Feb 22, 2010, at 6:39 PM, kalyan ponnala wrote:

Hi,

I am using the solution file derived by cmake-gui and visual studio. I am still trying to get the "clang-test" target build. No matter what I try it keeps giving me errors. :(
Failing Tests (1):
Clang::(test path)
Expected Passes : 1704
Expected Failures : 18
Unexpected Failures: 1
I was going through the "hacking on clang" page "http://clang.llvm.org/hacking.html" and I found this :

------------------------------------------

Note that a few tests currently fail on Windows. We are working to correct this. Therefore your output might look something like this:

lit.py: lit.cfg:152: note: using clang: 'C:/Tools/llvm/bin/Debug\\clang.EXE'
-- Testing: 1723 tests, 2 threads --
FAIL: Clang::(test path) (659 of 1723)
******************** TEST 'Clang::(test path)' FAILED ********************
Script:
(commands run)
Command Output (stdout):
(output here)
Command Output (stderr):
(output here)
********************
Testing Time: 83.66s
********************
Failing Tests (1):
Clang::(test path)
Expected Passes : 1704
Expected Failures : 18
Unexpected Failures: 1

The last statistic, "Unexpected Failures", is the important one.

---------------------------------------------
Can any one tell me if these errors have been fixed or not. And if not. How do people say "testing clang regression tests" work??

All tests should pass on Windows. What test is failing for you?

- Doug

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: clang-test build in visual studio

kalyan ponnala
The first error was this:
-----------------------------------
1>FAIL: Clang :: CodeGen/lineno-dbginfo.c (467 of 2059)
1>******************** TEST 'Clang :: CodeGen/lineno-dbginfo.c' FAILED ********************
1>Script:
1>--
1>echo "#include <stdio.h>" > C:\Users\Kalyan\llvm\build\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.h
1>C:/Users/Kalyan/llvm/build/bin/Debug\clang.EXE  -S -save-temps -g -include C:\Users\Kalyan\llvm\build\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.h C:\Users\Kalyan\llvm\tools\clang\test\CodeGen\lineno-dbginfo.c -emit-llvm -o C:\Users\Kalyan\llvm\build\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.ll
1>grep "i32 5" C:\Users\Kalyan\llvm\build\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.ll
1>rm -f lineno-dbginfo.i
1>--
1>Exit Code: 1
1>Command Output (stdout):
1>--
1>Command 0: "echo" "#include <stdio.h>"
1>Command 0 Result: 0
1>Command 0 Output:
1>None
1>Command 0 Stderr:
1>Command 1: "C:/Users/Kalyan/llvm/build/bin/Debug\clang.EXE" "-S" "-save-temps" "-g" "-include" "C:\Users\Kalyan\llvm\build\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.h" "C:\Users\Kalyan\llvm\tools\clang\test\CodeGen\lineno-dbginfo.c" "-emit-llvm" "-o" "C:\Users\Kalyan\llvm\build\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.ll"
1>Command 1 Result: 1
1>Command 1 Output:
1>Command 1 Stderr:
1>In file included from <built-in>:109:
1>In file included from <command line>:1:
1>C:\\Users\\Kalyan\\llvm\\build\\tools\\clang\\test\\CodeGen\\Output\\lineno-dbginfo.c.tmp.h(1) :  fatal error: 'stdio.h' file not found
1>#include <stdio.h>
-----------------------------------------------------------

AND THE FINAL RESULT IS IN THIS WAY:
1>********************
1>Testing Time: 303.09s
1>********************
1>Failing Tests (10):
1>    Clang :: CodeGen/lineno-dbginfo.c
1>    Clang :: Preprocessor/clang_headers.c
1>    Clang :: Preprocessor/has_include.c
1>    Clang :: Preprocessor/header_lookup1.c
1>    Clang :: Preprocessor/include-directive2.c
1>    Clang :: Sema/attr-malloc.c
1>    Clang :: Sema/i-c-e.c
1>    Clang :: Sema/return.c
1>    Clang :: Sema/shift.c
1>    Clang :: SemaTemplate/example-dynarray.cpp
1>  Expected Passes    : 2031
1>  Expected Failures  : 18
1>  Unexpected Failures: 10
1>lit.py: lit.cfg:124: note: using clang: 'C:/Users/Kalyan/llvm/build/bin/Debug\\clang.EXE'
1>Project : error PRJ0019: A tool returned an error code from "Running Clang regression tests"
1>Build log was saved at "file://c:\Users\Kalyan\llvm\build\tools\clang\test\clang-test.dir\Debug\BuildLog.htm"
1>clang-test - 7 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 54 up-to-date, 0 skipped ==========
------------------------------------------------------------

On Mon, Feb 22, 2010 at 10:17 PM, Douglas Gregor <[hidden email]> wrote:

On Feb 22, 2010, at 6:39 PM, kalyan ponnala wrote:

Hi,

I am using the solution file derived by cmake-gui and visual studio. I am still trying to get the "clang-test" target build. No matter what I try it keeps giving me errors. :(
Failing Tests (1):
Clang::(test path)
Expected Passes : 1704
Expected Failures : 18
Unexpected Failures: 1
I was going through the "hacking on clang" page "http://clang.llvm.org/hacking.html" and I found this :

------------------------------------------

Note that a few tests currently fail on Windows. We are working to correct this. Therefore your output might look something like this:

lit.py: lit.cfg:152: note: using clang: 'C:/Tools/llvm/bin/Debug\\clang.EXE'
-- Testing: 1723 tests, 2 threads --
FAIL: Clang::(test path) (659 of 1723)
******************** TEST 'Clang::(test path)' FAILED ********************
Script:
(commands run)
Command Output (stdout):
(output here)
Command Output (stderr):
(output here)
********************
Testing Time: 83.66s
********************
Failing Tests (1):
Clang::(test path)
Expected Passes : 1704
Expected Failures : 18
Unexpected Failures: 1

The last statistic, "Unexpected Failures", is the important one.

---------------------------------------------
Can any one tell me if these errors have been fixed or not. And if not. How do people say "testing clang regression tests" work??

All tests should pass on Windows. What test is failing for you?

- Doug



--
Kalyan Ponnala
phone: 8163772059

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev