Unable to run lit.py for test

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Unable to run lit.py for test

toryb
Hello,

I have succesfull built clang with Visual Studio 2008 and am
attempting to run a simple test. When I enter the following
command:


C:\Projects\LLVM\LLVM\bin\Debug>python
"C:\Projects\LLVM\LLVM\utils\lit\lit.py"
-sv --no-progress-bar
"C:\Projects\LLVM\LLVM\tools\clang\test\Sema\wchar.c"

I receive the following output:

Traceback (most recent call last):
  File "C:\Projects\LLVM\LLVM\utils\lit\lit.py", line 4, in
<module>
    import lit
  File "C:\Projects\LLVM\LLVM\utils\lit\lit\__init__.py",
line 3, in <module>
    from lit import main
ImportError: cannot import name main

I have also tried to execute it from the lit directory with
the same result:

C:\Projects\LLVM\LLVM\utils\lit>python lit.py -sv
--no-progress-bar C:\Projects\
LLVM\LLVM\tools\clang\test\Sema\wchar.c
Traceback (most recent call last):
  File "lit.py", line 4, in <module>
    import lit
  File "C:\Projects\LLVM\LLVM\utils\lit\lit\__init__.py",
line 3, in <module>
    from lit import main
ImportError: cannot import name main


More info on my configuration:
I'm using Windows XP with Visual Studio 2008 installed and
MinGW 5.1.6 & the MinGW port of GCC 3.4.5.
 
here is a partial list of my environment variables:
 
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\toryb
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
C:\Projects\LLVM\LLVM\utils\lit>set path
Path=C:\Program
Files\BullseyeCoverage\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
DOWS\System32\Wbem;C:\Program Files\NTRU Cryptosystems\NTRU
TCG Software Stack\b
in\;C:\Program Files\Wave Systems Corp\Gemalto\Access
Client\v5\;C:\Program File
s\Gemplus\GemSafe Libraries\BIN;C:\Program Files\Common
Files\Roxio Shared\DLLSh
ared\;C:\Program Files\Common Files\Roxio
Shared\9.0\DLLShared\;c:\Program Files
\Microsoft SQL Server\90\Tools\binn\;C:\Program
Files\doxygen\bin;C:\Program Fil
es\Common Files\Aagard Shared;C:\Program Files\Code
Collaborator Client;C:\WINDO
WS\system32\WindowsPowerShell\v1.0;C:\Program Files\CMake
2.8\bin;C:\Program Fil
es\TortoiseSVN\bin;C:\Program Files\gnuwin32\bin;C:\Program
Files\MinGW\bin;C:\P
rogram Files\Microsoft Visual Studio 2008
SDK\VisualStudioIntegration\Tools\Sand
castle\ProductionTools\;C:\Program Files\Python31
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 10,
GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f0a
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
RoxioCentral=C:\Program Files\Common Files\Roxio
Shared\9.0\Roxio Central33\
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\toryb\LOCALS~1\Temp
TMP=C:\DOCUME~1\toryb\LOCALS~1\Temp
USERPROFILE=C:\Documents and Settings\toryb
VS90COMNTOOLS=c:\Program Files\Microsoft Visual Studio
9.0\Common7\Tools\
VSSDK90Install=C:\Program Files\Microsoft Visual Studio 2008
SDK\
windir=C:\WINDOWS

Thanks for any help.

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