[Bug 36997] New: lit: unable to parse tools/lldb/lit/lit.cfg

Bug ID 36997
Summary lit: unable to parse tools/lldb/lit/lit.cfg
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter matthias.krueger@famsik.de
CC llvm-bugs@lists.llvm.org

Hi, I'm trying to run a "check-all" but lit crashes due to broken lldb lit
config:

[ 90%/10/1/11,17.496] Running all regression tests
llvm-lit:
/home/matthias/LLVM/LLVM_dev/stage_3_tests/llvm/utils/lit/lit/llvm/config.py:334:
note: using clang: /home/matthias/LLVM/LLVM_dev/stage_3_tests/objects/bin/clang
llvm-lit:
/home/matthias/LLVM/LLVM_dev/stage_3_tests/llvm/utils/lit/lit/llvm/config.py:334:
note: using clang: /home/matthias/LLVM/LLVM_dev/stage_3_tests/objects/bin/clang
llvm-lit:
/home/matthias/LLVM/LLVM_dev/stage_3_tests/llvm/utils/lit/lit/TestingConfig.py:101:
fatal: unable to parse config file
'/home/matthias/LLVM/LLVM_dev/stage_3_tests/llvm/tools/lldb/lit/lit.cfg',
traceback: Traceback (most recent call last):
  File
"/home/matthias/LLVM/LLVM_dev/stage_3_tests/llvm/utils/lit/lit/TestingConfig.py",
line 88, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File
"/home/matthias/LLVM/LLVM_dev/stage_3_tests/llvm/tools/lldb/lit/lit.cfg", line
125, in <module>
    if re.match(r'icc', config.cc):
  File "/usr/lib/python2.7/re.py", line 141, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
FAILED: CMakeFiles/check-all

I have python 2.7.14 installed (also regex module 2018.02.21-1)

This is my build script:
[https://github.com/matthiaskrgr/llvm_bootstrap/blob/master/build_git.sh#L361](https://github.com/matthiaskrgr/llvm_bootstrap/blob/master/build_git.sh#L361)

labath@google.com changed bug 36997