[cfe-dev] Running clang (built with VS 2008) test suite on Windows

Eli Bendersky eliben at gmail.com
Sun Nov 7 03:52:40 PST 2010


Hello,

After some configuration woes, I managed to run the clang test suite on my
Windows 7 box, with clang built with MSVC 2008 (the source checked out
yesterday from trunk). Except the "index" lib which didn't build, all tests
pass except

    Clang :: CodeGenCXX/nullptr.cpp     (error with fatal error: 'typeinfo'
file not found)
    Clang :: CodeGenObjC/image-info.m

And a couple of tests that give Python errors and hence don't run, for
example:

UNRESOLVED: Clang :: Preprocessor/dependencies-and-pp.c (26 of 125)
******************** TEST 'Clang :: Preprocessor/dependencies-and-pp.c'
FAILED ********************
Exception during script execution:
Traceback (most recent call last):
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\main.py", line 122, in
runTest
    self.litConfig)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestFormats.py", line 124,
in execute
    self.execute_external)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 565, in
executeShTest
    res = executeScriptInternal(test, litConfig, tmpBase, script, execdir)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 246, in
executeScriptInternal
    exitCode = executeShCmd(cmd, test.config, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 54, in
executeShCmd
    res = executeShCmd(cmd.lhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 59, in
executeShCmd
    res = executeShCmd(cmd.rhs, cfg, cwd, results)
  File "c:\eli\test\llvm_svn\llvm\utils\lit\lit\TestRunner.py", line 166, in
executeShCmd
    close_fds = kUseCloseFDs))
  File "C:\Python26\lib\subprocess.py", line 623, in __init__
    errread, errwrite)
  File "C:\Python26\lib\subprocess.py", line 833, in _execute_child
    startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application


Is this normal, or is some other configuration missing?
Thanks in advance,
Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101107/3ad33dc4/attachment.html>


More information about the cfe-dev mailing list