Skip to content

[flang][cuda] Use a reference for asyncObject #138010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

clementval
Copy link
Contributor

Switch from int64_t to int64_t* to fit with the rest of the implementation.

@clementval clementval requested a review from wangzpgi April 30, 2025 18:22
@llvmbot llvmbot added flang Flang issues not falling into any other category flang:fir-hlfir openacc labels Apr 30, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 30, 2025

@llvm/pr-subscribers-openacc

@llvm/pr-subscribers-flang-fir-hlfir

Author: Valentin Clement (バレンタイン クレメン) (clementval)

Changes

Switch from int64_t to int64_t* to fit with the rest of the implementation.


Patch is 83.79 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/138010.diff

50 Files Affected:

  • (modified) flang-rt/include/flang-rt/runtime/allocator-registry.h (+2-2)
  • (modified) flang-rt/include/flang-rt/runtime/descriptor.h (+3-3)
  • (modified) flang-rt/include/flang-rt/runtime/reduction-templates.h (+1-1)
  • (modified) flang-rt/lib/cuda/allocator.cpp (+8-8)
  • (modified) flang-rt/lib/cuda/descriptor.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/allocatable.cpp (+6-6)
  • (modified) flang-rt/lib/runtime/array-constructor.cpp (+2-2)
  • (modified) flang-rt/lib/runtime/assign.cpp (+2-2)
  • (modified) flang-rt/lib/runtime/character.cpp (+11-9)
  • (modified) flang-rt/lib/runtime/copy.cpp (+2-2)
  • (modified) flang-rt/lib/runtime/derived.cpp (+3-3)
  • (modified) flang-rt/lib/runtime/descriptor.cpp (+2-2)
  • (modified) flang-rt/lib/runtime/extrema.cpp (+2-2)
  • (modified) flang-rt/lib/runtime/findloc.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/matmul-transpose.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/matmul.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/misc-intrinsic.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/pointer.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/temporary-stack.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/tools.cpp (+1-1)
  • (modified) flang-rt/lib/runtime/transformational.cpp (+2-2)
  • (modified) flang-rt/unittests/Evaluate/reshape.cpp (+1-1)
  • (modified) flang-rt/unittests/Runtime/Allocatable.cpp (+2-2)
  • (modified) flang-rt/unittests/Runtime/CUDA/Allocatable.cpp (+2-1)
  • (modified) flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp (+2-2)
  • (modified) flang-rt/unittests/Runtime/CUDA/Memory.cpp (+2-2)
  • (modified) flang-rt/unittests/Runtime/CharacterTest.cpp (+1-1)
  • (modified) flang-rt/unittests/Runtime/CommandTest.cpp (+4-4)
  • (modified) flang-rt/unittests/Runtime/TemporaryStack.cpp (+2-2)
  • (modified) flang-rt/unittests/Runtime/tools.h (+1-1)
  • (modified) flang/include/flang/Optimizer/Dialect/CUF/CUFOps.td (+5-6)
  • (modified) flang/include/flang/Runtime/CUDA/allocatable.h (+4-4)
  • (modified) flang/include/flang/Runtime/CUDA/pointer.h (+4-4)
  • (modified) flang/include/flang/Runtime/allocatable.h (+4-3)
  • (modified) flang/lib/Lower/Allocatable.cpp (+1-1)
  • (modified) flang/lib/Optimizer/Builder/Runtime/Allocatable.cpp (+3-4)
  • (modified) flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp (+11-11)
  • (modified) flang/lib/Optimizer/Transforms/CUFOpConversion.cpp (+4-6)
  • (modified) flang/test/Fir/CUDA/cuda-allocate.fir (+8-10)
  • (modified) flang/test/Fir/cuf-invalid.fir (+2-3)
  • (modified) flang/test/Fir/cuf.mlir (+3-4)
  • (modified) flang/test/HLFIR/elemental-codegen.fir (+3-3)
  • (modified) flang/test/Lower/CUDA/cuda-allocatable.cuf (+4-5)
  • (modified) flang/test/Lower/OpenACC/acc-declare-unwrap-defaultbounds.f90 (+2-2)
  • (modified) flang/test/Lower/OpenACC/acc-declare.f90 (+2-2)
  • (modified) flang/test/Lower/allocatable-polymorphic.f90 (+13-13)
  • (modified) flang/test/Lower/allocatable-runtime.f90 (+2-2)
  • (modified) flang/test/Lower/allocate-mold.f90 (+2-2)
  • (modified) flang/test/Lower/polymorphic.f90 (+1-1)
  • (modified) flang/test/Transforms/lower-repack-arrays.fir (+4-4)
diff --git a/flang-rt/include/flang-rt/runtime/allocator-registry.h b/flang-rt/include/flang-rt/runtime/allocator-registry.h
index 33e8e2c7d7850..f0ba77a360736 100644
--- a/flang-rt/include/flang-rt/runtime/allocator-registry.h
+++ b/flang-rt/include/flang-rt/runtime/allocator-registry.h
@@ -19,7 +19,7 @@
 
 namespace Fortran::runtime {
 
-using AllocFct = void *(*)(std::size_t, std::int64_t);
+using AllocFct = void *(*)(std::size_t, std::int64_t *);
 using FreeFct = void (*)(void *);
 
 typedef struct Allocator_t {
@@ -28,7 +28,7 @@ typedef struct Allocator_t {
 } Allocator_t;
 
 static RT_API_ATTRS void *MallocWrapper(
-    std::size_t size, [[maybe_unused]] std::int64_t) {
+    std::size_t size, [[maybe_unused]] std::int64_t *) {
   return std::malloc(size);
 }
 #ifdef RT_DEVICE_COMPILATION
diff --git a/flang-rt/include/flang-rt/runtime/descriptor.h b/flang-rt/include/flang-rt/runtime/descriptor.h
index 9907e7866e7bf..19cfeeb1e9dd1 100644
--- a/flang-rt/include/flang-rt/runtime/descriptor.h
+++ b/flang-rt/include/flang-rt/runtime/descriptor.h
@@ -29,8 +29,8 @@
 #include <cstdio>
 #include <cstring>
 
-/// Value used for asyncId when no specific stream is specified.
-static constexpr std::int64_t kNoAsyncId = -1;
+/// Value used for asyncObject when no specific stream is specified.
+static constexpr void *kNoAsyncObject = nullptr;
 
 namespace Fortran::runtime {
 
@@ -372,7 +372,7 @@ class Descriptor {
   // before calling.  It (re)computes the byte strides after
   // allocation.  Does not allocate automatic components or
   // perform default component initialization.
-  RT_API_ATTRS int Allocate(std::int64_t asyncId);
+  RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
   RT_API_ATTRS void SetByteStrides();
 
   // Deallocates storage; does not call FINAL subroutines or
diff --git a/flang-rt/include/flang-rt/runtime/reduction-templates.h b/flang-rt/include/flang-rt/runtime/reduction-templates.h
index 77f77a592a476..18412708b02c5 100644
--- a/flang-rt/include/flang-rt/runtime/reduction-templates.h
+++ b/flang-rt/include/flang-rt/runtime/reduction-templates.h
@@ -347,7 +347,7 @@ inline RT_API_ATTRS void DoMaxMinNorm2(Descriptor &result, const Descriptor &x,
     // as the element size of the source.
     result.Establish(x.type(), x.ElementBytes(), nullptr, 0, nullptr,
         CFI_attribute_allocatable);
-    if (int stat{result.Allocate(kNoAsyncId)}) {
+    if (int stat{result.Allocate(kNoAsyncObject)}) {
       terminator.Crash(
           "%s: could not allocate memory for result; STAT=%d", intrinsic, stat);
     }
diff --git a/flang-rt/lib/cuda/allocator.cpp b/flang-rt/lib/cuda/allocator.cpp
index 51119ab251168..3a92c5b21c9af 100644
--- a/flang-rt/lib/cuda/allocator.cpp
+++ b/flang-rt/lib/cuda/allocator.cpp
@@ -136,7 +136,7 @@ void RTDEF(CUFRegisterAllocator)() {
 }
 
 void *CUFAllocPinned(
-    std::size_t sizeInBytes, [[maybe_unused]] std::int64_t asyncId) {
+    std::size_t sizeInBytes, [[maybe_unused]] std::int64_t *asyncObject) {
   void *p;
   CUDA_REPORT_IF_ERROR(cudaMallocHost((void **)&p, sizeInBytes));
   return p;
@@ -144,18 +144,18 @@ void *CUFAllocPinned(
 
 void CUFFreePinned(void *p) { CUDA_REPORT_IF_ERROR(cudaFreeHost(p)); }
 
-void *CUFAllocDevice(std::size_t sizeInBytes, std::int64_t asyncId) {
+void *CUFAllocDevice(std::size_t sizeInBytes, std::int64_t *asyncObject) {
   void *p;
   if (Fortran::runtime::executionEnvironment.cudaDeviceIsManaged) {
     CUDA_REPORT_IF_ERROR(
         cudaMallocManaged((void **)&p, sizeInBytes, cudaMemAttachGlobal));
   } else {
-    if (asyncId == kNoAsyncId) {
+    if (asyncObject == kNoAsyncObject) {
       CUDA_REPORT_IF_ERROR(cudaMalloc(&p, sizeInBytes));
     } else {
       CUDA_REPORT_IF_ERROR(
-          cudaMallocAsync(&p, sizeInBytes, (cudaStream_t)asyncId));
-      insertAllocation(p, sizeInBytes, asyncId);
+          cudaMallocAsync(&p, sizeInBytes, (cudaStream_t)*asyncObject));
+      insertAllocation(p, sizeInBytes, (cudaStream_t)*asyncObject);
     }
   }
   return p;
@@ -174,7 +174,7 @@ void CUFFreeDevice(void *p) {
 }
 
 void *CUFAllocManaged(
-    std::size_t sizeInBytes, [[maybe_unused]] std::int64_t asyncId) {
+    std::size_t sizeInBytes, [[maybe_unused]] std::int64_t *asyncObject) {
   void *p;
   CUDA_REPORT_IF_ERROR(
       cudaMallocManaged((void **)&p, sizeInBytes, cudaMemAttachGlobal));
@@ -184,9 +184,9 @@ void *CUFAllocManaged(
 void CUFFreeManaged(void *p) { CUDA_REPORT_IF_ERROR(cudaFree(p)); }
 
 void *CUFAllocUnified(
-    std::size_t sizeInBytes, [[maybe_unused]] std::int64_t asyncId) {
+    std::size_t sizeInBytes, [[maybe_unused]] std::int64_t *asyncObject) {
   // Call alloc managed for the time being.
-  return CUFAllocManaged(sizeInBytes, asyncId);
+  return CUFAllocManaged(sizeInBytes, asyncObject);
 }
 
 void CUFFreeUnified(void *p) {
diff --git a/flang-rt/lib/cuda/descriptor.cpp b/flang-rt/lib/cuda/descriptor.cpp
index 175e8c0ef8438..7b768f91af29d 100644
--- a/flang-rt/lib/cuda/descriptor.cpp
+++ b/flang-rt/lib/cuda/descriptor.cpp
@@ -21,7 +21,7 @@ RT_EXT_API_GROUP_BEGIN
 Descriptor *RTDEF(CUFAllocDescriptor)(
     std::size_t sizeInBytes, const char *sourceFile, int sourceLine) {
   return reinterpret_cast<Descriptor *>(
-      CUFAllocManaged(sizeInBytes, /*asyncId*/ -1));
+      CUFAllocManaged(sizeInBytes, /*asyncObject=*/nullptr));
 }
 
 void RTDEF(CUFFreeDescriptor)(
diff --git a/flang-rt/lib/runtime/allocatable.cpp b/flang-rt/lib/runtime/allocatable.cpp
index 6acce34eb9a9e..ef18da6ea0786 100644
--- a/flang-rt/lib/runtime/allocatable.cpp
+++ b/flang-rt/lib/runtime/allocatable.cpp
@@ -133,17 +133,17 @@ void RTDEF(AllocatableApplyMold)(
   }
 }
 
-int RTDEF(AllocatableAllocate)(Descriptor &descriptor, std::int64_t asyncId,
-    bool hasStat, const Descriptor *errMsg, const char *sourceFile,
-    int sourceLine) {
+int RTDEF(AllocatableAllocate)(Descriptor &descriptor,
+    std::int64_t *asyncObject, bool hasStat, const Descriptor *errMsg,
+    const char *sourceFile, int sourceLine) {
   Terminator terminator{sourceFile, sourceLine};
   if (!descriptor.IsAllocatable()) {
     return ReturnError(terminator, StatInvalidDescriptor, errMsg, hasStat);
   } else if (descriptor.IsAllocated()) {
     return ReturnError(terminator, StatBaseNotNull, errMsg, hasStat);
   } else {
-    int stat{
-        ReturnError(terminator, descriptor.Allocate(asyncId), errMsg, hasStat)};
+    int stat{ReturnError(
+        terminator, descriptor.Allocate(asyncObject), errMsg, hasStat)};
     if (stat == StatOk) {
       if (const DescriptorAddendum * addendum{descriptor.Addendum()}) {
         if (const auto *derived{addendum->derivedType()}) {
@@ -162,7 +162,7 @@ int RTDEF(AllocatableAllocateSource)(Descriptor &alloc,
     const Descriptor &source, bool hasStat, const Descriptor *errMsg,
     const char *sourceFile, int sourceLine) {
   int stat{RTNAME(AllocatableAllocate)(
-      alloc, /*asyncId=*/-1, hasStat, errMsg, sourceFile, sourceLine)};
+      alloc, /*asyncObject=*/nullptr, hasStat, errMsg, sourceFile, sourceLine)};
   if (stat == StatOk) {
     Terminator terminator{sourceFile, sourceLine};
     DoFromSourceAssign(alloc, source, terminator);
diff --git a/flang-rt/lib/runtime/array-constructor.cpp b/flang-rt/lib/runtime/array-constructor.cpp
index 67b3b5e1e0f50..858fac7bf2b39 100644
--- a/flang-rt/lib/runtime/array-constructor.cpp
+++ b/flang-rt/lib/runtime/array-constructor.cpp
@@ -50,7 +50,7 @@ static RT_API_ATTRS void AllocateOrReallocateVectorIfNeeded(
           initialAllocationSize(fromElements, to.ElementBytes())};
       to.GetDimension(0).SetBounds(1, allocationSize);
       RTNAME(AllocatableAllocate)
-      (to, /*asyncId=*/-1, /*hasStat=*/false, /*errMsg=*/nullptr,
+      (to, /*asyncObject=*/nullptr, /*hasStat=*/false, /*errMsg=*/nullptr,
           vector.sourceFile, vector.sourceLine);
       to.GetDimension(0).SetBounds(1, fromElements);
       vector.actualAllocationSize = allocationSize;
@@ -59,7 +59,7 @@ static RT_API_ATTRS void AllocateOrReallocateVectorIfNeeded(
       // first value: there should be no reallocation.
       RUNTIME_CHECK(terminator, previousToElements >= fromElements);
       RTNAME(AllocatableAllocate)
-      (to, /*asyncId=*/-1, /*hasStat=*/false, /*errMsg=*/nullptr,
+      (to, /*asyncObject=*/nullptr, /*hasStat=*/false, /*errMsg=*/nullptr,
           vector.sourceFile, vector.sourceLine);
       vector.actualAllocationSize = previousToElements;
     }
diff --git a/flang-rt/lib/runtime/assign.cpp b/flang-rt/lib/runtime/assign.cpp
index 4a813cd489022..8a4fa36c91479 100644
--- a/flang-rt/lib/runtime/assign.cpp
+++ b/flang-rt/lib/runtime/assign.cpp
@@ -99,7 +99,7 @@ static RT_API_ATTRS int AllocateAssignmentLHS(
     toDim.SetByteStride(stride);
     stride *= toDim.Extent();
   }
-  int result{ReturnError(terminator, to.Allocate(kNoAsyncId))};
+  int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
   if (result == StatOk && derived && !derived->noInitializationNeeded()) {
     result = ReturnError(terminator, Initialize(to, *derived, terminator));
   }
@@ -277,7 +277,7 @@ RT_API_ATTRS void Assign(Descriptor &to, const Descriptor &from,
       // entity, otherwise, the Deallocate() below will not
       // free the descriptor memory.
       newFrom.raw().attribute = CFI_attribute_allocatable;
-      auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncId))};
+      auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
       if (stat == StatOk) {
         if (HasDynamicComponent(from)) {
           // If 'from' has allocatable/automatic component, we cannot
diff --git a/flang-rt/lib/runtime/character.cpp b/flang-rt/lib/runtime/character.cpp
index d1152ee1caefb..f140d202e118e 100644
--- a/flang-rt/lib/runtime/character.cpp
+++ b/flang-rt/lib/runtime/character.cpp
@@ -118,7 +118,7 @@ static RT_API_ATTRS void Compare(Descriptor &result, const Descriptor &x,
   for (int j{0}; j < rank; ++j) {
     result.GetDimension(j).SetBounds(1, ub[j]);
   }
-  if (result.Allocate(kNoAsyncId) != CFI_SUCCESS) {
+  if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
     terminator.Crash("Compare: could not allocate storage for result");
   }
   std::size_t xChars{x.ElementBytes() >> shift<CHAR>};
@@ -173,7 +173,7 @@ static RT_API_ATTRS void AdjustLRHelper(Descriptor &result,
   for (int j{0}; j < rank; ++j) {
     result.GetDimension(j).SetBounds(1, ub[j]);
   }
-  if (result.Allocate(kNoAsyncId) != CFI_SUCCESS) {
+  if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
     terminator.Crash("ADJUSTL/R: could not allocate storage for result");
   }
   for (SubscriptValue resultAt{0}; elements-- > 0;
@@ -227,7 +227,7 @@ static RT_API_ATTRS void LenTrim(Descriptor &result, const Descriptor &string,
   for (int j{0}; j < rank; ++j) {
     result.GetDimension(j).SetBounds(1, ub[j]);
   }
-  if (result.Allocate(kNoAsyncId) != CFI_SUCCESS) {
+  if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
     terminator.Crash("LEN_TRIM: could not allocate storage for result");
   }
   std::size_t stringElementChars{string.ElementBytes() >> shift<CHAR>};
@@ -427,7 +427,7 @@ static RT_API_ATTRS void GeneralCharFunc(Descriptor &result,
   for (int j{0}; j < rank; ++j) {
     result.GetDimension(j).SetBounds(1, ub[j]);
   }
-  if (result.Allocate(kNoAsyncId) != CFI_SUCCESS) {
+  if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
     terminator.Crash("SCAN/VERIFY: could not allocate storage for result");
   }
   std::size_t stringElementChars{string.ElementBytes() >> shift<CHAR>};
@@ -530,7 +530,8 @@ static RT_API_ATTRS void MaxMinHelper(Descriptor &accumulator,
     for (int j{0}; j < rank; ++j) {
       accumulator.GetDimension(j).SetBounds(1, ub[j]);
     }
-    RUNTIME_CHECK(terminator, accumulator.Allocate(kNoAsyncId) == CFI_SUCCESS);
+    RUNTIME_CHECK(
+        terminator, accumulator.Allocate(kNoAsyncObject) == CFI_SUCCESS);
   }
   for (CHAR *result{accumulator.OffsetElement<CHAR>()}; elements-- > 0;
        accumData += accumChars, result += chars, x.IncrementSubscripts(xAt)) {
@@ -606,7 +607,7 @@ void RTDEF(CharacterConcatenate)(Descriptor &accumulator,
   for (int j{0}; j < rank; ++j) {
     accumulator.GetDimension(j).SetBounds(1, ub[j]);
   }
-  if (accumulator.Allocate(kNoAsyncId) != CFI_SUCCESS) {
+  if (accumulator.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
     terminator.Crash(
         "CharacterConcatenate: could not allocate storage for result");
   }
@@ -629,7 +630,8 @@ void RTDEF(CharacterConcatenateScalar1)(
   accumulator.set_base_addr(nullptr);
   std::size_t oldLen{accumulator.ElementBytes()};
   accumulator.raw().elem_len += chars;
-  RUNTIME_CHECK(terminator, accumulator.Allocate(kNoAsyncId) == CFI_SUCCESS);
+  RUNTIME_CHECK(
+      terminator, accumulator.Allocate(kNoAsyncObject) == CFI_SUCCESS);
   std::memcpy(accumulator.OffsetElement<char>(oldLen), from, chars);
   FreeMemory(old);
 }
@@ -831,7 +833,7 @@ void RTDEF(Repeat)(Descriptor &result, const Descriptor &string,
   std::size_t origBytes{string.ElementBytes()};
   result.Establish(string.type(), origBytes * ncopies, nullptr, 0, nullptr,
       CFI_attribute_allocatable);
-  if (result.Allocate(kNoAsyncId) != CFI_SUCCESS) {
+  if (result.Allocate(kNoAsyncObject) != CFI_SUCCESS) {
     terminator.Crash("REPEAT could not allocate storage for result");
   }
   const char *from{string.OffsetElement()};
@@ -865,7 +867,7 @@ void RTDEF(Trim)(Descriptor &result, const Descriptor &string,
   }
   result.Establish(string.type(), resultBytes, nullptr, 0, nullptr,
       CFI_attribute_allocatable);
-  RUNTIME_CHECK(terminator, result.Allocate(kNoAsyncId) == CFI_SUCCESS);
+  RUNTIME_CHECK(terminator, result.Allocate(kNoAsyncObject) == CFI_SUCCESS);
   std::memcpy(result.OffsetElement(), string.OffsetElement(), resultBytes);
 }
 
diff --git a/flang-rt/lib/runtime/copy.cpp b/flang-rt/lib/runtime/copy.cpp
index 3a0f98cf8d376..f990f46e0be66 100644
--- a/flang-rt/lib/runtime/copy.cpp
+++ b/flang-rt/lib/runtime/copy.cpp
@@ -171,8 +171,8 @@ RT_API_ATTRS void CopyElement(const Descriptor &to, const SubscriptValue toAt[],
                 *reinterpret_cast<Descriptor *>(toPtr + component->offset())};
             if (toDesc.raw().base_addr != nullptr) {
               toDesc.set_base_addr(nullptr);
-              RUNTIME_CHECK(
-                  terminator, toDesc.Allocate(/*asyncId=*/-1) == CFI_SUCCESS);
+              RUNTIME_CHECK(terminator,
+                  toDesc.Allocate(/*asyncObject=*/nullptr) == CFI_SUCCESS);
               const Descriptor &fromDesc{*reinterpret_cast<const Descriptor *>(
                   fromPtr + component->offset())};
               copyStack.emplace(toDesc, fromDesc);
diff --git a/flang-rt/lib/runtime/derived.cpp b/flang-rt/lib/runtime/derived.cpp
index c46ea806a430a..35037036f63e7 100644
--- a/flang-rt/lib/runtime/derived.cpp
+++ b/flang-rt/lib/runtime/derived.cpp
@@ -52,7 +52,7 @@ RT_API_ATTRS int Initialize(const Descriptor &instance,
         allocDesc.raw().attribute = CFI_attribute_allocatable;
         if (comp.genre() == typeInfo::Component::Genre::Automatic) {
           stat = ReturnError(
-              terminator, allocDesc.Allocate(kNoAsyncId), errMsg, hasStat);
+              terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
           if (stat == StatOk) {
             if (const DescriptorAddendum * addendum{allocDesc.Addendum()}) {
               if (const auto *derived{addendum->derivedType()}) {
@@ -153,7 +153,7 @@ RT_API_ATTRS int InitializeClone(const Descriptor &clone,
         if (origDesc.IsAllocated()) {
           cloneDesc.ApplyMold(origDesc, origDesc.rank());
           stat = ReturnError(
-              terminator, cloneDesc.Allocate(kNoAsyncId), errMsg, hasStat);
+              terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
           if (stat == StatOk) {
             if (const DescriptorAddendum * addendum{cloneDesc.Addendum()}) {
               if (const typeInfo::DerivedType *
@@ -260,7 +260,7 @@ static RT_API_ATTRS void CallFinalSubroutine(const Descriptor &descriptor,
         copy.raw().attribute = CFI_attribute_allocatable;
         Terminator stubTerminator{"CallFinalProcedure() in Fortran runtime", 0};
         RUNTIME_CHECK(terminator ? *terminator : stubTerminator,
-            copy.Allocate(kNoAsyncId) == CFI_SUCCESS);
+            copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
         ShallowCopyDiscontiguousToContiguous(copy, descriptor);
         argDescriptor = &copy;
       }
diff --git a/flang-rt/lib/runtime/descriptor.cpp b/flang-rt/lib/runtime/descriptor.cpp
index 3debf53bb5290..67336d01380e0 100644
--- a/flang-rt/lib/runtime/descriptor.cpp
+++ b/flang-rt/lib/runtime/descriptor.cpp
@@ -158,7 +158,7 @@ RT_API_ATTRS static inline int MapAllocIdx(const Descriptor &desc) {
 #endif
 }
 
-RT_API_ATTRS int Descriptor::Allocate(std::int64_t asyncId) {
+RT_API_ATTRS int Descriptor::Allocate(std::int64_t *asyncObject) {
   std::size_t elementBytes{ElementBytes()};
   if (static_cast<std::int64_t>(elementBytes) < 0) {
     // F'2023 7.4.4.2 p5: "If the character length parameter value evaluates
@@ -170,7 +170,7 @@ RT_API_ATTRS int Descriptor::Allocate(std::int64_t asyncId) {
   // Zero size allocation is possible in Fortran and the resulting
   // descriptor must be allocated/associated. Since std::malloc(0)
   // result is implementation defined, always allocate at least one byte.
-  void *p{alloc(byteSize ? byteSize : 1, asyncId)};
+  void *p{alloc(byteSize ? byteSize : 1, asyncObject)};
   if (!p) {
     return CFI_ERROR_MEM_ALLOCATION;
   }
diff --git a/flang-rt/lib/runtime/extrema.cpp b/flang-rt/lib/runtime/extrema.cpp
index 4c7f8e8b99e8f..03e574a8fbff1 100644
--- a/flang-rt/lib/runtime/extrema.cpp
+++ b/flang-rt/lib/runtime/extrema.cpp
@@ -152,7 +152,7 @@ inline RT_API_ATTRS void CharacterMaxOrMinLoc(const char *intrinsic,
       CFI_attribute_allocatable);
   result.GetDimension(0).SetBounds(1, extent[0]);
   Terminator terminator{source, line};
-  if (int stat{result.Allocate(kNoAsyncId)}) {
+  if (int stat{result.Allocate(kNoAsyncObject)}) {
     terminator.Crash(
         "%s: could not allocate memory for result; STAT=%d", intrinsic, stat);
   }
@@ -181,7 +181,7 @@ inline RT_API_ATTRS void TotalNumericMaxOrMinLoc(const char *intrinsic,
       CFI_attribute_allocatable);
   result.GetDimension(0).SetBounds(1, extent[0]);
   Terminator terminator{source, line};
-  if (int stat{result.Allocate(kNoAsyncId)}) {
+  if (int stat{result.Allocate(kNoAsyncObject)}) {
     terminator.Crash(
         "%s: could not allocate memory for result; STAT=%d", intrinsic, stat);
   }
diff --git a/flang-rt/lib/runtime/findloc.cpp b/flang-rt/lib/runtime/findloc.cpp
index e3e98953b0cfc..5485f4b97bd2f 100644
--- a/flang-rt/lib/runtime/findloc.cpp
+++ b/flang-rt/lib/runtime/findloc.cpp
@@ -220,7 +220,7 @@ void RTDEF(Findloc)(Descriptor &result, const Descriptor &x,
       CFI_attribute_allocatable);
   result.GetDimension(0).SetBounds(1, extent[0]);
   Terminator terminator{source, line};
-  if (int stat{result.Allocate(kNoAsyncId)}) {
+  if (int stat{result.Allocate(kNoAsyncObject)}) {
     terminator.Crash(
         "FINDLOC: could not allocate memory for result; STAT=%d", stat);
   }
diff --git a/flang-rt/lib/runtime/matmul-transpose.cpp b/flang-rt/lib/runtime/matmul-transpose.cpp
index 17987fb73d943..c9e21502b629e 100644
--- a/flang-rt/lib/runtime/matmul-transpose.cpp
+++ b/flang-rt/lib/runtime/matmul-transpose.cpp
@@ -183,7 +183,7 @@ inline static RT_API_ATTRS void DoMatmulTranspose(
     for (int j{0}; j < resRank; ++j) {
       result.GetDimension(j).SetBounds(1, extent[j]);
     }
-    if (int stat{result.Allocate(kNoAsyncId)}) {
+    if (int stat{result.Allocate(kNoAsyncObject)}) {
       terminator.Crash(
           "MATMUL-TRANSPOSE: could not allocate memory for result; STAT=%d",
           stat);
diff --git a/flang-rt/lib/runtime/matmul.cpp b/flang-rt/lib/runtime/matmul.cpp
index 0ff92cecbbcb8..5acb345725212 100644
--- a/flang-rt/lib/runtime/matmul.cpp
+++ b/flang-rt/lib/runtime/matmul.cpp
@@ -255,7 +255,7 @@ static inline RT_API_ATTRS void DoMatmul(
     for (int j{0}; j < resRank; ++j) {
       result.GetDimension(j).SetBounds(1, extent[j]);
     }
-    if (int stat{result.Allocate(kNoAsyncId)}) {
+    if (int stat{result.Allocate(kNoAsyncObject)}) {
       terminator.Crash(
           "MATMUL: could not allocate memory for result; STAT=%d", stat);
     }
diff --git a/fl...
[truncated]

@clementval clementval merged commit 9b0eaf7 into llvm:main Apr 30, 2025
15 checks passed
@clementval clementval deleted the cuf_stream_ref branch April 30, 2025 21:02
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 30, 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 flang-rt,flang at step 4 "annotate".

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

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)
...
[31/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-offload-device-info
[32/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-omp-kernel-replay
[33/92] Generating /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/compile_commands.json
[34/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:55:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
   55 |               terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:156:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  156 |               terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:263:27: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  263 |             copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
      |                           ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
3 errors generated.
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
Step 7 (build cmake config) failure: build cmake config (failure)
...
[31/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-offload-device-info
[32/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-omp-kernel-replay
[33/92] Generating /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/compile_commands.json
[34/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:55:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
   55 |               terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:156:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  156 |               terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:263:27: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  263 |             copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
      |                           ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
3 errors generated.
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 30, 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 flang-rt,flang at step 4 "annotate".

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

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)
...
[28/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocator-registry.cpp.o
[29/92] Linking CXX shared library /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.hwasan.so
[30/92] Linking CXX shared library /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.hwasan_aliases.so
[31/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/bin/llvm-offload-device-info
[32/92] Generating /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/compile_commands.json
[33/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/bin/llvm-omp-kernel-replay
[34/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/tools.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/tools.cpp:264:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  264 |   if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
1 error generated.
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/transformational.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/transformational.cpp:135:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  135 |   if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/transformational.cpp:160:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[28/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocator-registry.cpp.o
[29/92] Linking CXX shared library /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.hwasan.so
[30/92] Linking CXX shared library /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.hwasan_aliases.so
[31/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/bin/llvm-offload-device-info
[32/92] Generating /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/compile_commands.json
[33/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/bin/llvm-omp-kernel-replay
[34/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/tools.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/tools.cpp:264:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  264 |   if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
1 error generated.
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o 
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/transformational.cpp
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/transformational.cpp:135:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  135 |   if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/llvm-project/flang-rt/lib/runtime/transformational.cpp:160:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 30, 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 flang-rt,flang at step 4 "annotate".

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

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)
...
[32/92] Generating /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/compile_commands.json
[33/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/bin/llvm-omp-kernel-replay
[34/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[35/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o 
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:55:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
   55 |               terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:156:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  156 |               terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:263:27: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  263 |             copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
      |                           ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
3 errors generated.
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[44/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
Step 7 (build cmake config) failure: build cmake config (failure)
...
[32/92] Generating /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/compile_commands.json
[33/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/bin/llvm-omp-kernel-replay
[34/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[35/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o 
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:55:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
   55 |               terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:156:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  156 |               terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
      |                                              ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:263:27: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  263 |             copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
      |                           ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
3 errors generated.
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[44/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o

@jplehr
Copy link
Contributor

jplehr commented Apr 30, 2025

Hi, can these failures be fixed-forward or should we revert in the meantime?
Thanks!

@clementval
Copy link
Contributor Author

It's fixed normally

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 1, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
0.268 [2/58/9] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocator-registry.cpp.o
0.274 [1/58/10] Linking CXX shared library /build/buildbot/premerge-monolithic-linux/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.hwasan_aliases.so
0.288 [1/57/11] Linking CXX shared library /build/buildbot/premerge-monolithic-linux/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.asan.so
0.414 [1/56/12] Linking CXX shared library /build/buildbot/premerge-monolithic-linux/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.memprof.so
0.973 [1/55/13] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
1.017 [1/54/14] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
1.025 [1/53/15] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
1.057 [1/52/16] Generating /build/buildbot/premerge-monolithic-linux/build/compile_commands.json
1.096 [1/51/17] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
1.218 [1/50/18] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o 
/build/buildbot/premerge-monolithic-linux/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/../flang/include -I/build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/temporary-stack.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/temporary-stack.cpp:151:18: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  151 |     box.Allocate(kNoAsyncObject);
      |                  ^~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
1 error generated.
1.255 [1/49/19] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
1.315 [1/48/20] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
1.381 [1/47/21] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
1.408 [1/46/22] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
1.449 [1/45/23] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o 
/build/buildbot/premerge-monolithic-linux/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/../flang/include -I/build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/transformational.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/transformational.cpp:135:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  135 |   if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                ^~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/transformational.cpp:160:32: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  160 |   if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                ^~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
1.453 [1/44/24] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o 
/build/buildbot/premerge-monolithic-linux/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include -I/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/../flang/include -I/build/buildbot/premerge-monolithic-linux/build/runtimes/runtimes-bins/flang-rt -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 -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 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -std=gnu++17 -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o -c /build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/product.cpp
In file included from /build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/product.cpp:11:
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include/flang-rt/runtime/reduction-templates.h:350:34: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  350 |     if (int stat{result.Allocate(kNoAsyncObject)}) {
      |                                  ^~~~~~~~~~~~~~
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 1, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
   47 | #warning No gettid found, use getpid instead
      |  ^
1 warning generated.
4.450 [5/87/32] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.cpp.o
4.636 [5/86/33] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o
4.793 [5/85/34] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompd-specific.cpp.o
4.822 [5/84/35] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o
5.001 [5/83/36] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o
5.017 [5/82/37] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
5.185 [5/81/38] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o 
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/bin/clang++ --target=powerpc64le-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/../flang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/temporary-stack.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/temporary-stack.cpp:151:18: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  151 |     box.Allocate(kNoAsyncObject);
      |                  ^~~~~~~~~~~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
1 error generated.
5.264 [5/80/39] Building Fortran object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang/module/iso_fortran_env_impl.f90.o
5.268 [5/79/40] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
5.490 [5/78/41] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o
5.892 [5/77/42] Generating /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/compile_commands.json
6.400 [5/76/43] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
6.490 [5/75/44] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
6.520 [5/74/45] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
6.840 [5/73/46] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/complex-powi.cpp.o
7.140 [5/72/47] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o
7.180 [5/71/48] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o
7.230 [5/70/49] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o 
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/bin/clang++ --target=powerpc64le-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/../flang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  102 |   int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
      |                                                  ^~~~~~~~~~~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
  280 |       auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
      |                                                          ^~~~~~~~~~~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
  375 |   RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
      |                                           ^
2 errors generated.
7.250 [5/69/50] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o 
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/bin/clang++ --target=powerpc64le-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/../flang/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/build/runtimes/runtimes-bins/flang-rt -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 -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/character.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-flang-rhel-test/ppc64le-flang-rhel-clang-build/llvm-project/flang-rt/lib/runtime/character.cpp:121:23: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'

clementval added a commit to clementval/llvm-project that referenced this pull request May 1, 2025
clementval added a commit that referenced this pull request May 1, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
Ankur-0429 pushed a commit to Ankur-0429/llvm-project that referenced this pull request May 9, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.
Ankur-0429 pushed a commit to Ankur-0429/llvm-project that referenced this pull request May 9, 2025
clementval added a commit that referenced this pull request May 19, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.

New tentative with some fix. The previous was reverted some time ago.

Reviewed in #138010
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.

New tentative with some fix. The previous was reverted some time ago.

Reviewed in llvm#138010
ajaden-codes pushed a commit to Jaddyen/llvm-project that referenced this pull request Jun 6, 2025
Switch from `int64_t` to `int64_t*` to fit with the rest of the
implementation.

New tentative with some fix. The previous was reverted some time ago.

Reviewed in llvm#138010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:fir-hlfir flang Flang issues not falling into any other category openacc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants