Python requirement

Hi all,
I've built llvm + clang on OS X 10.4 :
Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT
2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc

However, make check-all fails immediately with:

Traceback (most recent call last):
  File "/Users/useruser/LLVM/llvm/utils/lit/", line 4, in ?
    import lit
  File "/Users/useruser/LLVM/llvm/utils/lit/lit/", line 3, in ?
    from main import main
  File "/Users/useruser/LLVM/llvm/utils/lit/lit/", line 12, in ?
    import TestRunner
  File "/Users/useruser/LLVM/llvm/utils/lit/lit/", line 254
    out += 'Command %d: %s\n' % (i, ' '.join('"%s"' % s for s in cmd.args))
SyntaxError: invalid syntax
make[1]: *** [check-local-all] Error 1
make: *** [check-all] Error 2

I suspect this is because Python 2.3.5 is too old for lit. However,
there is no mention of Python in the LLVM requirements
(Getting Started with the LLVM System — LLVM 16.0.0git documentation).
What is the minimum level of Python ?


Good morning Csaba,


In order to use the LLVM testing infrastructure, you will need all of the software required to build LLVM, as well as Python 2.4 or later.

Confirmed with Python-2.4.3 on CentOS5.