Skip to content

reapply [llvm] add support for mustache templating language #130732

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

Merged
merged 92 commits into from
Mar 12, 2025

Conversation

PeterChou1
Copy link
Contributor

@PeterChou1 PeterChou1 commented Mar 11, 2025

Reapply #105893

Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/136/builds/3100

The issue here was that using Accessor defined in the anonymous namespace introduces Accessor as a type alias. Which is, later redeclare as members in classes Token and ASTNode with the same name which causes error in GCC. The patch fixes it by renaming the Accesor to AccessorValue. It also fixes warnings caused by the compile due to initialization

Adds Support for the Mustache Templating Language. See specs here: https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the language including:

  • Variables
  • Comments
  • Lambdas
  • Sections

This meant as a library to support places where we have to generate HTML, such as in clang-doc.

Copy link

github-actions bot commented Mar 11, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Lambdas = std::move(Other.Lambdas);
SectionLambdas = std::move(Other.SectionLambdas);
Escapes = std::move(Other.Escapes);
Tree = Other.Tree;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the bot gave a warning about the initialization order here, w.r.t. other members that are earlier in the class. I think that will go away if you move this down to just be fore you set Other.Tree=nullptr; Its just a warning, so not a huge deal, but it's trivial to change, and moves the logic for the Tree member into one place.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the warning was with the move constructor on line 771. It wasn't ordered according to the declaration order so that was why it was throwing warnings

std::string RawBody;
// TokenBody is the original string with the identifier removed.
std::string TokenBody;
Accessor Accessor;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't this one of the things that broke on the GCC bot? I think this will still be an issue, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea the issue was the naming conflict with the type alias Accessor which is declared in both Template and Token classes I renamed it.

@ilovepi
Copy link
Contributor

ilovepi commented Mar 11, 2025

Would you mind explaining what the delta is between this patch and the previous version? the PR says it fixes errors, but I'm not clear on what 's different, precisely.

@PeterChou1
Copy link
Contributor Author

Would you mind explaining what the delta is between this patch and the previous version? the PR says it fixes errors, but I'm not clear on what 's different, precisely.

I've updated the issue

@PeterChou1 PeterChou1 requested a review from ilovepi March 11, 2025 22:20
Copy link
Contributor

@ilovepi ilovepi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming CI is passing.

@PeterChou1 PeterChou1 merged commit 8f05f25 into llvm:main Mar 12, 2025
9 of 10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux running on sanitizer-buildbot8 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[341/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[342/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[343/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[344/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[345/5454] Linking CXX static library lib/libDynamicLibraryLib.a
[346/5454] Linking CXX static library lib/libbenchmark.a
[347/5454] Linking CXX static library lib/libbenchmark_main.a
[348/5454] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[349/5454] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[350/5454] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
@@@BUILD_STEP test compiler-rt symbolizer@@@
ninja: Entering directory `build_default'
[1/4434] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[341/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[342/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[343/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[344/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[345/5454] Linking CXX static library lib/libDynamicLibraryLib.a
[346/5454] Linking CXX static library lib/libbenchmark.a
[347/5454] Linking CXX static library lib/libbenchmark_main.a
[348/5454] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[349/5454] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[350/5454] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
@@@BUILD_STEP test compiler-rt symbolizer@@@
ninja: Entering directory `build_default'
[1/4434] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[341/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[342/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[343/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[344/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[345/5454] Linking CXX static library lib/libDynamicLibraryLib.a
[346/5454] Linking CXX static library lib/libbenchmark.a
[347/5454] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[348/5454] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[349/5454] Linking CXX static library lib/libbenchmark_main.a
[350/5454] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
@@@BUILD_STEP test compiler-rt debug@@@
ninja: Entering directory `build_default'
[1/4434] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[332/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/perf_counters.cc.o
[333/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o
[334/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o
[335/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[336/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[337/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[338/5435] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[339/5435] Linking CXX static library lib/libbenchmark.a
[340/5435] Linking CXX static library lib/libbenchmark_main.a
[341/5435] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 13 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[341/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[342/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[343/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[344/5454] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[345/5454] Linking CXX static library lib/libDynamicLibraryLib.a
[346/5454] Linking CXX static library lib/libbenchmark.a
[347/5454] Linking CXX static library lib/libbenchmark_main.a
[348/5454] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[349/5454] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[350/5454] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
@@@BUILD_STEP test compiler-rt default@@@
ninja: Entering directory `build_default'
[1/4434] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/b/sanitizer-aarch64-linux/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux/build/build_default/lib/Support -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support -I/home/b/sanitizer-aarch64-linux/build/build_default/include -I/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 15 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_C_COMPILER:

    /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_CXX_COMPILER:

    /home/b/sanitizer-aarch64-linux/build/build_default/bin/clang++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
@@@BUILD_STEP test standalone compiler-rt@@@
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild





@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-lld-multistage-test running on ppc64le-lld-multistage-test while building llvm at step 12 "build-stage2-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 12 (build-stage2-unified-tree) failure: build (failure)
...
7.228 [6112/150/224] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Memory.cpp.o
7.254 [6112/149/225] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MemoryBuffer.cpp.o
7.256 [6112/148/226] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackendSkeleton.cpp.o
7.258 [6112/147/227] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Parallel.cpp.o
7.269 [6112/146/228] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/FileOutputBuffer.cpp.o
7.284 [6112/145/229] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/FileUtilities.cpp.o
7.322 [6112/144/230] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Error.cpp.o
7.326 [6112/143/231] Building CXX object lib/Option/CMakeFiles/LLVMOption.dir/Arg.cpp.o
7.397 [6112/142/232] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o
7.404 [6112/141/233] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/install/stage1/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/build/stage2/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-lld-multistage-test/ppc64le-lld-multistage-test/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
7.414 [6112/140/234] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/raw_socket_stream.cpp.o
7.440 [6112/139/235] Building CXX object unittests/LineEditor/CMakeFiles/LineEditorTests.dir/LineEditor.cpp.o
7.479 [6112/138/236] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugInlineeLinesSubsection.cpp.o
7.496 [6112/137/237] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Caching.cpp.o
7.508 [6112/136/238] Building CXX object utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/SDNodeProperties.cpp.o
7.512 [6112/135/239] Building CXX object third-party/unittest/CMakeFiles/llvm_gtest.dir/googlemock/src/gmock-all.cc.o
7.523 [6112/134/240] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/LockFileManager.cpp.o
7.564 [6112/133/241] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o
7.565 [6112/132/242] Building CXX object unittests/DebugInfo/CodeView/CMakeFiles/DebugInfoCodeViewTests.dir/GUIDFormatTest.cpp.o
7.584 [6112/131/243] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RandomNumberGenerator.cpp.o
7.585 [6112/130/244] Building CXX object utils/TableGen/Basic/CMakeFiles/obj.LLVMTableGenBasic.dir/TableGen.cpp.o
7.648 [6112/129/245] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/FileCollector.cpp.o
7.653 [6112/128/246] Building CXX object utils/UnicodeData/CMakeFiles/UnicodeNameMappingGenerator.dir/UnicodeNameMappingGenerator.cpp.o
7.663 [6112/127/247] Building CXX object lib/Option/CMakeFiles/LLVMOption.dir/Option.cpp.o
7.680 [6112/126/248] Building CXX object unittests/Support/DynamicLibrary/CMakeFiles/DynamicLibraryTests.dir/DynamicLibraryTest.cpp.o
7.689 [6112/125/249] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Process.cpp.o
7.717 [6112/124/250] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/KnownBits.cpp.o
7.718 [6112/123/251] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/TypeTableCollection.cpp.o
7.759 [6112/122/252] Building CXX object unittests/DebugInfo/CodeView/CMakeFiles/DebugInfoCodeViewTests.dir/TypeHashingTest.cpp.o
7.786 [6112/121/253] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugFrameDataSubsection.cpp.o
7.807 [6112/120/254] Building CXX object lib/Telemetry/CMakeFiles/LLVMTelemetry.dir/Telemetry.cpp.o
7.818 [6112/119/255] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/AppendingTypeTableBuilder.cpp.o
7.830 [6112/118/256] Building CXX object unittests/Testing/ADT/CMakeFiles/TestingADTTests.dir/StringMapTest.cpp.o
7.864 [6112/117/257] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugChecksumsSubsection.cpp.o
7.885 [6112/116/258] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/GlobPattern.cpp.o
7.926 [6112/115/259] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ThreadPool.cpp.o
7.963 [6112/114/260] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/StringRef.cpp.o
7.967 [6112/113/261] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGLexer.cpp.o
7.996 [6112/112/262] Building CXX object lib/DebugInfo/CodeView/CMakeFiles/LLVMDebugInfoCodeView.dir/DebugSubsectionVisitor.cpp.o
8.001 [6112/111/263] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/MicrosoftDemangle.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-hwasan running on sanitizer-buildbot12 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87031 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 
FAIL: LLVM-Unit :: Support/./SupportTests/21/95 (79944 of 87031)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/21/95' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/unittests/Support/./SupportTests-LLVM-Unit-1647899-21-95.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=95 GTEST_SHARD_INDEX=21 /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/unittests/Support/./SupportTests
--


Note: This is test shard 22 of 95.
[==========] Running 16 tests from 16 test suites.
[----------] Global test environment set-up.
[----------] 1 test from AlignmentTest
[ RUN      ] AlignmentTest.isAligned_isAddrAligned
[       OK ] AlignmentTest.isAligned_isAddrAligned (0 ms)
[----------] 1 test from AlignmentTest (0 ms total)

[----------] 1 test from BranchProbabilityTest
[ RUN      ] BranchProbabilityTest.ArithmeticOperators
[       OK ] BranchProbabilityTest.ArithmeticOperators (0 ms)
[----------] 1 test from BranchProbabilityTest (0 ms total)

[----------] 1 test from CommandLineTest
[ RUN      ] CommandLineTest.BadResponseFile
cannot not open file '/tmp/lit-tmp-6x7vygh8/dir-e6188a': Is a directory
[       OK ] CommandLineTest.BadResponseFile (0 ms)
[----------] 1 test from CommandLineTest (0 ms total)

[----------] 1 test from EndianStream
[ RUN      ] EndianStream.WriteInt64BE
[       OK ] EndianStream.WriteInt64BE (0 ms)
[----------] 1 test from EndianStream (0 ms total)

[----------] 1 test from FormatVariadicTest
[ RUN      ] FormatVariadicTest.FormatAutomaticIndices
[       OK ] FormatVariadicTest.FormatAutomaticIndices (0 ms)
[----------] 1 test from FormatVariadicTest (0 ms total)

[----------] 1 test from HashBuilderTest/4, where TypeParam = <type>
[ RUN      ] HashBuilderTest/4.HashArrayRefHashableDataTypes
Step 11 (stage2/hwasan check) failure: stage2/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87031 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 
FAIL: LLVM-Unit :: Support/./SupportTests/21/95 (79944 of 87031)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/21/95' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/unittests/Support/./SupportTests-LLVM-Unit-1647899-21-95.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=95 GTEST_SHARD_INDEX=21 /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/unittests/Support/./SupportTests
--


Note: This is test shard 22 of 95.
[==========] Running 16 tests from 16 test suites.
[----------] Global test environment set-up.
[----------] 1 test from AlignmentTest
[ RUN      ] AlignmentTest.isAligned_isAddrAligned
[       OK ] AlignmentTest.isAligned_isAddrAligned (0 ms)
[----------] 1 test from AlignmentTest (0 ms total)

[----------] 1 test from BranchProbabilityTest
[ RUN      ] BranchProbabilityTest.ArithmeticOperators
[       OK ] BranchProbabilityTest.ArithmeticOperators (0 ms)
[----------] 1 test from BranchProbabilityTest (0 ms total)

[----------] 1 test from CommandLineTest
[ RUN      ] CommandLineTest.BadResponseFile
cannot not open file '/tmp/lit-tmp-6x7vygh8/dir-e6188a': Is a directory
[       OK ] CommandLineTest.BadResponseFile (0 ms)
[----------] 1 test from CommandLineTest (0 ms total)

[----------] 1 test from EndianStream
[ RUN      ] EndianStream.WriteInt64BE
[       OK ] EndianStream.WriteInt64BE (0 ms)
[----------] 1 test from EndianStream (0 ms total)

[----------] 1 test from FormatVariadicTest
[ RUN      ] FormatVariadicTest.FormatAutomaticIndices
[       OK ] FormatVariadicTest.FormatAutomaticIndices (0 ms)
[----------] 1 test from FormatVariadicTest (0 ms total)

[----------] 1 test from HashBuilderTest/4, where TypeParam = <type>
[ RUN      ] HashBuilderTest/4.HashArrayRefHashableDataTypes

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-android running on sanitizer-buildbot-android while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[341/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[342/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[343/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[344/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[345/5429] Creating export file for Remarks
[346/5429] Linking CXX static library lib/libbenchmark.a
[347/5429] Linking CXX static library lib/libbenchmark_main.a
[348/5429] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[349/5429] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[350/5429] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/Support -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/include -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support/Mustache.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
Step 8 (bootstrap clang) failure: bootstrap clang (failure)
...
[341/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o
[342/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
[343/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o
[344/5429] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o
[345/5429] Creating export file for Remarks
[346/5429] Linking CXX static library lib/libbenchmark.a
[347/5429] Linking CXX static library lib/libbenchmark_main.a
[348/5429] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[349/5429] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[350/5429] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/lib/Support -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/include -I/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support/Mustache.cpp
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




program finished with exit code 2
elapsedTime=52.289490

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-ppc64le-linux running on ppc64le-sanitizer while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[606/4146] Generating ../../../../share/scan-view/bugcatcher.ico
[607/4146] Generating ../../../../share/scan-view/startfile.py
[608/4146] Linking CXX static library lib/libLLVMDemangle.a
[609/4146] Linking CXX static library lib/libbenchmark.a
[610/4146] Linking CXX static library lib/libDynamicLibraryLib.a
[611/4146] Linking CXX static library lib/libbenchmark_main.a
[612/4146] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[613/4146] Linking CXX executable bin/llvm-PerfectShuffle
[614/4146] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[615/4146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
@@@BUILD_STEP test compiler-rt debug@@@
ninja: Entering directory `build_default'
[1/2874] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild


@@@STEP_FAILURE@@@

@@@STEP_FAILURE@@@
Step 8 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[606/4146] Generating ../../../../share/scan-view/bugcatcher.ico
[607/4146] Generating ../../../../share/scan-view/startfile.py
[608/4146] Linking CXX static library lib/libLLVMDemangle.a
[609/4146] Linking CXX static library lib/libbenchmark.a
[610/4146] Linking CXX static library lib/libDynamicLibraryLib.a
[611/4146] Linking CXX static library lib/libbenchmark_main.a
[612/4146] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[613/4146] Linking CXX executable bin/llvm-PerfectShuffle
[614/4146] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[615/4146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 9 (test compiler-rt debug) failure: test compiler-rt debug (failure)
@@@BUILD_STEP test compiler-rt debug@@@
ninja: Entering directory `build_default'
[1/2874] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 10 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[597/4127] Generating ../../../../bin/scan-view
[598/4127] Generating ../../../../share/scan-view/Reporter.py
[599/4127] Generating ../../../../share/scan-view/ScanView.py
[600/4127] Generating ../../../../share/scan-view/bugcatcher.ico
[601/4127] Generating ../../../../share/scan-view/startfile.py
[602/4127] Linking CXX static library lib/libLLVMDemangle.a
[603/4127] Linking CXX static library lib/libbenchmark.a
[604/4127] Linking CXX executable bin/llvm-PerfectShuffle
[605/4127] Linking CXX static library lib/libbenchmark_main.a
[606/4127] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 11 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[606/4146] Linking CXX static library lib/libLLVMDemangle.a
[607/4146] Generating ../../../../lib/libscanbuild/resources/scanview.css
[608/4146] Generating ../../../../lib/libscanbuild/resources/selectable.js
[609/4146] Linking CXX static library lib/libbenchmark.a
[610/4146] Linking CXX static library lib/libDynamicLibraryLib.a
[611/4146] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
[612/4146] Linking CXX executable bin/llvm-PerfectShuffle
[613/4146] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
[614/4146] Linking CXX static library lib/libbenchmark_main.a
[615/4146] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 12 (test compiler-rt default) failure: test compiler-rt default (failure)
@@@BUILD_STEP test compiler-rt default@@@
ninja: Entering directory `build_default'
[1/2874] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 13 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_C_COMPILER:

    /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  The CMAKE_CXX_COMPILER:

    /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang++

  is not a full path to an existing compiler tool.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:22 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild




Step 14 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
@@@BUILD_STEP test standalone compiler-rt@@@
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory

How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild





@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64le-rhel running on ppc64le-clang-rhel-test while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
2.928 [6088/6/347] Building CXX object third-party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o
2.934 [6087/6/348] Linking CXX static library lib/libDynamicLibraryLib.a
2.938 [6087/5/349] Linking CXX executable bin/llvm-PerfectShuffle
2.952 [6087/4/350] Linking CXX shared module unittests/Support/DynamicLibrary/PipSqueak.so
2.952 [6087/3/351] Linking CXX shared module unittests/Support/DynamicLibrary/SecondLib.so
2.967 [6087/2/352] Linking CXX shared library lib/libbenchmark.so.0.0.0
2.973 [6086/2/353] Creating library symlink lib/libbenchmark.so.0 lib/libbenchmark.so
3.006 [6085/2/354] Linking CXX shared library lib/libbenchmark_main.so.0.0.0
3.012 [6084/2/355] Creating library symlink lib/libbenchmark_main.so.0 lib/libbenchmark_main.so
4.841 [6084/1/356] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ --gcc-toolchain=/gcc-toolchain/usr -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Support -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Werror=global-constructors -O3 -DNDEBUG -std=c++17 -fPIC -UNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Support/Mustache.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-fast running on sanitizer-buildbot4 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 89516 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM-Unit :: Support/./SupportTests/35/95 (89355 of 89516)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/35/95' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests-LLVM-Unit-3096297-35-95.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=95 GTEST_SHARD_INDEX=35 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests
--


Note: This is test shard 36 of 95.
[==========] Running 16 tests from 16 test suites.
[----------] Global test environment set-up.
[----------] 1 test from AllocatorTest
[ RUN      ] AllocatorTest.TestSlowerSlabGrowthDelay
[       OK ] AllocatorTest.TestSlowerSlabGrowthDelay (0 ms)
[----------] 1 test from AllocatorTest (0 ms total)

[----------] 1 test from CrashRecoveryTest
[ RUN      ] CrashRecoveryTest.Cleanup
[       OK ] CrashRecoveryTest.Cleanup (0 ms)
[----------] 1 test from CrashRecoveryTest (0 ms total)

[----------] 1 test from CommandLineTest
[ RUN      ] CommandLineTest.ResetAllOptionOccurrences
[       OK ] CommandLineTest.ResetAllOptionOccurrences (0 ms)
[----------] 1 test from CommandLineTest (0 ms total)

[----------] 1 test from AttributeHeaderParser
[ RUN      ] AttributeHeaderParser.InvalidSectionLength
[       OK ] AttributeHeaderParser.InvalidSectionLength (0 ms)
[----------] 1 test from AttributeHeaderParser (0 ms total)

[----------] 1 test from FormatVariadicTest
[ RUN      ] FormatVariadicTest.FormatAdapter
[       OK ] FormatVariadicTest.FormatAdapter (0 ms)
[----------] 1 test from FormatVariadicTest (0 ms total)

[----------] 1 test from HashBuilderTest/5, where TypeParam = <type>
[ RUN      ] HashBuilderTest/5.HashArrayRefNonHashableDataTypes
[       OK ] HashBuilderTest/5.HashArrayRefNonHashableDataTypes (0 ms)
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 89516 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: LLVM-Unit :: Support/./SupportTests/35/95 (89355 of 89516)
******************** TEST 'LLVM-Unit :: Support/./SupportTests/35/95' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests-LLVM-Unit-3096297-35-95.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=95 GTEST_SHARD_INDEX=35 /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/unittests/Support/./SupportTests
--


Note: This is test shard 36 of 95.
[==========] Running 16 tests from 16 test suites.
[----------] Global test environment set-up.
[----------] 1 test from AllocatorTest
[ RUN      ] AllocatorTest.TestSlowerSlabGrowthDelay
[       OK ] AllocatorTest.TestSlowerSlabGrowthDelay (0 ms)
[----------] 1 test from AllocatorTest (0 ms total)

[----------] 1 test from CrashRecoveryTest
[ RUN      ] CrashRecoveryTest.Cleanup
[       OK ] CrashRecoveryTest.Cleanup (0 ms)
[----------] 1 test from CrashRecoveryTest (0 ms total)

[----------] 1 test from CommandLineTest
[ RUN      ] CommandLineTest.ResetAllOptionOccurrences
[       OK ] CommandLineTest.ResetAllOptionOccurrences (0 ms)
[----------] 1 test from CommandLineTest (0 ms total)

[----------] 1 test from AttributeHeaderParser
[ RUN      ] AttributeHeaderParser.InvalidSectionLength
[       OK ] AttributeHeaderParser.InvalidSectionLength (0 ms)
[----------] 1 test from AttributeHeaderParser (0 ms total)

[----------] 1 test from FormatVariadicTest
[ RUN      ] FormatVariadicTest.FormatAdapter
[       OK ] FormatVariadicTest.FormatAdapter (0 ms)
[----------] 1 test from FormatVariadicTest (0 ms total)

[----------] 1 test from HashBuilderTest/5, where TypeParam = <type>
[ RUN      ] HashBuilderTest/5.HashArrayRefNonHashableDataTypes
[       OK ] HashBuilderTest/5.HashArrayRefNonHashableDataTypes (0 ms)

PeterChou1 added a commit that referenced this pull request Mar 12, 2025
Reapply #130732

Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/66/builds/11049

GCC threw an warning due to an issue std::move with a temporary object
which prevents copy elision. Fixes the issue by removing the std::move

Adds Support for the Mustache Templating Language. See specs here:
https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the
language including:

- Variables
- Comments
- Lambdas
- Sections

This meant as a library to support places where we have to generate
HTML, such as in clang-doc.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Mar 12, 2025
…e (#130876)

Reapply llvm/llvm-project#130732

Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/66/builds/11049

GCC threw an warning due to an issue std::move with a temporary object
which prevents copy elision. Fixes the issue by removing the std::move

Adds Support for the Mustache Templating Language. See specs here:
https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the
language including:

- Variables
- Comments
- Lambdas
- Sections

This meant as a library to support places where we have to generate
HTML, such as in clang-doc.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 12, 2025

LLVM Buildbot has detected a new failure on builder lld-x86_64-win running on as-worker-93 while building llvm at step 7 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests.exe/91/94' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe-LLVM-Unit-21736-91-94.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=94 GTEST_SHARD_INDEX=91 C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe
--

Script:
--
C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe --gtest_filter=ProgramEnvTest.CreateProcessLongPath
--
C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(160): error: Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(163): error: fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied



C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:160
Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:163
fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied




********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 13, 2025

LLVM Buildbot has detected a new failure on builder clang-ppc64-aix running on aix-ppc64 while building llvm at step 3 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference
Step 3 (clean-build-dir) failure: Delete failed. (failure) (timed out)
Step 5 (build-unified-tree) failure: build (failure)
...
35.118 [5225/10/86] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/KnownBits.cpp.o
35.231 [5224/10/87] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MD5.cpp.o
35.986 [5223/10/88] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MSP430AttributeParser.cpp.o
36.393 [5222/10/89] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/OptimizedStructLayout.cpp.o
36.465 [5221/10/90] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/NativeFormatting.cpp.o
36.549 [5220/10/91] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/MemoryBuffer.cpp.o
36.830 [5219/10/92] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Optional.cpp.o
37.142 [5218/10/93] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/JSON.cpp.o
37.423 [5217/10/94] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/OptionStrCmp.cpp.o
37.872 [5216/10/95] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o
FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o 
/usr/local/clang-17.0.2/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LARGE_FILE_API -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/Support -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/include -I/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/include -mcmodel=large -fPIC -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections  -O3 -DNDEBUG -std=c++17 -UNDEBUG -pthread  -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Mustache.cpp.o -c /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/lib/Support/Mustache.cpp:299:27: note: remove std::move call here
  299 |     PrevToken.TokenBody = std::move(Unindented.str());
      |                           ^~~~~~~~~~                ~
1 error generated.
38.166 [5216/9/96] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/PluginLoader.cpp.o
38.297 [5216/8/97] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/PGOOptions.cpp.o
38.633 [5216/7/98] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/PrettyStackTrace.cpp.o
38.836 [5216/6/99] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RewriteBuffer.cpp.o
39.112 [5216/5/100] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Regex.cpp.o
39.435 [5216/4/101] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RISCVAttributes.cpp.o
39.806 [5216/3/102] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RewriteRope.cpp.o
39.932 [5216/2/103] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Parallel.cpp.o
40.651 [5216/1/104] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/RandomNumberGenerator.cpp.o
ninja: build stopped: subcommand failed.

frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
)

Reapply llvm#130732

Fixes errors which broke build bot that uses GCC as a compiler
https://lab.llvm.org/buildbot/#/builders/66/builds/11049

GCC threw an warning due to an issue std::move with a temporary object
which prevents copy elision. Fixes the issue by removing the std::move

Adds Support for the Mustache Templating Language. See specs here:
https://mustache.github.io/mustache.5.html
This patch implements support+tests for majority of the features of the
language including:

- Variables
- Comments
- Lambdas
- Sections

This meant as a library to support places where we have to generate
HTML, such as in clang-doc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants