Skip to content

[clang-sycl-linker] Fix flaky failure and add REQUIRES #134125

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

Conversation

asudarsa
Copy link
Contributor

@asudarsa asudarsa commented Apr 2, 2025

This should fix failures caused by #133967
Attn: @sarnex
Thanks

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Apr 2, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 2, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-driver

Author: Arvind Sudarsanam (asudarsa)

Changes

This should fix failures caused by #133967
Attn: @sarnex
Thanks


Full diff: https://github.com/llvm/llvm-project/pull/134125.diff

4 Files Affected:

  • (modified) clang/test/Driver/clang-sycl-linker-test.cpp (+2)
  • (modified) clang/test/Driver/link-device-code.test (+2)
  • (modified) clang/test/Driver/sycl-link-spirv-target.cpp (+2)
  • (modified) clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp (+3)
diff --git a/clang/test/Driver/clang-sycl-linker-test.cpp b/clang/test/Driver/clang-sycl-linker-test.cpp
index 2f860ae74e97d..c399689653784 100644
--- a/clang/test/Driver/clang-sycl-linker-test.cpp
+++ b/clang/test/Driver/clang-sycl-linker-test.cpp
@@ -1,5 +1,7 @@
 // Tests the clang-sycl-linker tool.
 //
+// REQUIRES: spirv-registered-target
+//
 // Test the dry run of a simple case to link two input files.
 // RUN: %clangxx -emit-llvm -c -target spirv64 %s -o %t_1.bc
 // RUN: %clangxx -emit-llvm -c -target spirv64 %s -o %t_2.bc
diff --git a/clang/test/Driver/link-device-code.test b/clang/test/Driver/link-device-code.test
index a5f52fdb7d9ae..231f02b6560e0 100644
--- a/clang/test/Driver/link-device-code.test
+++ b/clang/test/Driver/link-device-code.test
@@ -1,3 +1,5 @@
+# REQUIRES: spirv-registered-target
+
 # RUN: llvm-as %S/Inputs/SYCL/foo.ll -o %t.foo.bc
 # RUN: llvm-as %S/Inputs/SYCL/bar.ll -o %t.bar.bc
 # RUN: llvm-as %S/Inputs/SYCL/baz.ll -o %t.baz.bc
diff --git a/clang/test/Driver/sycl-link-spirv-target.cpp b/clang/test/Driver/sycl-link-spirv-target.cpp
index 586adae619165..24206e38ad0a7 100644
--- a/clang/test/Driver/sycl-link-spirv-target.cpp
+++ b/clang/test/Driver/sycl-link-spirv-target.cpp
@@ -1,6 +1,8 @@
 // Tests the driver when linking LLVM IR bitcode files and targeting SPIR-V
 // architecture.
 //
+// REQUIRES: spirv-registered-target
+//
 // Test that -Xlinker options are being passed to clang-sycl-linker.
 // RUN: touch %t.bc
 // RUN: %clangxx -### --target=spirv64 --sycl-link -Xlinker -triple=spirv64 -Xlinker --library-path=/tmp \
diff --git a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
index ab718c5a87c40..24a35b01a81a8 100644
--- a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+++ b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
@@ -282,6 +282,9 @@ static Expected<StringRef> runSPIRVCodeGen(StringRef File, const ArgList &Args,
                                            LLVMContext &C) {
   llvm::TimeTraceScope TimeScope("SPIR-V code generation");
 
+  if (Error Err = M->materializeAll())
+    return std::move(Err);
+
   // Parse input module.
   SMDiagnostic Err;
   std::unique_ptr<Module> M = parseIRFile(File, Err, C);

@sarnex sarnex merged commit 4688719 into llvm:main Apr 2, 2025
8 of 12 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder cross-project-tests-sie-ubuntu running on doug-worker-1a while building clang at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
9.352 [53/8/68] Linking CXX executable bin/llvm-symbolizer
9.355 [52/8/69] Generating ../../bin/llvm-addr2line
9.383 [51/8/70] Linking CXX executable bin/llvm-xray
9.411 [50/8/71] Linking CXX executable bin/obj2yaml
9.415 [49/8/72] Copying llvm-locstats into /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/build/./bin
9.489 [49/7/73] Linking CXX executable bin/sancov
9.646 [49/6/74] Linking CXX executable bin/sanstats
9.712 [49/5/75] Linking CXX executable bin/yaml2obj
9.756 [49/4/76] Linking CXX executable bin/verify-uselistorder
11.503 [49/3/77] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/build/tools/clang/tools/clang-sycl-linker -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/clang/tools/clang-sycl-linker -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/clang/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/build/tools/clang/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/build/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
15.949 [49/2/78] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
17.093 [49/1/79] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder cross-project-tests-sie-ubuntu-dwarf5 running on doug-worker-1b while building clang at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
12.715 [53/8/68] Linking CXX executable bin/llvm-symbolizer
12.731 [52/8/69] Generating ../../bin/llvm-addr2line
12.833 [51/8/70] Linking CXX executable bin/llvm-xray
12.898 [50/8/71] Linking CXX executable bin/obj2yaml
12.914 [49/8/72] Copying llvm-locstats into /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/build/./bin
13.104 [49/7/73] Linking CXX executable bin/sancov
13.206 [49/6/74] Linking CXX executable bin/sanstats
13.233 [49/5/75] Linking CXX executable bin/verify-uselistorder
13.238 [49/4/76] Linking CXX executable bin/yaml2obj
16.230 [49/3/77] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/build/tools/clang/tools/clang-sycl-linker -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/clang/tools/clang-sycl-linker -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/clang/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/build/tools/clang/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/build/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
23.204 [49/2/78] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
24.370 [49/1/79] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder lldb-x86_64-debian running on lldb-x86_64-debian while building clang at step 4 "build".

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

Here is the relevant piece of the build log for the reference
Step 4 (build) failure: build (failure)
...
4.617 [50/12/75] Linking CXX executable bin/llvm-jitlink
4.640 [50/11/76] Linking CXX executable bin/llvm-extract
4.941 [50/10/77] Linking CXX executable bin/diagtool
4.971 [50/9/78] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
4.976 [50/8/79] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
5.037 [50/7/80] Linking CXX shared module lib/SampleAnalyzerPlugin.so
5.248 [50/6/81] Linking CXX executable bin/clang-diff
5.326 [50/5/82] Linking CXX executable bin/clang-installapi
5.362 [50/4/83] Linking CXX executable bin/clang-refactor
7.663 [50/3/84] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/2.0.1/lldb-x86_64-debian/build/tools/clang/tools/clang-sycl-linker -I/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/clang/tools/clang-sycl-linker -I/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/clang/include -I/home/worker/2.0.1/lldb-x86_64-debian/build/tools/clang/include -I/home/worker/2.0.1/lldb-x86_64-debian/build/include -I/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/worker/2.0.1/lldb-x86_64-debian/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  if (Error Err = M->materializeAll())
                  ^
1 error generated.
11.427 [50/2/85] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
12.511 [50/1/86] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building clang at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
8.049 [90/12/139] Linking CXX executable tools/clang/unittests/AST/ASTTests
8.095 [90/11/140] Linking CXX executable tools/clang/unittests/Support/ClangSupportTests
8.147 [90/10/141] Linking CXX executable unittests/Transforms/Utils/UtilsTests
8.225 [90/9/142] Linking CXX executable tools/clang/unittests/Serialization/SerializationTests
8.549 [90/8/143] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
8.649 [90/7/144] Linking CXX executable unittests/IR/IRTests
8.719 [90/6/145] Linking CXX executable unittests/Analysis/AnalysisTests
8.731 [90/5/146] Linking CXX executable unittests/Passes/Plugins/PluginsTests
8.839 [90/4/147] Linking CXX executable bin/clang-tidy
10.814 [90/3/148] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/tools/clang-sycl-linker -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/tools/clang-sycl-linker -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
15.348 [90/2/149] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
16.559 [90/1/150] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

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

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

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)
...
[0/9] Performing build step for 'libcxx_fuzzer_aarch64'
ninja: no work to do.
[3/9] Building CXX object compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.aarch64.dir/dummy.cpp.o
[4/9] Installing libcxx_fuzzer_aarch64...
[0/1] Install the project...
-- Install configuration: "Release"
[8/9] Generating /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/compile_commands.json
[23/27] No install step for 'runtimes'
[25/27] Completed 'runtimes'
[26/27] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/tools/clang/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
1 error generated.
ninja: build stopped: subcommand failed.
Step 7 (stage1 build all) failure: stage1 build all (failure)
...
[0/9] Performing build step for 'libcxx_fuzzer_aarch64'
ninja: no work to do.
[3/9] Building CXX object compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_dynamic_version_script_dummy.aarch64.dir/dummy.cpp.o
[4/9] Installing libcxx_fuzzer_aarch64...
[0/1] Install the project...
-- Install configuration: "Release"
[8/9] Generating /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/compile_commands.json
[23/27] No install step for 'runtimes'
[25/27] Completed 'runtimes'
[26/27] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/tools/clang/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm_build0/include -I/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux-fuzzer/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
1 error generated.
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=20.449747

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder clang-hip-vega20 running on hip-vega20-0 while building clang at step 3 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
[84/150] Linking CXX executable bin/pp-trace
[85/150] Linking CXX executable bin/clang-diff
[86/150] Linking CXX executable bin/clang-installapi
[87/150] Linking CXX executable bin/clang-include-cleaner
[88/150] Linking CXX executable bin/clang-change-namespace
[89/150] Linking CXX executable bin/clang-move
[90/150] Linking CXX executable bin/find-all-symbols
[91/150] Linking CXX executable bin/tool-template
[92/150] Linking CXX executable bin/clang-doc
[93/150] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/include -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/tools/clang/include -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
[94/150] Linking CXX executable bin/clang-query
[95/150] Linking CXX executable bin/modularize
[96/150] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[97/150] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[98/150] Linking CXX executable bin/clangd-indexer
[99/150] Linking CXX executable bin/clangd-fuzzer
[100/150] Linking CXX executable bin/clangd
[101/150] Linking CXX executable bin/clang-tidy
ninja: build stopped: subcommand failed.
Step 7 (Building LLVM) failure: Building LLVM (failure)
...
[84/150] Linking CXX executable bin/pp-trace
[85/150] Linking CXX executable bin/clang-diff
[86/150] Linking CXX executable bin/clang-installapi
[87/150] Linking CXX executable bin/clang-include-cleaner
[88/150] Linking CXX executable bin/clang-change-namespace
[89/150] Linking CXX executable bin/clang-move
[90/150] Linking CXX executable bin/find-all-symbols
[91/150] Linking CXX executable bin/tool-template
[92/150] Linking CXX executable bin/clang-doc
[93/150] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/include -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/tools/clang/include -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/botworker/bbot/clang-hip-vega20/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
[94/150] Linking CXX executable bin/clang-query
[95/150] Linking CXX executable bin/modularize
[96/150] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[97/150] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
[98/150] Linking CXX executable bin/clangd-indexer
[99/150] Linking CXX executable bin/clangd-fuzzer
[100/150] Linking CXX executable bin/clangd
[101/150] Linking CXX executable bin/clang-tidy
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=26.078323

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-ubuntu-22-cmake-build-only running on rocm-docker-ubu-22 while building clang at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7677/7734] Creating library symlink lib/libFIRTransforms.so
[7678/7734] Linking CXX shared library lib/libFlangOpenMPTransforms.so.21.0git
[7679/7734] Creating library symlink lib/libFlangOpenMPTransforms.so
[7680/7734] Linking CXX shared library lib/libFIRTestAnalysis.so.21.0git
[7681/7734] Creating library symlink lib/libFIRTestAnalysis.so
[7682/7734] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7683/7734] Creating library symlink lib/libclang-cpp.so
[7684/7734] Linking CXX shared library lib/libHLFIRTransforms.so.21.0git
[7685/7734] Linking CXX executable bin/fir-lsp-server
[7686/7734] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/tools/clang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
[7687/7734] Creating library symlink lib/libHLFIRTransforms.so
[7688/7734] Linking CXX shared library lib/libFortranLower.so.21.0git
[7689/7734] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7677/7734] Creating library symlink lib/libFIRTransforms.so
[7678/7734] Linking CXX shared library lib/libFlangOpenMPTransforms.so.21.0git
[7679/7734] Creating library symlink lib/libFlangOpenMPTransforms.so
[7680/7734] Linking CXX shared library lib/libFIRTestAnalysis.so.21.0git
[7681/7734] Creating library symlink lib/libFIRTestAnalysis.so
[7682/7734] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7683/7734] Creating library symlink lib/libclang-cpp.so
[7684/7734] Linking CXX shared library lib/libHLFIRTransforms.so.21.0git
[7685/7734] Linking CXX executable bin/fir-lsp-server
[7686/7734] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/tools/clang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
[7687/7734] Creating library symlink lib/libHLFIRTransforms.so
[7688/7734] Linking CXX shared library lib/libFortranLower.so.21.0git
[7689/7734] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=112.885601

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-8-cmake-build-only running on rocm-docker-rhel-8 while building clang at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7676/7732] Linking CXX shared library lib/libFlangOpenMPTransforms.so.21.0git
[7677/7732] Creating library symlink lib/libFlangOpenMPTransforms.so
[7678/7732] Linking CXX shared library lib/libFIRTestAnalysis.so.21.0git
[7679/7732] Creating library symlink lib/libFIRTestAnalysis.so
[7680/7732] Linking CXX executable bin/fir-lsp-server
[7681/7732] Linking CXX shared library lib/libHLFIRTransforms.so.21.0git
[7682/7732] Creating library symlink lib/libHLFIRTransforms.so
[7683/7732] Linking CXX shared library lib/libflangPasses.so.21.0git
[7684/7732] Creating library symlink lib/libflangPasses.so
[7685/7732] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/tools/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope
   if (Error Err = M->materializeAll())
                   ^
[7686/7732] Linking CXX executable bin/fir-opt
[7687/7732] Linking CXX executable bin/tco
[7688/7732] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7689/7732] Linking CXX shared library lib/libFortranLower.so.21.0git
[7690/7732] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7676/7732] Linking CXX shared library lib/libFlangOpenMPTransforms.so.21.0git
[7677/7732] Creating library symlink lib/libFlangOpenMPTransforms.so
[7678/7732] Linking CXX shared library lib/libFIRTestAnalysis.so.21.0git
[7679/7732] Creating library symlink lib/libFIRTestAnalysis.so
[7680/7732] Linking CXX executable bin/fir-lsp-server
[7681/7732] Linking CXX shared library lib/libHLFIRTransforms.so.21.0git
[7682/7732] Creating library symlink lib/libHLFIRTransforms.so
[7683/7732] Linking CXX shared library lib/libflangPasses.so.21.0git
[7684/7732] Creating library symlink lib/libflangPasses.so
[7685/7732] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/tools/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope
   if (Error Err = M->materializeAll())
                   ^
[7686/7732] Linking CXX executable bin/fir-opt
[7687/7732] Linking CXX executable bin/tco
[7688/7732] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7689/7732] Linking CXX shared library lib/libFortranLower.so.21.0git
[7690/7732] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=112.685687

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-9-cmake-build-only running on rocm-docker-rhel-9 while building clang at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7680/7732] Linking CXX executable bin/fir-lsp-server
[7681/7732] Linking CXX shared library lib/libHLFIRTransforms.so.21.0git
[7682/7732] Creating library symlink lib/libHLFIRTransforms.so
[7683/7732] Linking CXX shared library lib/libflangPasses.so.21.0git
[7684/7732] Creating library symlink lib/libflangPasses.so
[7685/7732] Linking CXX executable bin/fir-opt
[7686/7732] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7687/7732] Creating library symlink lib/libclang-cpp.so
[7688/7732] Linking CXX executable bin/tco
[7689/7732] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/tools/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
[7690/7732] Linking CXX shared library lib/libFortranLower.so.21.0git
[7691/7732] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7680/7732] Linking CXX executable bin/fir-lsp-server
[7681/7732] Linking CXX shared library lib/libHLFIRTransforms.so.21.0git
[7682/7732] Creating library symlink lib/libHLFIRTransforms.so
[7683/7732] Linking CXX shared library lib/libflangPasses.so.21.0git
[7684/7732] Creating library symlink lib/libflangPasses.so
[7685/7732] Linking CXX executable bin/fir-opt
[7686/7732] Linking CXX shared library lib/libclang-cpp.so.21.0git
[7687/7732] Creating library symlink lib/libclang-cpp.so
[7688/7732] Linking CXX executable bin/tco
[7689/7732] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/tools/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/tools/clang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp: In function ‘llvm::Expected<llvm::StringRef> {anonymous}::runSPIRVCodeGen(llvm::StringRef, const llvm::opt::ArgList&, llvm::LLVMContext&)’:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: ‘M’ was not declared in this scope; did you mean ‘llvm::ARM::ProfileKind::M’?
  285 |   if (Error Err = M->materializeAll())
      |                   ^
      |                   llvm::ARM::ProfileKind::M
In file included from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/MC/MCStreamer.h:30,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/Target/TargetMachine.h:19,
                 from /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:52:
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/llvm/include/llvm/TargetParser/ARMTargetParser.h:162:45: note: ‘llvm::ARM::ProfileKind::M’ declared here
  162 | enum class ProfileKind { INVALID = 0, A, R, M };
      |                                             ^
[7690/7732] Linking CXX shared library lib/libFortranLower.so.21.0git
[7691/7732] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.gch
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 50, in step
    yield
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 41, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 63, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=111.602726

@sarnex
Copy link
Member

sarnex commented Apr 2, 2025

i reverted, please fix and make a new pr

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

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

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

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)
...
[405/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_2.S.o
[406/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_1.S.o
[407/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_4.S.o
[408/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_5.S.o
[409/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_4.S.o
[410/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_5.S.o
[411/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_3.S.o
[412/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_5.S.o
[413/413] Linking C static library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.builtins.a
[5484/5497] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.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_BUILD_STATIC -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/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
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'
[0/10] Performing build step for 'builtins'
ninja: no work to do.
[1/10] No install step for 'builtins'
[3/10] Completed 'builtins'
[4/10] Clobbering bootstrap build and stamp directories
[5/10] Creating directories for 'runtimes'
[6/10] No download step for 'runtimes'
[7/10] No update step for 'runtimes'
[8/10] No patch step for 'runtimes'
[8/10] Performing configure step for 'runtimes'
Not searching for unused variables given on the command line.
loading initial cache file /home/b/sanitizer-aarch64-linux/build/build_default/projects/runtimes/tmp/runtimes-cache-Release.cmake
-- Performing bootstrapping runtimes build.
CMake Deprecation Warning at /home/b/sanitizer-aarch64-linux/build/llvm-project/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Step 8 (build compiler-rt symbolizer) failure: build compiler-rt symbolizer (failure)
...
[405/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_2.S.o
[406/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_1.S.o
[407/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_4.S.o
[408/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_5.S.o
[409/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_4.S.o
[410/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset8_5.S.o
[411/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset2_3.S.o
[412/413] Building ASM object CMakeFiles/clang_rt.builtins-aarch64.dir/outline_atomic_helpers.dir/outline_atomic_ldset4_5.S.o
[413/413] Linking C static library /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.builtins.a
[5484/5497] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.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_BUILD_STATIC -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/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
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)
...
[2978/2982] Generating FuzzerUtils-aarch64-Test
[2979/2982] Generating FuzzerTestObjects.FuzzerUnittest.cpp.aarch64.o
[2980/2982] Generating FuzzerTestObjects.gtest-all.cc.aarch64.o
[2981/2982] Generating Fuzzer-aarch64-Test
[2981/2982] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 6013 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: TypeSanitizer-aarch64 :: basic.c (4846 of 6013)
******************** TEST 'TypeSanitizer-aarch64 :: basic.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/basic.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/basic.c.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/basic.c.tmp 10 >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/basic.c.tmp.out.0 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/basic.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/basic.c.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: TypeSanitizer-aarch64 :: constexpr-subobject.cpp (4847 of 6013)
******************** TEST 'TypeSanitizer-aarch64 :: constexpr-subobject.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/constexpr-subobject.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/constexpr-subobject.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: TypeSanitizer-aarch64 :: anon-same-struct.c (4848 of 6013)
******************** TEST 'TypeSanitizer-aarch64 :: anon-same-struct.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-same-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-same-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
Step 10 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Success
-- Performing Test HAS_THREAD_LOCAL
-- Performing Test HAS_THREAD_LOCAL - Success
-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is "asan;lsan;hwasan;msan;tsan;ubsan"
-- sanitizer_common tests on "Linux" will run against "asan;lsan;hwasan;msan;tsan;ubsan"
-- Configuring done (14.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins
[5492/5497] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.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_BUILD_STATIC -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/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
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)
...
[2976/2980] Generating FuzzerTestObjects.gtest-all.cc.aarch64.o
[2977/2980] Generating Fuzzer-aarch64-Test
[2978/2980] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64.o
[2979/2980] Generating Msan-aarch64-Test
[2979/2980] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 2969 of 6014 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: TypeSanitizer-aarch64 :: anon-same-struct.c (2202 of 2969)
******************** TEST 'TypeSanitizer-aarch64 :: anon-same-struct.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-same-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-same-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: TypeSanitizer-aarch64 :: anon-struct.c (2204 of 2969)
******************** TEST 'TypeSanitizer-aarch64 :: anon-struct.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: TypeSanitizer-aarch64 :: constexpr-subobject.cpp (2208 of 2969)
******************** TEST 'TypeSanitizer-aarch64 :: constexpr-subobject.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/constexpr-subobject.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/constexpr-subobject.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
Step 12 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK
-- Performing Test COMPILER_RT_TARGET_HAS_FCNTL_LCK - Success
-- Performing Test COMPILER_RT_TARGET_HAS_FLOCK
-- Performing Test COMPILER_RT_TARGET_HAS_FLOCK - Success
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Success
-- Configuring done (47.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins
[5473/5478] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.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_BUILD_STATIC -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/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
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)
...
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME
-- Performing Test COMPILER_RT_TARGET_HAS_UNAME - Success
-- Performing Test HAS_THREAD_LOCAL
-- Performing Test HAS_THREAD_LOCAL - Success
-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is "asan;lsan;hwasan;msan;tsan;ubsan"
-- sanitizer_common tests on "Linux" will run against "asan;lsan;hwasan;msan;tsan;ubsan"
-- Configuring done (47.6s)
-- Generating done (0.2s)
-- Build files have been written to: /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins
[5492/5497] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.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_BUILD_STATIC -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/tools/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker -I/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/include -I/home/b/sanitizer-aarch64-linux/build/build_default/tools/clang/include -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/b/sanitizer-aarch64-linux/build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
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)
...
[2976/2980] Generating MSAN_INST_TEST_OBJECTS.msan_test.cpp.aarch64.o
[2977/2980] Generating Msan-aarch64-Test
[2978/2980] Generating FuzzerTestObjects.gtest-all.cc.aarch64.o
[2979/2980] Generating Fuzzer-aarch64-Test
[2979/2980] Running compiler_rt regression tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/interception/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/b/sanitizer-aarch64-linux/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: 6013 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: TypeSanitizer-aarch64 :: anon-same-struct.c (4838 of 6013)
******************** TEST 'TypeSanitizer-aarch64 :: anon-same-struct.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-same-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-same-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-same-struct.c.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: TypeSanitizer-aarch64 :: anon-struct.c (4841 of 6013)
******************** TEST 'TypeSanitizer-aarch64 :: anon-struct.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/anon-struct.c -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/anon-struct.c.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 
FAIL: TypeSanitizer-aarch64 :: constexpr-subobject.cpp (4842 of 6013)
******************** TEST 'TypeSanitizer-aarch64 :: constexpr-subobject.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang  -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/constexpr-subobject.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp &&  /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp >/home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp.out 2>&1 # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux/build/build_default/./bin/clang -fsanitize=type -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -gline-tables-only -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O0 /home/b/sanitizer-aarch64-linux/build/llvm-project/compiler-rt/test/tysan/constexpr-subobject.cpp -o /home/b/sanitizer-aarch64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/test/tysan/AARCH64Config/Output/constexpr-subobject.cpp.tmp
ld: error: cannot open /home/b/sanitizer-aarch64-linux/build/build_default/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.tysan.a: No such file or directory

llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Apr 2, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building clang at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
4.675 [4202/12/107] Linking CXX executable bin/clang-include-fixer
4.684 [4202/11/108] Linking CXX executable bin/tool-template
4.703 [4202/10/109] Linking CXX executable bin/find-all-symbols
4.707 [4202/9/110] Linking CXX executable bin/clang-query
4.719 [4202/8/111] Linking CXX executable bin/clang-doc
5.135 [4202/7/112] Linking CXX executable bin/clangd-indexer
5.224 [4202/6/113] Linking CXX executable bin/clangd-fuzzer
5.259 [4202/5/114] Linking CXX executable bin/clangd
5.352 [4202/4/115] Linking CXX executable bin/clang-tidy
7.925 [4202/3/116] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/build/tools/clang/tools/clang-sycl-linker -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/tools/clang-sycl-linker -I/build/buildbot/premerge-monolithic-linux/llvm-project/clang/include -I/build/buildbot/premerge-monolithic-linux/build/tools/clang/include -I/build/buildbot/premerge-monolithic-linux/build/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  if (Error Err = M->materializeAll())
                  ^
1 error generated.
12.220 [4202/2/117] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
13.430 [4202/1/118] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 2, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
66.328 [116/16/6615] Linking CXX static library lib/libclangStaticAnalyzerFrontend.a
66.904 [113/18/6616] Linking CXX executable bin/diagtool
66.935 [113/17/6617] Linking CXX executable bin/clang-diff
66.998 [113/16/6618] Linking CXX executable bin/clang-installapi
67.086 [113/15/6619] Linking CXX executable bin/clang-refactor
67.437 [113/14/6620] Linking CXX shared module lib/SampleAnalyzerPlugin.so
67.505 [113/13/6621] Linking CXX executable bin/mlir-translate
67.560 [113/12/6622] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
67.606 [113/11/6623] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
67.634 [113/10/6624] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -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-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/clang/tools/clang-sycl-linker -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/clang/tools/clang-sycl-linker -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/clang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/tools/clang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  285 |   if (Error Err = M->materializeAll())
      |                   ^
1 error generated.
68.059 [113/9/6625] Linking CXX executable bin/mlir-rewrite
68.128 [113/8/6626] Linking CXX executable bin/mlir-query
68.200 [113/7/6627] Linking CXX executable bin/mlir-transform-opt
68.317 [113/6/6628] Linking CXX executable bin/mlir-reduce
68.412 [113/5/6629] Linking CXX executable bin/mlir-opt
68.615 [113/4/6630] Linking CXX executable bin/mlir-lsp-server
81.863 [113/3/6631] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
84.490 [113/2/6632] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
119.650 [113/1/6633] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.pch
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 3, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building clang at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
52.189 [1089/39/6134] Linking CXX shared module lib/SampleAnalyzerPlugin.so
52.189 [1089/38/6135] Linking CXX executable bin/clang-diff
52.189 [1089/37/6136] Linking CXX static library lib/libclangApplyReplacements.a
52.204 [1088/37/6137] Linking CXX static library lib/libclangReorderFields.a
52.205 [1087/37/6138] Linking CXX static library lib/libclangTidy.a
52.213 [1086/37/6139] Linking CXX static library lib/libfindAllSymbols.a
52.240 [1084/38/6140] Linking CXX static library lib/libclangMove.a
52.248 [1083/38/6141] Linking CXX static library lib/libclangQuery.a
52.256 [1082/38/6142] Linking CXX static library lib/libclangIncludeCleaner.a
52.259 [1081/38/6143] Building CXX object tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/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/b/1/llvm-x86_64-debian-dylib/build/tools/clang/tools/clang-sycl-linker -I/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/tools/clang-sycl-linker -I/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/include -I/b/1/llvm-x86_64-debian-dylib/build/tools/clang/include -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -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 -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -MF tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o.d -o tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp:285:19: error: use of undeclared identifier 'M'
  if (Error Err = M->materializeAll())
                  ^
1 error generated.
52.259 [1081/37/6144] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
52.259 [1081/36/6145] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
52.259 [1081/35/6146] Linking CXX executable bin/diagtool
52.259 [1081/34/6147] Linking CXX executable bin/clang-21
52.259 [1081/33/6148] Linking CXX executable bin/clang-format
52.259 [1081/32/6149] Linking CXX executable bin/apinotes-test
52.260 [1081/31/6150] Linking CXX executable bin/clang-import-test
52.260 [1081/30/6151] Linking CXX executable bin/clang-offload-packager
52.260 [1081/29/6152] Linking CXX executable bin/clang-installapi
52.260 [1081/28/6153] Linking CXX executable bin/clang-scan-deps
52.260 [1081/27/6154] Linking CXX executable bin/clang-extdef-mapping
52.260 [1081/26/6155] Linking CXX static library lib/libclangdSupport.a
52.260 [1081/25/6156] Linking CXX static library lib/liblldbUtility.a
52.260 [1081/24/6157] Generating VCSVersion.inc
52.261 [1081/23/6158] Linking CXX static library lib/libclangHandleCXX.a
52.261 [1081/22/6159] Linking CXX static library lib/libclangCrossTU.a
52.261 [1081/21/6160] Linking CXX static library lib/libclangExtractAPI.a
52.261 [1081/20/6161] Linking CXX static library lib/libclangToolingRefactoring.a
52.261 [1081/19/6162] Linking CXX executable bin/clang-check
52.268 [1081/18/6163] Linking CXX static library lib/libclangIncludeFixer.a
52.272 [1081/17/6164] Linking CXX executable bin/clang-repl
52.287 [1081/16/6165] Linking CXX static library lib/libclangTidyUtils.a
52.289 [1081/15/6166] Linking CXX executable bin/pp-trace
52.316 [1081/14/6167] Linking CXX executable bin/modularize
52.356 [1081/13/6168] Linking CXX executable bin/lldb-instr
52.363 [1081/12/6169] Linking CXX executable bin/lldb-argdumper
52.392 [1081/11/6170] Linking CXX executable bin/lit-cpuid
52.445 [1081/10/6171] Linking CXX executable bin/tool-template
52.466 [1081/9/6172] Linking CXX executable bin/clang-change-namespace
52.496 [1081/8/6173] Linking CXX executable bin/clang-doc
52.531 [1081/7/6174] Linking CXX executable bin/clang-reorder-fields
52.531 [1081/6/6175] Linking CXX executable bin/find-all-symbols
52.538 [1081/5/6176] Linking CXX executable bin/clang-apply-replacements

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 6, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-win-fast running on as-builder-3 while building clang at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
[4153/4173] Linking CXX executable bin\clang-scan-deps.exe
[4154/4173] Linking CXX executable bin\clang-refactor.exe
[4155/4173] Linking CXX executable bin\clang-extdef-mapping.exe
[4156/4173] Linking CXX executable bin\clang-installapi.exe
[4157/4173] Linking CXX executable bin\clang-nvlink-wrapper.exe
[4158/4173] Linking CXX shared library bin\LTO.dll
[4159/4173] Linking CXX executable bin\llvm-reduce.exe
[4160/4173] Linking CXX executable bin\opt.exe
[4161/4173] Linking CXX shared library bin\libclang.dll
[4162/4173] Building CXX object tools\clang\tools\clang-sycl-linker\CMakeFiles\clang-sycl-linker.dir\ClangSYCLLinker.cpp.obj
FAILED: tools/clang/tools/clang-sycl-linker/CMakeFiles/clang-sycl-linker.dir/ClangSYCLLinker.cpp.obj 
C:\ninja\ccache.exe C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\cl.exe  /nologo /TP -DCLANG_BUILD_STATIC -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\tools\clang-sycl-linker -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\tools\clang-sycl-linker -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\include -IC:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Oi /bigobj /permissive- /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -wd4251 -wd4275 -w14062 -we4238 /Gw /O2 /Ob2 /DNDEBUG -MD  /EHs-c- /GR- -std:c++17 /showIncludes /Fotools\clang\tools\clang-sycl-linker\CMakeFiles\clang-sycl-linker.dir\ClangSYCLLinker.cpp.obj /Fdtools\clang\tools\clang-sycl-linker\CMakeFiles\clang-sycl-linker.dir\ /FS -c C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\tools\clang-sycl-linker\ClangSYCLLinker.cpp
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\tools\clang-sycl-linker\ClangSYCLLinker.cpp(285): error C2065: 'M': undeclared identifier
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\tools\clang-sycl-linker\ClangSYCLLinker.cpp(285): error C2248: 'llvm::Error::Error': cannot access protected member declared in class 'llvm::Error'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/Support/Error.h(181): note: see declaration of 'llvm::Error::Error'
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\include\llvm/Support/WithColor.h(17): note: see declaration of 'llvm::Error'
[4163/4173] Linking CXX executable bin\clang-import-test.exe
[4164/4173] Linking CXX executable bin\clang-check.exe
[4165/4173] Linking CXX executable bin\c-index-test.exe
[4166/4173] Linking CXX executable bin\clang-repl.exe
[4167/4173] Linking CXX executable bin\clang.exe
[4168/4173] Generating export list for LLVM-C
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants