Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llvm-lit] Environment variable not found in clang subproject with lit internal shell #106601

Open
3 tasks
Harini0924 opened this issue Aug 29, 2024 · 0 comments
Open
3 tasks
Labels
clang Clang issues not falling into any other category test-suite

Comments

@Harini0924
Copy link
Contributor

Harini0924 commented Aug 29, 2024

Currently, there are multiple environment variables are not recognized within the clang subproject, resulting in test failures when using the lit internal shell.
Example of error message

RUN: DEFAULT_TRIPLE=`%t/clang --version | grep "Target:" | cut -d ' ' -f2`

This error indicates that the internal shell is misinterpreting environment variable assignments as commands, leading to these failures.

files with failure:

  • clang/test/ClangScanDeps/pr61006.cppm
  • clang/test/Driver/coverage.c
  • clang/test/Driver/program-path-priority.c
  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 .
  1. LIT_USE_INTERNAL_SHELL=1 ninja check-clang
@github-actions github-actions bot added the clang Clang issues not falling into any other category label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category test-suite
Projects
None yet
Development

No branches or pull requests

2 participants