Skip to content

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Aug 13, 2025

Summary:
This is a standalone tool that does the wrapper stage of the
clang-linker-wrapper. We want this to be an external tool because
currently there's no easy way to split apart what the
clang-linker-wrapper is doing under the hood. With this tool, users can
manually extract files with clang-offload-packager, feed them through
clang --target=<triple> and then use this tool to generate a .bc
file they can give to the linker. The goal here is to make reproducing
the linker wrapper steps easier.

Copy link
Contributor

@arsenm arsenm left a comment

Choose a reason for hiding this comment

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

Add something to the command guide and offload documentation

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Aug 13, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 13, 2025

@llvm/pr-subscribers-clang

Author: Joseph Huber (jhuber6)

Changes

Summary:
This is a standalone tool that does the wrapper stage of the
clang-linker-wrapper. We want this to be an external tool because
currently there's no easy way to split apart what the
clang-linker-wrapper is doing under the hood. With this tool, users can
manually extract files with clang-offload-packager, feed them through
clang --target=&lt;triple&gt; and then use this tool to generate a .bc
file they can give to the linker. The goal here is to make reproducing
the linker wrapper steps easier.


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

5 Files Affected:

  • (modified) clang/docs/ClangLinkerWrapper.rst (+4)
  • (modified) llvm/test/CMakeLists.txt (+1)
  • (added) llvm/test/Other/offload-wrapper.ll (+54)
  • (added) llvm/tools/llvm-offload-wrapper/CMakeLists.txt (+15)
  • (added) llvm/tools/llvm-offload-wrapper/llvm-offload-wrapper.cpp (+135)
diff --git a/clang/docs/ClangLinkerWrapper.rst b/clang/docs/ClangLinkerWrapper.rst
index e69cdba434c93..eb38d2b8fb5ee 100644
--- a/clang/docs/ClangLinkerWrapper.rst
+++ b/clang/docs/ClangLinkerWrapper.rst
@@ -60,6 +60,10 @@ only for the linker wrapper will be forwarded to the wrapped linker job.
     --v                    Display the version number and exit
     --                     The separator for the wrapped linker arguments
 
+The linker wrapper will generate the appropriate runtime calls to register the
+generated device binary with the offloading runtime. To do this step manually we
+provide the ``llvm-offload-wrapper`` utility.
+
 Relocatable Linking
 ===================
 
diff --git a/llvm/test/CMakeLists.txt b/llvm/test/CMakeLists.txt
index b46f4829605a1..f6333d68a8ea5 100644
--- a/llvm/test/CMakeLists.txt
+++ b/llvm/test/CMakeLists.txt
@@ -118,6 +118,7 @@ set(LLVM_TEST_DEPENDS
           llvm-objdump
           llvm-opt-fuzzer
           llvm-opt-report
+          llvm-offload-wrapper
           llvm-otool
           llvm-pdbutil
           llvm-profdata
diff --git a/llvm/test/Other/offload-wrapper.ll b/llvm/test/Other/offload-wrapper.ll
new file mode 100644
index 0000000000000..7be034e0931f1
--- /dev/null
+++ b/llvm/test/Other/offload-wrapper.ll
@@ -0,0 +1,54 @@
+; RUN: touch %t
+
+; RUN: llvm-offload-wrapper --target=x86-64 -kind=hip %t -o %t.bc
+; RUN: llvm-dis %t.bc -o - | FileCheck %s --check-prefix=HIP
+
+;      HIP: @__start_llvm_offload_entries = external hidden constant [0 x %struct.__tgt_offload_entry], section "llvm_offload_entries$OA"
+; HIP-NEXT: @__stop_llvm_offload_entries = external hidden constant [0 x %struct.__tgt_offload_entry], section "llvm_offload_entries$OZ"
+; HIP-NEXT: @.fatbin_image = internal constant [0 x i8] zeroinitializer, section ".hip_fatbin"
+; HIP-NEXT: @.fatbin_wrapper = internal constant %fatbin_wrapper { i32 1212764230, i32 1, ptr @.fatbin_image, ptr null }, section ".hipFatBinSegment", align 8
+; HIP-NEXT: @.hip.binary_handle = internal global ptr null
+; HIP-NEXT: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 101, ptr @.hip.fatbin_reg, ptr null }]
+
+;      HIP: define internal void @.hip.fatbin_reg() section ".text.startup" {
+; HIP-NEXT: entry:
+; HIP-NEXT:   %0 = call ptr @__hipRegisterFatBinary(ptr @.fatbin_wrapper)
+; HIP-NEXT:   store ptr %0, ptr @.hip.binary_handle, align 8
+; HIP-NEXT:   call void @.hip.globals_reg(ptr %0)
+; HIP-NEXT:   %1 = call i32 @atexit(ptr @.hip.fatbin_unreg)
+; HIP-NEXT:   ret void
+; HIP-NEXT: }
+
+;      HIP: define internal void @.hip.fatbin_unreg() section ".text.startup" {
+; HIP-NEXT: entry:
+; HIP-NEXT:   %0 = load ptr, ptr @.hip.binary_handle, align 8
+; HIP-NEXT:   call void @__hipUnregisterFatBinary(ptr %0)
+; HIP-NEXT:   ret void
+; HIP-NEXT: }
+
+; RUN: llvm-offload-wrapper --target=x86-64 -kind=cuda %t -o %t.bc
+; RUN: llvm-dis %t.bc -o - | FileCheck %s --check-prefix=CUDA
+
+;      CUDA: @__start_llvm_offload_entries = external hidden constant [0 x %struct.__tgt_offload_entry], section "llvm_offload_entries$OA"
+; CUDA-NEXT: @__stop_llvm_offload_entries = external hidden constant [0 x %struct.__tgt_offload_entry], section "llvm_offload_entries$OZ"
+; CUDA-NEXT: @.fatbin_image = internal constant [0 x i8] zeroinitializer, section ".nv_fatbin"
+; CUDA-NEXT: @.fatbin_wrapper = internal constant %fatbin_wrapper { i32 1180844977, i32 1, ptr @.fatbin_image, ptr null }, section ".nvFatBinSegment", align 8
+; CUDA-NEXT: @.cuda.binary_handle = internal global ptr null
+; CUDA-NEXT: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 101, ptr @.cuda.fatbin_reg, ptr null }]
+
+;      CUDA: define internal void @.cuda.fatbin_reg() section ".text.startup" {
+; CUDA-NEXT: entry:
+; CUDA-NEXT:   %0 = call ptr @__cudaRegisterFatBinary(ptr @.fatbin_wrapper)
+; CUDA-NEXT:   store ptr %0, ptr @.cuda.binary_handle, align 8
+; CUDA-NEXT:   call void @.cuda.globals_reg(ptr %0)
+; CUDA-NEXT:   call void @__cudaRegisterFatBinaryEnd(ptr %0)
+; CUDA-NEXT:   %1 = call i32 @atexit(ptr @.cuda.fatbin_unreg)
+; CUDA-NEXT:   ret void
+; CUDA-NEXT: }
+
+;      CUDA: define internal void @.cuda.fatbin_unreg() section ".text.startup" {
+; CUDA-NEXT: entry:
+; CUDA-NEXT:   %0 = load ptr, ptr @.cuda.binary_handle, align 8
+; CUDA-NEXT:   call void @__cudaUnregisterFatBinary(ptr %0)
+; CUDA-NEXT:   ret void
+; CUDA-NEXT: }
diff --git a/llvm/tools/llvm-offload-wrapper/CMakeLists.txt b/llvm/tools/llvm-offload-wrapper/CMakeLists.txt
new file mode 100644
index 0000000000000..2e2cdb53b5b41
--- /dev/null
+++ b/llvm/tools/llvm-offload-wrapper/CMakeLists.txt
@@ -0,0 +1,15 @@
+set(LLVM_LINK_COMPONENTS
+  BitWriter
+  Object
+  Option
+  FrontendOffloading
+  Support
+  TargetParser
+  )
+
+add_llvm_tool(llvm-offload-wrapper
+  llvm-offload-wrapper.cpp
+
+  DEPENDS
+  intrinsics_gen
+  )
diff --git a/llvm/tools/llvm-offload-wrapper/llvm-offload-wrapper.cpp b/llvm/tools/llvm-offload-wrapper/llvm-offload-wrapper.cpp
new file mode 100644
index 0000000000000..f9ac3d717979d
--- /dev/null
+++ b/llvm/tools/llvm-offload-wrapper/llvm-offload-wrapper.cpp
@@ -0,0 +1,135 @@
+//===- llvm-offload-wrapper: Create runtime registration code for devices -===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Provides a utility for generating runtime registration code for device code.
+// We take a binary image (CUDA fatbinary, HIP offload bundle, LLVM binary) and
+// create a new IR module that calls the respective runtime to load it on the
+// device.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Bitcode/BitcodeWriter.h"
+#include "llvm/Frontend/Offloading/OffloadWrapper.h"
+#include "llvm/Frontend/Offloading/Utility.h"
+#include "llvm/Object/OffloadBinary.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileOutputBuffer.h"
+#include "llvm/Support/FileSystem.h"
+#include "llvm/Support/InitLLVM.h"
+#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/Path.h"
+#include "llvm/Support/Signals.h"
+#include "llvm/Support/StringSaver.h"
+#include "llvm/Support/WithColor.h"
+#include "llvm/TargetParser/Host.h"
+
+using namespace llvm;
+
+static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden);
+
+static cl::OptionCategory
+    OffloadWrapeprCategory("llvm-offload-wrapper options");
+
+static cl::opt<object::OffloadKind> Kind(
+    "kind", cl::desc("Wrap for offload kind:"), cl::cat(OffloadWrapeprCategory),
+    cl::Required,
+    cl::values(clEnumValN(object::OFK_OpenMP, "openmp", "Wrap OpenMP binaries"),
+               clEnumValN(object::OFK_Cuda, "cuda", "Wrap CUDA binaries"),
+               clEnumValN(object::OFK_HIP, "hip", "Wrap HIP binaries")));
+
+static cl::opt<std::string> OutputFile("o", cl::desc("Write output to <file>."),
+                                       cl::value_desc("file"),
+                                       cl::cat(OffloadWrapeprCategory));
+
+static cl::list<std::string> InputFiles(cl::Positional,
+                                        cl::desc("Wrap input from <file>"),
+                                        cl::value_desc("file"), cl::OneOrMore,
+                                        cl::cat(OffloadWrapeprCategory));
+
+static cl::opt<std::string>
+    TheTriple("triple", cl::desc("Target triple for the wrapper module"),
+              cl::init(sys::getDefaultTargetTriple()),
+              cl::cat(OffloadWrapeprCategory));
+
+static Error wrapImages(ArrayRef<ArrayRef<char>> BuffersToWrap) {
+  if (BuffersToWrap.size() > 1 &&
+      (Kind == llvm::object::OFK_Cuda || Kind == llvm::object::OFK_HIP))
+    return createStringError(
+        "CUDA / HIP offloading uses a single fatbinary or offload bundle");
+
+  LLVMContext Context;
+  Module M("offload.wrapper.module", Context);
+  M.setTargetTriple(Triple());
+
+  switch (Kind) {
+  case llvm::object::OFK_OpenMP:
+    if (Error Err = offloading::wrapOpenMPBinaries(
+            M, BuffersToWrap, offloading::getOffloadEntryArray(M),
+            /*Suffix=*/"", /*Relocatable=*/false))
+      return std::move(Err);
+    break;
+  case llvm::object::OFK_Cuda:
+    if (Error Err = offloading::wrapCudaBinary(
+            M, BuffersToWrap.front(), offloading::getOffloadEntryArray(M),
+            /*Suffix=*/"", /*EmitSurfacesAndTextures=*/false))
+      return std::move(Err);
+    break;
+  case llvm::object::OFK_HIP:
+    if (Error Err = offloading::wrapHIPBinary(
+            M, BuffersToWrap.front(), offloading::getOffloadEntryArray(M)))
+      return std::move(Err);
+    break;
+  default:
+    return createStringError(getOffloadKindName(Kind) +
+                             " wrapping is not supported");
+  }
+
+  int FD = -1;
+  if (std::error_code EC = sys::fs::openFileForWrite(OutputFile, FD))
+    return errorCodeToError(EC);
+  llvm::raw_fd_ostream OS(FD, true);
+  WriteBitcodeToFile(M, OS);
+
+  return Error::success();
+}
+
+int main(int argc, char **argv) {
+  InitLLVM X(argc, argv);
+  cl::HideUnrelatedOptions(OffloadWrapeprCategory);
+  cl::ParseCommandLineOptions(
+      argc, argv,
+      "Generate runtime registration code for a device binary image\n");
+
+  if (Help) {
+    cl::PrintHelpMessage();
+    return EXIT_SUCCESS;
+  }
+
+  auto reportError = [argv](Error E) {
+    logAllUnhandledErrors(std::move(E), WithColor::error(errs(), argv[0]));
+    exit(EXIT_FAILURE);
+  };
+
+  SmallVector<std::unique_ptr<MemoryBuffer>> Buffers;
+  SmallVector<ArrayRef<char>> BuffersToWrap;
+  for (StringRef Input : InputFiles) {
+    ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr =
+        MemoryBuffer::getFileOrSTDIN(Input);
+    if (std::error_code EC = BufferOrErr.getError())
+      reportError(createFileError(Input, EC));
+    std::unique_ptr<MemoryBuffer> &Buffer =
+        Buffers.emplace_back(std::move(*BufferOrErr));
+    BuffersToWrap.emplace_back(
+        ArrayRef<char>(Buffer->getBufferStart(), Buffer->getBufferSize()));
+  }
+
+  if (Error Err = wrapImages(BuffersToWrap))
+    reportError(std::move(Err));
+
+  return EXIT_SUCCESS;
+}

@saiislam
Copy link
Contributor

Thanks! This functionality is much needed.
Would it be better if we add it as a flag in the existing clang-linker-wrapper tool, instead of adding a new tool?

@jhuber6
Copy link
Contributor Author

jhuber6 commented Aug 14, 2025

Thanks! This functionality is much needed. Would it be better if we add it as a flag in the existing clang-linker-wrapper tool, instead of adding a new tool?

Honestly a lot of those clang tools should be made LLVM tools anyways. There's plenty of existing LLVM tools that only exist for testing purposes so I think it's reasonable to keep things simple here.

@jhuber6 jhuber6 force-pushed the offload-wrapper branch 2 times, most recently from 00a65c6 to 5d9b3c0 Compare August 14, 2025 20:24
@jhuber6
Copy link
Contributor Author

jhuber6 commented Aug 19, 2025

ping

Summary:
This is a standalone tool that does the wrapper stage of the
`clang-linker-wrapper`. We want this to be an external tool because
currently there's no easy way to split apart what the
clang-linker-wrapper is doing under the hood. With this tool, users can
manually extract files with `clang-offload-packager`, feed them through
`clang --target=<triple>` and then use this tool to generate a `.bc`
file they can give to the linker. The goal here is to make reproducing
the linker wrapper steps easier.
@jhuber6 jhuber6 merged commit 4c9b7ff into llvm:main Aug 19, 2025
9 of 10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building clang,llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
8.340 [743/26/3938] Linking CXX shared library lib/libLLVMFrontendOffloading.so.22.0git
8.340 [742/26/3939] Linking CXX shared library lib/libLLVMLinker.so.22.0git
8.343 [741/26/3940] Linking CXX shared library lib/libLLVMObjCARCOpts.so.22.0git
8.347 [740/26/3941] Creating library symlink lib/libLLVMHipStdPar.so
8.349 [740/25/3942] Creating library symlink lib/libLLVMFrontendOffloading.so
8.352 [738/26/3943] Creating library symlink lib/libLLVMAggressiveInstCombine.so
8.352 [738/25/3944] Creating library symlink lib/libLLVMObjCARCOpts.so
8.352 [738/24/3945] Creating library symlink lib/libLLVMLinker.so
8.397 [738/23/3946] Linking CXX shared library lib/libLLVMInstCombine.so.22.0git
8.407 [737/23/3947] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
8.409 [737/22/3948] Creating library symlink lib/libLLVMInstCombine.so
8.411 [737/21/3949] Linking CXX shared library lib/libLLVMInstrumentation.so.22.0git
8.434 [737/20/3950] Linking CXX executable bin/llvm-gpu-loader
8.481 [737/19/3951] Linking CXX shared library lib/libLLVMVectorize.so.22.0git
10.378 [737/18/3952] Building AMDGPUGenMCPseudoLowering.inc...
11.076 [737/17/3953] Building AMDGPUGenPreLegalizeGICombiner.inc...
11.303 [737/16/3954] Building AMDGPUGenRegBankGICombiner.inc...
11.408 [737/15/3955] Building AMDGPUGenPostLegalizeGICombiner.inc...
11.510 [737/14/3956] Building AMDGPUGenMCCodeEmitter.inc...
11.707 [737/13/3957] Building AMDGPUGenSubtargetInfo.inc...
11.828 [737/12/3958] Building AMDGPUGenDisassemblerTables.inc...
12.152 [737/11/3959] Building AMDGPUGenCallingConv.inc...
12.298 [737/10/3960] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
12.570 [737/9/3961] Building AMDGPUGenSearchableTables.inc...
13.319 [737/8/3962] Building AMDGPUGenAsmWriter.inc...
13.678 [737/7/3963] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
14.564 [737/6/3964] Building AMDGPUGenGlobalISel.inc...
14.590 [737/5/3965] Building AMDGPUGenDAGISel.inc...
15.107 [737/4/3966] Building AMDGPUGenAsmMatcher.inc...
15.929 [737/3/3967] Building AMDGPUGenInstrInfo.inc...
16.122 [737/2/3968] Building AMDGPUGenRegisterBank.inc...
16.262 [737/1/3969] Building AMDGPUGenRegisterInfo.inc...
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder hip-third-party-libs-test running on ext_buildbot_hw_05-hip-docker while building clang,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py --jobs=32' (failure)
...
[6937/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6938/8016] Linking CXX shared library lib/libclangFrontendTool.so.22.0git
[6939/8016] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[6940/8016] Creating library symlink lib/libclangFrontendTool.so
[6941/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/logical.test.dir/logical.cpp.o
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6945/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6946/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/bbot/hip-third-party-libs-test/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6947/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6948/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6949/8016] Building InstCombineTables.inc...
[6950/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6951/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6952/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6953/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6954/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6955/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6956/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6957/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 107, in step
    yield
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 44, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 120, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/hip-third-party-libs-test/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@@@
@@@BUILD_STEP update llvm-test-suite@@@
@@@HALT_ON_FAILURE@@@
Running: git reset --hard origin/main
HEAD is now at 2cedd3edd [Fortran/gfortran] Disable buounds-check test for EOSHIFT. (#278)
Running: git pull
Already up to date.
@@@BUILD_STEP configure test suite@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
[6937/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6938/8016] Linking CXX shared library lib/libclangFrontendTool.so.22.0git
[6939/8016] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[6940/8016] Creating library symlink lib/libclangFrontendTool.so
[6941/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/logical.test.dir/logical.cpp.o
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6945/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6946/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/hip-third-party-libs-test/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/hip-third-party-libs-test/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/bbot/hip-third-party-libs-test/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6947/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6948/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6949/8016] Building InstCombineTables.inc...
[6950/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6951/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6952/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6953/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6954/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6955/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6956/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6957/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 107, in step
    yield
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 44, in main
    run_command(["ninja"])
  File "/home/botworker/bbot/hip-third-party-libs-test/build/../llvm-zorg/zorg/buildbot/builders/annotated/hip-tpl.py", line 120, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/hip-third-party-libs-test/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.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 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,llvm at step 4 "annotate".

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

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)
...
[6940/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6941/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/logical.test.dir/logical.cpp.o
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6945/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6946/8016] Linking CXX shared library lib/libCUFAttrs.so.22.0git
[6947/8016] Creating library symlink lib/libCUFAttrs.so
[6948/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6949/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  -lpthread  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6950/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6951/8016] Building InstCombineTables.inc...
[6952/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6953/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6954/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6955/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6956/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6957/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6958/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6959/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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 62, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, 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)
...
[6940/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6941/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/logical.test.dir/logical.cpp.o
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6945/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6946/8016] Linking CXX shared library lib/libCUFAttrs.so.22.0git
[6947/8016] Creating library symlink lib/libCUFAttrs.so
[6948/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6949/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  -lpthread  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6950/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6951/8016] Building InstCombineTables.inc...
[6952/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6953/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6954/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6955/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6956/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6957/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6958/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6959/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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 62, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, 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=91.185402

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 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,llvm at step 4 "annotate".

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

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)
...
[6937/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6938/8016] Linking CXX shared library lib/libclangFrontendTool.so.22.0git
[6939/8016] Creating library symlink lib/libclangFrontendTool.so
[6940/8016] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[6941/8016] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6945/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6946/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6947/8016] Linking CXX shared library lib/libCUFAttrs.so.22.0git
[6948/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6949/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6950/8016] Building InstCombineTables.inc...
[6951/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6952/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6953/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6954/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6955/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6956/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6957/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6958/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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 62, 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 53, 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 75, 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)
...
[6937/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6938/8016] Linking CXX shared library lib/libclangFrontendTool.so.22.0git
[6939/8016] Creating library symlink lib/libclangFrontendTool.so
[6940/8016] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[6941/8016] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6945/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6946/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6947/8016] Linking CXX shared library lib/libCUFAttrs.so.22.0git
[6948/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6949/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6950/8016] Building InstCombineTables.inc...
[6951/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6952/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6953/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6954/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6955/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6956/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6957/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6958/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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 62, 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 53, 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 75, 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=126.017559

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 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,llvm at step 4 "annotate".

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

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)
...
[6937/8016] Creating library symlink lib/libclangFrontendTool.so
[6938/8016] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[6939/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6940/8016] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[6941/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/logical.test.dir/logical.cpp.o
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6945/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6946/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6947/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6948/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6949/8016] Building InstCombineTables.inc...
[6950/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6951/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6952/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6953/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6954/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6955/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6956/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6957/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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 62, 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 53, 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 75, 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)
...
[6937/8016] Creating library symlink lib/libclangFrontendTool.so
[6938/8016] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[6939/8016] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[6940/8016] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[6941/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/logical.test.dir/logical.cpp.o
[6942/8016] Linking CXX shared library lib/libclangInterpreter.so.22.0git
[6943/8016] Creating library symlink lib/libclangInterpreter.so
[6944/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/real.test.dir/real.cpp.o
[6945/8016] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[6946/8016] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[6947/8016] Building CXX object tools/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeFiles/CUFAttrs.dir/CUFAttr.cpp.o
[6948/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/integer.test.dir/integer.cpp.o
[6949/8016] Building InstCombineTables.inc...
[6950/8016] Building CXX object tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o
[6951/8016] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.gch
[6952/8016] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.gch
[6953/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/intrinsics.test.dir/intrinsics.cpp.o
[6954/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
[6955/8016] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
[6956/8016] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.gch
[6957/8016] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
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 62, 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 53, 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 75, 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=93.811292

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building clang,llvm at step 10 "test-check-clang".

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

Here is the relevant piece of the build log for the reference
Step 10 (test-check-clang) failure: Test just built components: check-clang completed (failure)
******************** TEST 'Clang :: SemaCXX/cxx17-compat.cpp' FAILED ********************
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe -cc1 -internal-isystem C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\22\include -nostdsysteminc -fsyntax-only -std=c++17 -pedantic -verify C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe' -cc1 -internal-isystem 'C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\22\include' -nostdsysteminc -fsyntax-only -std=c++17 -pedantic -verify 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp'
# RUN: at line 2
c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe -cc1 -internal-isystem C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\22\include -nostdsysteminc -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp -Wno-defaulted-function-deleted
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe' -cc1 -internal-isystem 'C:\buildbot\as-builder-2\x-aarch64\build\lib\clang\22\include' -nostdsysteminc -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp' -Wno-defaulted-function-deleted
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: c:\\buildbot\\as-builder-2\\x-aarch64\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\buildbot\\as-builder-2\\x-aarch64\\build\\lib\\clang\\22\\include -nostdsysteminc -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify C:\\buildbot\\as-builder-2\\x-aarch64\\llvm-project\\clang\\test\\SemaCXX\\cxx17-compat.cpp -Wno-defaulted-function-deleted
# | 1.	C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:15:24: current parser token ';'
# | 2.	C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:13:1: parsing struct/union/class body 'B'
# | 3.	C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:14:12: parsing function body 'B::b'
# | 4.	C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:14:12: in compound statement ('{}')
# | 5.	C:\buildbot\as-builder-2\x-aarch64\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:15:12: lambda expression parsing
# | Exception Code: 0xC0000005
# |  #0 0x00007ff6955a2b90 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2f42b90)
# |  #1 0x00007ff6959bfce7 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x335fce7)
# |  #2 0x00007ff6959bbdbb (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x335bdbb)
# |  #3 0x00007ff69529b47e (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c3b47e)
# |  #4 0x00007ff695299b6b (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c39b6b)
# |  #5 0x00007ff6952884cf (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c284cf)
# |  #6 0x00007ff695288b45 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c28b45)
# |  #7 0x00007ff69528bae9 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c2bae9)
# |  #8 0x00007ff69528676e (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c2676e)
# |  #9 0x00007ff695288b45 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c28b45)
# | #10 0x00007ff69528434b (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c2434b)
# | #11 0x00007ff695289c2a (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c29c2a)
# | #12 0x00007ff6952f5bc5 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c95bc5)
# | #13 0x00007ff6952fc215 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c9c215)
# | #14 0x00007ff6952fad65 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c9ad65)
# | #15 0x00007ff6952f4a8a (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c94a8a)
# | #16 0x00007ff6952f78e4 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c978e4)
# | #17 0x00007ff69523d65d (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bdd65d)
# | #18 0x00007ff69523d8a9 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bdd8a9)
# | #19 0x00007ff695273e30 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c13e30)
# | #20 0x00007ff6952762eb (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2c162eb)
# | #21 0x00007ff69524c43d (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bec43d)
# | #22 0x00007ff69522c7fc (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bcc7fc)
# | #23 0x00007ff69522d0b7 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bcd0b7)
# | #24 0x00007ff69522dda5 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bcdda5)
# | #25 0x00007ff6952321d0 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bd21d0)
# | #26 0x00007ff695228676 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x2bc8676)
# | #27 0x00007ff6945c05d8 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x1f605d8)
# | #28 0x00007ff6945c03d6 (c:\buildbot\as-builder-2\x-aarch64\build\bin\clang.exe+0x1f603d6)
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
30.453 [645/29/7152] Creating library symlink lib/libMLIRArithToSPIRV.so
30.458 [643/30/7153] Linking CXX executable bin/llvm-jitlink-executor
30.466 [641/31/7154] Creating library symlink lib/libLLVMInstrumentation.so
30.468 [640/31/7155] Creating library symlink lib/libMLIRVectorToSPIRV.so
30.470 [639/31/7156] Linking CXX executable bin/llvm-rtdyld
30.472 [639/30/7157] Linking CXX shared library lib/libLLVMInstCombine.so.22.0git
30.489 [638/30/7158] Linking CXX shared library lib/libMLIRAsyncTransforms.so.22.0git
30.491 [637/30/7159] Creating library symlink lib/libLLVMInstCombine.so
30.504 [636/30/7160] Creating library symlink lib/libMLIRAsyncTransforms.so
30.508 [635/30/7161] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/local/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
30.528 [635/29/7162] Building CXX object examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeFiles/LLJITWithRemoteDebugging.dir/RemoteJITUtils.cpp.o
30.532 [635/28/7163] Linking CXX shared library lib/libMLIRSCFTransformOps.so.22.0git
30.536 [635/27/7164] Building CXX object examples/OrcV2Examples/LLJITWithRemoteDebugging/CMakeFiles/LLJITWithRemoteDebugging.dir/LLJITWithRemoteDebugging.cpp.o
30.547 [635/26/7165] Linking CXX shared library lib/libMLIRArmSMEToLLVM.so.22.0git
30.558 [635/25/7166] Linking CXX shared library lib/libMLIRVectorToXeGPU.so.22.0git
30.581 [635/24/7167] Linking CXX shared library lib/libMLIRXeGPUTransforms.so.22.0git
30.601 [635/23/7168] Linking CXX shared library lib/libLLVMVectorize.so.22.0git
30.712 [635/22/7169] Linking CXX shared library lib/libLLVMFrontendDriver.so.22.0git
30.928 [635/21/7170] Linking CXX shared library lib/libMLIRCAPIAsync.so.22.0git
30.934 [635/20/7171] Linking CXX shared library lib/libMLIRTestVectorToSPIRV.so.22.0git
30.934 [635/19/7172] Linking CXX shared library lib/libMLIRCAPILinalg.so.22.0git
30.935 [635/18/7173] Linking CXX shared library lib/libMLIRTensorToLinalg.so.22.0git
30.936 [635/17/7174] Linking CXX shared library lib/libMLIRTensorToSPIRV.so.22.0git
30.938 [635/16/7175] Linking CXX shared library lib/libMLIRLinalgToStandard.so.22.0git
30.938 [635/15/7176] Linking CXX shared library lib/libMLIRShardToMPI.so.22.0git
30.938 [635/14/7177] Linking CXX shared library lib/libMLIRVectorTestPasses.so.22.0git
30.953 [635/13/7178] Linking CXX shared library lib/libMLIRTilingInterfaceTestPasses.so.22.0git
30.955 [635/12/7179] Linking CXX shared library lib/libMLIRSCFToSPIRV.so.22.0git
31.025 [635/11/7180] Linking CXX shared library lib/libMLIRSparseTensorTransforms.so.22.0git
31.049 [635/10/7181] Linking CXX shared library lib/libLLVMScalarOpts.so.22.0git
31.278 [635/9/7182] Linking CXX shared library lib/libMLIRLinalgTransformOps.so.22.0git
32.608 [635/8/7183] Linking CXX shared library lib/libMLIRTestDialect.so.22.0git
44.219 [635/7/7184] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
53.554 [635/6/7185] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
56.650 [635/5/7186] Building CXX object tools/flang/lib/Parser/CMakeFiles/FortranParser.dir/cmake_pch.hxx.pch
83.295 [635/4/7187] Building CXX object tools/flang/lib/Evaluate/CMakeFiles/FortranEvaluate.dir/cmake_pch.hxx.pch
134.862 [635/3/7188] Building CXX object tools/flang/lib/Semantics/CMakeFiles/FortranSemantics.dir/cmake_pch.hxx.pch
192.518 [635/2/7189] Building CXX object tools/flang/lib/Frontend/CMakeFiles/flangFrontend.dir/cmake_pch.hxx.pch
208.982 [635/1/7190] Building CXX object tools/flang/lib/Lower/CMakeFiles/FortranLower.dir/cmake_pch.hxx.pch
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared-plugin running on polly-x86_64-gce2 while building clang,llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[4427/4483] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_schedule_node.c.o
[4428/4483] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_schedule_read.c.o
[4429/4483] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_scheduler.c.o
[4430/4483] Building C object tools/polly/lib/External/CMakeFiles/PollyISL.dir/isl/isl_schedule_tree.c.o
[4431/4483] Building CXX object examples/IRTransforms/CMakeFiles/ExampleIRTransforms.dir/SimplifyCFG.cpp.o
[4432/4483] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[4433/4483] Linking CXX shared module lib/ExampleIRTransforms.so
[4434/4483] Building CXX object examples/Bye/CMakeFiles/Bye.dir/Bye.cpp.o
[4435/4483] Linking C shared library lib/libPollyISL.so
[4436/4483] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -fuse-ld=lld -Wl,--color-diagnostics     -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib && :
ld.lld: error: undefined symbol: llvm::LLVMContext::LLVMContext()
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)

ld.lld: error: undefined symbol: llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&)
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)

ld.lld: error: undefined symbol: llvm::Module::~Module()
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)

ld.lld: error: undefined symbol: llvm::LLVMContext::~LLVMContext()
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)
collect2: error: ld returned 1 exit status
[4437/4483] Linking CXX shared module lib/Bye.so
[4438/4483] Linking C executable bin/polly-isl-test
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder polly-x86_64-linux-shared running on polly-x86_64-gce2 while building clang,llvm at step 5 "build".

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

Here is the relevant piece of the build log for the reference
Step 5 (build) failure: 'ninja' (failure)
...
[4088/4483] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/OffloadDump.cpp.o
[4089/4483] Building CXX object tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o
[4090/4483] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/XCOFFDump.cpp.o
[4091/4483] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/llvm-objdump-driver.cpp.o
[4092/4483] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/MachODump.cpp.o
[4093/4483] Building CXX object tools/llvm-opt-fuzzer/CMakeFiles/llvm-opt-fuzzer.dir/DummyOptFuzzer.cpp.o
[4094/4483] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/WasmDump.cpp.o
[4095/4483] Building CXX object tools/llvm-opt-fuzzer/CMakeFiles/llvm-opt-fuzzer.dir/llvm-opt-fuzzer.cpp.o
[4096/4483] Building CXX object tools/llvm-opt-report/CMakeFiles/llvm-opt-report.dir/OptReport.cpp.o
[4097/4483] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -fuse-ld=lld -Wl,--color-diagnostics     -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/worker/buildbot-workers/polly-x86_64-gce2/rundir/llvm.obj/lib && :
ld.lld: error: undefined symbol: llvm::LLVMContext::LLVMContext()
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)

ld.lld: error: undefined symbol: llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&)
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)

ld.lld: error: undefined symbol: llvm::Module::~Module()
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)

