[clang] [clang] Lifetimebound in assignment operator should work for non-gsl annotated types. (PR #113180)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 05:42:15 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/6970

<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)
...
[1333/1335] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1334/1335] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin
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-06xk5m78/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-06xk5m78/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-06xk5m78/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-06xk5m78/bin/wasm-ld
-- Testing: 21354 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17633 of 21354)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: SemaCXX/attr-lifetimebound.cpp


Testing Time: 76.23s

Total Discovered Tests: 45325
  Skipped          :     8 (0.02%)
  Unsupported      :   867 (1.91%)
  Passed           : 44424 (98.01%)
  Expectedly Failed:    25 (0.06%)
  Failed           :     1 (0.00%)
FAILED: tools/clang/test/CMakeFiles/check-clang /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/tools/clang/test/CMakeFiles/check-clang 
cd /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/tools/clang/test && /usr/bin/python3.10 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/tools/clang/test
ninja: build stopped: subcommand failed.
['ninja', '-C', '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78', 'check-llvm', 'check-clang', 'check-lld'] exited with return code 1.
@@@STEP_FAILURE@@@
Step 7 (check) failure: check (failure)
...
[1333/1335] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1334/1335] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin
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-06xk5m78/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-06xk5m78/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-06xk5m78/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-06xk5m78/bin/wasm-ld
-- Testing: 21354 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: Clang :: SemaCXX/attr-lifetimebound.cpp (17633 of 21354)
******************** TEST 'Clang :: SemaCXX/attr-lifetimebound.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/lib/clang/20/include -nostdsysteminc -std=c++23 -verify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp
error: 'expected-warning' diagnostics expected but not seen: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing the foo1 will be destroyed at the end
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing the foo2 will be destroyed at the end
error: 'expected-warning' diagnostics seen but not expected: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 333: object backing foo1 will be destroyed at the end of the full-expression
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaCXX/attr-lifetimebound.cpp Line 335: object backing foo2 will be destroyed at the end of the full-expression
4 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: SemaCXX/attr-lifetimebound.cpp


Testing Time: 76.23s

Total Discovered Tests: 45325
  Skipped          :     8 (0.02%)
  Unsupported      :   867 (1.91%)
  Passed           : 44424 (98.01%)
  Expectedly Failed:    25 (0.06%)
  Failed           :     1 (0.00%)
FAILED: tools/clang/test/CMakeFiles/check-clang /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/tools/clang/test/CMakeFiles/check-clang 
cd /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/tools/clang/test && /usr/bin/python3.10 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/./bin/llvm-lit -sv --param USE_Z3_SOLVER=0 /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78/tools/clang/test
ninja: build stopped: subcommand failed.
['ninja', '-C', '/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-06xk5m78', 'check-llvm', 'check-clang', 'check-lld'] exited with return code 1.
program finished with exit code 0
elapsedTime=1111.229809

```

</details>

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


More information about the cfe-commits mailing list