[clang] [clang][lex] Do not translate repeated include into import (PR #216704)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 17 23:58:06 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-clang-flang` running on `AMD-bb-w-05` while building `clang` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/234/builds/2464
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
PASS: libarcher :: critical/lock-nested.c (133 of 502)
PASS: libarcher :: critical/lock.c (134 of 502)
PASS: libarcher :: task/task-dependency.c (135 of 502)
PASS: libarcher :: task/task-taskgroup-nested.c (136 of 502)
PASS: libomp :: misc_bugs/simd_conservative_ordered.c (137 of 502)
PASS: libomp :: misc_bugs/stack-propagate.c (138 of 502)
PASS: libomp :: lock/omp_nest_lock.c (139 of 502)
PASS: libomp :: lock/omp_test_lock.c (140 of 502)
PASS: libarcher :: task/task-taskwait.c (141 of 502)
PASS: libarcher :: task/task_early_fulfill.c (142 of 502)
FAIL: libarcher :: races/taskwait-depend.c (143 of 502)
******************** TEST 'libarcher :: races/taskwait-depend.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 14
/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic && env TSAN_OPTIONS='ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1' /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp 2>&1 | tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log | /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic
# note: command had no output on stdout or stderr
# executed command: env TSAN_OPTIONS=ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1 /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp
# note: command had no output on stdout or stderr
# executed command: tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log
# note: command had no output on stdout or stderr
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c
# .---command stderr------------
# | /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c:56:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: #0 {{.*}}taskwait-depend.c:42
# | ^
# | <stdin>:13:2: note: 'next' match was here
# | #0 foo /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c:42:20 (taskwait-depend.c.tmp+0x128063)
# | ^
# | <stdin>:3:17: note: previous match ended here
# | Write of size 4 at 0x7fffffffe1fc by thread T1:
# | ^
# | <stdin>:4:1: note: non-matching line after previous match is here
# | #0 .omp_outlined..1 /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c:35:6 (taskwait-depend.c.tmp+0x12814a)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ==================
# | 2: WARNING: ThreadSanitizer: data race (pid=2680760)
# | 3: Write of size 4 at 0x7fffffffe1fc by thread T1:
Step 8 (test-openmp) failure: test-openmp (failure)
...
PASS: libarcher :: critical/lock-nested.c (133 of 502)
PASS: libarcher :: critical/lock.c (134 of 502)
PASS: libarcher :: task/task-dependency.c (135 of 502)
PASS: libarcher :: task/task-taskgroup-nested.c (136 of 502)
PASS: libomp :: misc_bugs/simd_conservative_ordered.c (137 of 502)
PASS: libomp :: misc_bugs/stack-propagate.c (138 of 502)
PASS: libomp :: lock/omp_nest_lock.c (139 of 502)
PASS: libomp :: lock/omp_test_lock.c (140 of 502)
PASS: libarcher :: task/task-taskwait.c (141 of 502)
PASS: libarcher :: task/task_early_fulfill.c (142 of 502)
FAIL: libarcher :: races/taskwait-depend.c (143 of 502)
******************** TEST 'libarcher :: races/taskwait-depend.c' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 14
/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic && env TSAN_OPTIONS='ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1' /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp 2>&1 | tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log | /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp -latomic
# note: command had no output on stdout or stderr
# executed command: env TSAN_OPTIONS=ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1 /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp
# note: command had no output on stdout or stderr
# executed command: tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/taskwait-depend.c.tmp.log
# note: command had no output on stdout or stderr
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c
# .---command stderr------------
# | /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c:56:16: error: CHECK-NEXT: is not on the line after the previous match
# | // CHECK-NEXT: #0 {{.*}}taskwait-depend.c:42
# | ^
# | <stdin>:13:2: note: 'next' match was here
# | #0 foo /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c:42:20 (taskwait-depend.c.tmp+0x128063)
# | ^
# | <stdin>:3:17: note: previous match ended here
# | Write of size 4 at 0x7fffffffe1fc by thread T1:
# | ^
# | <stdin>:4:1: note: non-matching line after previous match is here
# | #0 .omp_outlined..1 /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c:35:6 (taskwait-depend.c.tmp+0x12814a)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/taskwait-depend.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ==================
# | 2: WARNING: ThreadSanitizer: data race (pid=2680760)
# | 3: Write of size 4 at 0x7fffffffe1fc by thread T1:
```
</details>
https://github.com/llvm/llvm-project/pull/216704
More information about the cfe-commits
mailing list