ld.lld: error: undefined symbol: llvm::LLVMContext::~LLVMContext()
>>> referenced by llvm-offload-wrapper.cpp
>>>               tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:(main)
collect2: error: ld returned 1 exit status
[4098/4483] Linking CXX executable bin/llvm-objdump
[4099/4483] Linking CXX executable bin/llvm-opt-fuzzer
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
      |                                                   ^
35.274 [749/55/2000] Building CXX object lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingReader.cpp.o
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp: In function ‘llvm::Expected<std::pair<llvm::StringRef, long unsigned int> > lookupAllocatableSection(llvm::object::ObjectFile&, llvm::InstrProfSectKind)’:
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp:1104:13: warning: possibly dangling reference to a temporary [-Wdangling-reference]
 1104 |       auto &Segment = WOF->dataSegments()[DebugName.Index];
      |             ^~~~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp:1104:58: note: the temporary was destroyed at the end of the full expression ‘WOF->llvm::object::WasmObjectFile::dataSegments().llvm::ArrayRef<llvm::object::WasmSegment>::operator[](((size_t)((uint32_t)DebugName.llvm::wasm::WasmDebugName::Index)))’
 1104 |       auto &Segment = WOF->dataSegments()[DebugName.Index];
      |                                                          ^
48.483 [613/7/2184] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -fuse-ld=gold     -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/llvm-nvptx64-nvidia-ubuntu/build/lib && :
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x2ba): error: undefined reference to 'llvm::LLVMContext::LLVMContext()'
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x2d9): error: undefined reference to 'llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&)'
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x459): error: undefined reference to 'llvm::Module::~Module()'
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x463): error: undefined reference to 'llvm::LLVMContext::~LLVMContext()'
collect2: error: ld returned 1 exit status
48.601 [613/4/2187] Linking CXX shared library lib/libLLVMVectorize.so.22.0git
52.870 [613/2/2189] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
54.304 [613/1/2190] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
      |                                                   ^
36.393 [749/91/1964] Building CXX object lib/ProfileData/Coverage/CMakeFiles/LLVMCoverage.dir/CoverageMappingReader.cpp.o
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp: In function ‘llvm::Expected<std::pair<llvm::StringRef, long unsigned int> > lookupAllocatableSection(llvm::object::ObjectFile&, llvm::InstrProfSectKind)’:
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp:1104:13: warning: possibly dangling reference to a temporary [-Wdangling-reference]
 1104 |       auto &Segment = WOF->dataSegments()[DebugName.Index];
      |             ^~~~~~~
/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp:1104:58: note: the temporary was destroyed at the end of the full expression ‘WOF->llvm::object::WasmObjectFile::dataSegments().llvm::ArrayRef<llvm::object::WasmSegment>::operator[](((size_t)((uint32_t)DebugName.llvm::wasm::WasmDebugName::Index)))’
 1104 |       auto &Segment = WOF->dataSegments()[DebugName.Index];
      |                                                          ^
47.993 [612/7/2185] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/bin/c++ -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 -O3 -DNDEBUG -fuse-ld=gold     -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/llvm-nvptx-nvidia-ubuntu/build/lib && :
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x2ba): error: undefined reference to 'llvm::LLVMContext::LLVMContext()'
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x2d9): error: undefined reference to 'llvm::Module::Module(llvm::StringRef, llvm::LLVMContext&)'
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x459): error: undefined reference to 'llvm::Module::~Module()'
tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o:llvm-offload-wrapper.cpp:function main:(.text.startup.main+0x463): error: undefined reference to 'llvm::LLVMContext::~LLVMContext()'
collect2: error: ld returned 1 exit status
48.111 [612/4/2188] Linking CXX shared library lib/libLLVMVectorize.so.22.0git
55.592 [612/2/2190] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
56.357 [612/1/2191] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 19, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-armv7l running on as-builder-1 while building clang,llvm at step 10 "test-check-clang".

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

Here is the relevant piece of the build log for the reference
Step 10 (test-check-clang) failure: Test just built components: check-clang completed (failure)
******************** TEST 'Clang :: SemaCXX/cxx17-compat.cpp' FAILED ********************
Exit Code: 3221225477

Command Output (stdout):
--
# RUN: at line 1
c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe -cc1 -internal-isystem C:\buildbot\as-builder-1\x-armv7l\build\lib\clang\22\include -nostdsysteminc -fsyntax-only -std=c++17 -pedantic -verify C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe' -cc1 -internal-isystem 'C:\buildbot\as-builder-1\x-armv7l\build\lib\clang\22\include' -nostdsysteminc -fsyntax-only -std=c++17 -pedantic -verify 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp'
# RUN: at line 2
c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe -cc1 -internal-isystem C:\buildbot\as-builder-1\x-armv7l\build\lib\clang\22\include -nostdsysteminc -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp -Wno-defaulted-function-deleted
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe' -cc1 -internal-isystem 'C:\buildbot\as-builder-1\x-armv7l\build\lib\clang\22\include' -nostdsysteminc -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp' -Wno-defaulted-function-deleted
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0.	Program arguments: c:\\buildbot\\as-builder-1\\x-armv7l\\build\\bin\\clang.exe -cc1 -internal-isystem C:\\buildbot\\as-builder-1\\x-armv7l\\build\\lib\\clang\\22\\include -nostdsysteminc -fsyntax-only -std=c++20 -Wc++17-compat-pedantic -verify C:\\buildbot\\as-builder-1\\x-armv7l\\llvm-project\\clang\\test\\SemaCXX\\cxx17-compat.cpp -Wno-defaulted-function-deleted
# | 1.	C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:15:24: current parser token ';'
# | 2.	C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:13:1: parsing struct/union/class body 'B'
# | 3.	C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:14:12: parsing function body 'B::b'
# | 4.	C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:14:12: in compound statement ('{}')
# | 5.	C:\buildbot\as-builder-1\x-armv7l\llvm-project\clang\test\SemaCXX\cxx17-compat.cpp:15:12: lambda expression parsing
# | Exception Code: 0xC0000005
# |  #0 0x00007ff6abde9e30 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2d89e30)
# |  #1 0x00007ff6ac207207 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x31a7207)
# |  #2 0x00007ff6ac2032db (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x31a32db)
# |  #3 0x00007ff6abae2e3e (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a82e3e)
# |  #4 0x00007ff6abae152b (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a8152b)
# |  #5 0x00007ff6abacfe8f (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a6fe8f)
# |  #6 0x00007ff6abad0505 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a70505)
# |  #7 0x00007ff6abad34a9 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a734a9)
# |  #8 0x00007ff6abace12e (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a6e12e)
# |  #9 0x00007ff6abad0505 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a70505)
# | #10 0x00007ff6abacbd0b (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a6bd0b)
# | #11 0x00007ff6abad15ea (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a715ea)
# | #12 0x00007ff6abb3d5b5 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2add5b5)
# | #13 0x00007ff6abb43c05 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2ae3c05)
# | #14 0x00007ff6abb42755 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2ae2755)
# | #15 0x00007ff6abb3c47a (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2adc47a)
# | #16 0x00007ff6abb3f2d4 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2adf2d4)
# | #17 0x00007ff6aba8501d (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a2501d)
# | #18 0x00007ff6aba85269 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a25269)
# | #19 0x00007ff6ababb7f0 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a5b7f0)
# | #20 0x00007ff6ababdcab (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a5dcab)
# | #21 0x00007ff6aba93dfd (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a33dfd)
# | #22 0x00007ff6aba741bc (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a141bc)
# | #23 0x00007ff6aba74a77 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a14a77)
# | #24 0x00007ff6aba75765 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a15765)
# | #25 0x00007ff6aba79b90 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a19b90)
# | #26 0x00007ff6aba70036 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x2a10036)
# | #27 0x00007ff6aae5fb38 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x1dffb38)
# | #28 0x00007ff6aae5f936 (c:\buildbot\as-builder-1\x-armv7l\build\bin\clang.exe+0x1dff936)
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 20, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-latest-gcc running on linaro-flang-aarch64-latest-gcc while building clang,llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
4049.524 [284/18/7330] Generating ../../../../include/flang/iso_c_binding.mod
4049.525 [283/18/7331] Building BitcodeStripOpts.inc...
4049.527 [283/17/7332] Building OtoolOpts.inc...
4049.546 [283/16/7333] Generating ../../../../include/flang/iso_fortran_env_impl.mod
4049.562 [283/15/7334] Building CXX object tools/llvm-opt-report/CMakeFiles/llvm-opt-report.dir/OptReport.cpp.o
4049.567 [283/14/7335] Building CXX object tools/llvm-pdbutil/CMakeFiles/llvm-pdbutil.dir/DumpOutputStyle.cpp.o
4049.570 [283/13/7336] Building CXX object tools/llvm-pdbutil/CMakeFiles/llvm-pdbutil.dir/BytesOutputStyle.cpp.o
4049.583 [283/12/7337] Building CXX object tools/llvm-pdbutil/CMakeFiles/llvm-pdbutil.dir/ExplainOutputStyle.cpp.o
4049.587 [283/11/7338] Building CXX object tools/llvm-pdbutil/CMakeFiles/llvm-pdbutil.dir/llvm-pdbutil.cpp.o
4049.636 [282/11/7339] Linking CXX executable bin/llvm-offload-wrapper
FAILED: bin/llvm-offload-wrapper 
: && /usr/local/bin/c++ -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 -O3 -DNDEBUG -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o -o bin/llvm-offload-wrapper  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libLLVMBitWriter.so.22.0git  lib/libLLVMOption.so.22.0git  lib/libLLVMFrontendOffloading.so.22.0git  lib/libLLVMObject.so.22.0git  lib/libLLVMTargetParser.so.22.0git  lib/libLLVMSupport.so.22.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/llvm-offload-wrapper/CMakeFiles/llvm-offload-wrapper.dir/llvm-offload-wrapper.cpp.o: undefined reference to symbol '_ZN4llvm11LLVMContextC1Ev'
/usr/bin/ld: /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib/libLLVMCore.so.22.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
4049.742 [282/10/7340] Generating ../../../../include/flang/__cuda_device.mod
4049.742 [282/9/7341] Linking CXX executable bin/llvm-nm
4049.872 [282/8/7342] Linking CXX executable bin/llvm-opt-fuzzer
4049.939 [282/7/7343] Generating ../../../../include/flang/ieee_exceptions.mod
4049.964 [282/6/7344] Generating ../../../../include/flang/ieee_arithmetic.mod
4049.990 [282/5/7345] Generating ../../../../include/flang/iso_fortran_env.mod
4059.421 [282/4/7346] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/folding.test.dir/folding.cpp.o
4063.552 [282/3/7347] Building CXX object tools/flang/unittests/Evaluate/CMakeFiles/expression.test.dir/expression.cpp.o
4084.900 [282/2/7348] Building CXX object tools/flang/tools/bbc/CMakeFiles/bbc.dir/bbc.cpp.o
4101.002 [282/1/7349] Building CXX object tools/flang/tools/f18-parse-demo/CMakeFiles/f18-parse-demo.dir/f18-parse-demo.cpp.o
ninja: build stopped: subcommand failed.

rupprecht added a commit to rupprecht/llvm-project that referenced this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants