Skip to content

[llvm-lit] No such file or directory error in lldb tests with lit internal shell #102696

@connieyzhu

Description

@connieyzhu

Running the lldb tests using the lit internal shell with the following commands gives the following errors:
LIT_USE_INTERNAL_SHELL=1 ninja check-lldb

FAIL: lldb-shell :: SymbolFile/DWARF/dwo-missing-error.test (2 of 2512)
******************** TEST 'lldb-shell :: SymbolFile/DWARF/dwo-missing-error.test' FAILED ********************
Exit Code: 127

Command Output (stdout):
- -
# .---command stderr------------
# | Could not create process (/usr/local/google/home/harinidonthula/llvm-project/build/bin/clang) due to [Errno 2] No such file or directory: '/usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/SymbolFile/DWARF/Output/dwo-missing-error.test.tmp.compdir/a/b/-'
# `-----------------------------
# error: command failed with exit status: 127

Steps to Reproduce:

  1. CMAKE config: cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;llvm;clang-tools-extra;lld;lldb;bolt;mlir;libclc;polly" -DLLVM_ENABLE_RUNTIMES="compiler-rt;libc;libcxx;libunwind;libcxxabi" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -B build -S .
  2. LIT_USE_INTERNAL_SHELL=1 ninja check-lldb

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions