[clang] [clang-format] Print the names of unfound files in error messages (PR #113640)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 25 19:48:41 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[674/1335] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FunctionExtrasTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[675/1335] Linking CXX executable bin/yaml2obj
[675/1335] Running lld test suite
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/wasm-ld
-- Testing: 3001 tests, 60 workers --
Testing:  0..
FAIL: lld :: COFF/lto-opt-level.ll (281 of 3001)
******************** TEST 'lld :: COFF/lto-opt-level.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/llvm-as -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/llvm-as -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
RUN: at line 3: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.exe /entry:main /subsystem:console /opt:lldlto=0 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.exe /entry:main /subsystem:console /opt:lldlto=0 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
RUN: at line 4: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O0 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll < /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.map
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O0 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
RUN: at line 5: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe /entry:main /subsystem:console /opt:lldlto=2 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe /entry:main /subsystem:console /opt:lldlto=2 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
RUN: at line 6: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O2 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll < /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.map
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O2 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll:14:17: error: CHECK-O2-NOT: excluded string found in input
; CHECK-O2-NOT: foo
                ^
<stdin>:3:80: note: found here
00001000 00000000 4 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe.lto.obj:(.text)
                                                                               ^~~

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll

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

Input was:
<<<<<<
        1: Address Size Align Out In Symbol 
        2: 00001000 00000001 4096 .text 
        3: 00001000 00000000 4 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe.lto.obj:(.text) 
not:14                                                                                    !~~                                                                         error: no match expected
        4: 00001000 00000001 16 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe.lto.obj:(.text) 
        5: 00001000 00000000 0 main 
>>>>>>

--
Step 7 (check) failure: check (failure)
...
[674/1335] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/FunctionExtrasTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[675/1335] Linking CXX executable bin/yaml2obj
[675/1335] Running lld test suite
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/wasm-ld
-- Testing: 3001 tests, 60 workers --
Testing:  0..
FAIL: lld :: COFF/lto-opt-level.ll (281 of 3001)
******************** TEST 'lld :: COFF/lto-opt-level.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/llvm-as -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/llvm-as -o /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
RUN: at line 3: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.exe /entry:main /subsystem:console /opt:lldlto=0 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.exe /entry:main /subsystem:console /opt:lldlto=0 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
RUN: at line 4: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O0 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll < /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp0.map
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O0 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
RUN: at line 5: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe /entry:main /subsystem:console /opt:lldlto=2 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/lld-link /out:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe /entry:main /subsystem:console /opt:lldlto=2 /lldmap:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.map /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp.obj
RUN: at line 6: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O2 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll < /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.map
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/bin/FileCheck --check-prefix=CHECK-O2 /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll:14:17: error: CHECK-O2-NOT: excluded string found in input
; CHECK-O2-NOT: foo
                ^
<stdin>:3:80: note: found here
00001000 00000000 4 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe.lto.obj:(.text)
                                                                               ^~~

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/lld/test/COFF/lto-opt-level.ll

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

Input was:
<<<<<<
        1: Address Size Align Out In Symbol 
        2: 00001000 00000001 4096 .text 
        3: 00001000 00000000 4 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe.lto.obj:(.text) 
not:14                                                                                    !~~                                                                         error: no match expected
        4: 00001000 00000001 16 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hw5foohk/tools/lld/test/COFF/Output/lto-opt-level.ll.tmp2.exe.lto.obj:(.text) 
        5: 00001000 00000000 0 main 
>>>>>>

--

```

</details>

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


More information about the cfe-commits mailing list