[clang] [clang-scan-deps] Infer the tool locations from PATH (PR #108539)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 16:58:44 PDT 2024


Martin =?utf-8?q?Storsjö?= <martin at martin.st>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/108539 at github.com>


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-solaris11-sparcv9` running on `solaris11-sparcv9` while building `clang` at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/13/builds/2197

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir
+ rm -rf /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir
RUN: at line 2: rm -rf /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/foodir
+ rm -rf /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/foodir
RUN: at line 3: rm -rf /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.cdb
+ rm -rf /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.cdb
RUN: at line 5: mkdir -p /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir
+ mkdir -p /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir
RUN: at line 6: mkdir -p /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/foodir
+ mkdir -p /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/foodir
RUN: at line 8: cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/Inputs/header.h /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/foodir/foodirheader.h
+ cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/Inputs/header.h /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/foodir/foodirheader.h
RUN: at line 9: cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/headerwithdirname_input.cpp
+ cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/headerwithdirname_input.cpp
RUN: at line 10: cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/headerwithdirname_input_clangcl.cpp
+ cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/headerwithdirname_input_clangcl.cpp
RUN: at line 11: mkdir /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/Inputs
+ mkdir /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/Inputs
RUN: at line 12: cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/Inputs/foodir /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/Inputs/foodir
+ cp /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/Inputs/foodir /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/Inputs/foodir
RUN: at line 13: sed -e "s|DIR|/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir|g" /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/Inputs/headerwithdirnamefollowedbyinclude.json > /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.cdb
+ sed -e 's|DIR|/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir|g' /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/Inputs/headerwithdirnamefollowedbyinclude.json
RUN: at line 15: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/clang-scan-deps -compilation-database /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.cdb -j 1 | /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/FileCheck /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp
+ /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/clang-scan-deps -compilation-database /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.cdb -j 1
+ /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/bin/FileCheck /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp
/opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp:24:11: error: CHECK: expected string not found in input
// CHECK: headerwithdirname_input_clangcl.o
          ^
<stdin>:3:173: note: scanning from here
 /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/Inputs/foodir \
                                                                                                                                                                            ^
<stdin>:6:160: note: possible intended match here
 /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/headerwithdirname_input_clangcl.cpp \
                                                                                                                                                               ^

Input file: <stdin>
Check file: /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/llvm/clang/test/ClangScanDeps/headerwithdirnamefollowedbyinclude.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: headerwithdirname_input.o: \ 
            2:  /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/headerwithdirname_input.cpp \ 
            3:  /opt/llvm-buildbot/home/solaris11-sparcv9/clang-solaris11-sparcv9/stage1/tools/clang/test/ClangScanDeps/Output/headerwithdirnamefollowedbyinclude.cpp.tmp.dir/Inputs/foodir \ 
...

```

</details>

https://github.com/llvm/llvm-project/pull/108539


More information about the cfe-commits mailing list