Skip to content

Conversation

@mrkajetanp
Copy link
Contributor

@mrkajetanp mrkajetanp commented May 19, 2025

Using Descriptor.Element<>() when iterating through a rank-1 array is currently inefficient, because the generic implementation suitable for arrays of any rank makes the compiler unable to perform optimisations that would make the rank-1 case considerably faster.

This is currently done inside ShallowCopy, as well as by CopyInAssign, where the implementation of elemental copies (inside Assign) is equivalent to ShallowCopyDiscontiguousToDiscontiguous.

To address that, add a DescriptorIterator abstraction specialised for arrays of various ranks, and use that throughout ShallowCopy to iterate over the arrays.

Furthermore, depending on the pointer type passed to memcpy, the optimiser can remove the memcpy calls from ShallowCopy altogether which can result in substantial performance improvements on its own. Specialise ShallowCopy for various element pointer types to make these optimisations possible.

Finally, replace the call to Assign inside CopyInAssign with a call to newly optimised ShallowCopy.

For the thornado-mini application, this reduces the runtime by 27.7%.

Using Descriptor.Element<>() when iterating through a rank-1 array is
currently inefficient, because the generic implementation suitable
for arrays of any rank makes the compiler unable to perform
optimisations that would make the rank-1 case considerably faster.

This is currently done inside ShallowCopy, as well as inside Assign
where the implementation of elemental copies is equivalent to
ShallowCopyDiscontiguousToDiscontiguous.

To address that, add a DescriptorIterator abstraction specialised both
for the optimised rank-1 case as well as for the generic case, and use
that throughout ShallowCopy to iterate over the arrays.

Furthermore, depending on the pointer type passed to memcpy, the
optimiser can remove the memcpy calls from ShallowCopy altogether which
can result in substantial performance improvements on its own. Check the
element size throughout ShallowCopy and use the pointer type that
matches it where applicable to make these optimisations possible.

Finally, replace the implementation of elemental copies inside Assign to
make use of the ShallowCopy* family of functions whenever possible.

For the thornado-mini application, this reduces the runtime by 27.7%.

Signed-off-by: Kajetan Puchalski <[email protected]>
@klausler klausler removed their request for review May 19, 2025 16:29
Copy link
Contributor

@vzakhari vzakhari left a comment

Choose a reason for hiding this comment

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

Thank you for working on this! The results are promising!

Please read my comments inlined.

@vzakhari vzakhari requested review from clementval and klausler May 19, 2025 21:05
@klausler klausler removed their request for review May 19, 2025 21:06
@mrkajetanp mrkajetanp requested a review from vzakhari May 20, 2025 17:52
@mrkajetanp mrkajetanp changed the title [flang-rt] Optimise ShallowCopy and elemental copies in Assign [flang-rt] Optimise ShallowCopy and use it in CopyInAssign May 20, 2025
Copy link
Contributor

@tblah tblah left a comment

Choose a reason for hiding this comment

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

Thanks for the updates. Is the speedup the same after the most recent changes?

Some of these changes look heavily dependent upon particular compiler optimizations. Which compiler are you using to build flang-rt? Is there a similar speedup for another compiler?

Copy link
Contributor

@vzakhari vzakhari left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

Please add unittests in flang-rt/unittests/Runtime.

@github-actions
Copy link

github-actions bot commented May 21, 2025

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

@mrkajetanp
Copy link
Contributor Author

Is the speedup the same after the most recent changes?

It is, no substantial changes compared to the original.

Some of these changes look heavily dependent upon particular compiler optimizations. Which compiler are you using to build flang-rt? Is there a similar speedup for another compiler?

I normally build with clang + lld, but I double checked with gcc + ld and performance looks the same. It looks like both compilers can handle it.

@mrkajetanp mrkajetanp requested review from tblah and vzakhari May 21, 2025 13:59
Copy link
Contributor

@vzakhari vzakhari left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the updates!

Please give others some time to take another look.

Copy link
Contributor

@yus3710-fj yus3710-fj left a comment

Choose a reason for hiding this comment

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

Thank you for the patch. There are just a few minor comments.

Co-authored-by: Yusuke MINATO <[email protected]>
Copy link
Contributor

@yus3710-fj yus3710-fj left a comment

Choose a reason for hiding this comment

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

LGTM

@mrkajetanp mrkajetanp merged commit c2892b0 into llvm:main May 22, 2025
9 checks passed
@llvm-ci
Copy link
Collaborator

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

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

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/91] Generating /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/compile_commands.json
[33/91] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[34/91] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
[36/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[37/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[38/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
[40/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[41/91] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[42/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[43/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[44/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[45/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
[46/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
[47/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[48/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[49/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/libomptarget-amdgpu.bc
clang++: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
[50/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[51/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[52/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
[53/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[54/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[55/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[56/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
[57/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[58/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[59/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[60/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[61/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/unit.cpp.o
[62/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
[63/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/sum.cpp.o
[64/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
[65/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
[66/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
[67/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
[68/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o
[69/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
[70/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
[71/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
[72/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
[73/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o
Step 7 (build cmake config) failure: build cmake config (failure)
...
[32/91] Generating /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/compile_commands.json
[33/91] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[34/91] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
[36/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[37/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[38/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
[40/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[41/91] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[42/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[43/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[44/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[45/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
[46/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
[47/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[48/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[49/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib/libomptarget-amdgpu.bc
clang++: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
[50/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[51/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[52/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
[53/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[54/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[55/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[56/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
[57/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[58/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[59/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[60/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[61/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/unit.cpp.o
[62/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
[63/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/sum.cpp.o
[64/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
[65/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
[66/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
[67/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
[68/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o
[69/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
[70/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
[71/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
[72/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
[73/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o

@llvm-ci
Copy link
Collaborator

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

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

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)
...
[33/91] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[34/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[35/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[36/91] Building LLVM bitcode Workshare.cpp-amdgpu.o
[37/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
[38/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[41/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/91] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[43/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[44/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[45/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[46/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[47/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[48/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[49/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[50/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[51/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[52/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[53/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/libomptarget-amdgpu.bc
clang++: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
[54/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
[55/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
[56/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
[57/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[58/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
[59/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[60/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pseudo-unit.cpp.o
[61/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
[62/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
[63/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
[64/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
[65/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
[66/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o
[67/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/namelist.cpp.o
[68/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/sum.cpp.o
[69/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
[70/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
[71/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
[72/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
[73/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
[74/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o
Step 7 (build cmake config) failure: build cmake config (failure)
...
[33/91] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[34/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[35/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[36/91] Building LLVM bitcode Workshare.cpp-amdgpu.o
[37/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
[38/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[41/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/91] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[43/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[44/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[45/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[46/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[47/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[48/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[49/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[50/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[51/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[52/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[53/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib/libomptarget-amdgpu.bc
clang++: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
[54/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
[55/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
[56/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
[57/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[58/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
[59/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[60/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pseudo-unit.cpp.o
[61/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
[62/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
[63/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
[64/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
[65/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
[66/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o
[67/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/namelist.cpp.o
[68/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/sum.cpp.o
[69/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
[70/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
[71/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
[72/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
[73/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
[74/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o

@llvm-ci
Copy link
Collaborator

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

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

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/91] Building LLVM bitcode State.cpp-amdgpu.o
[29/91] Linking CXX shared library /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.memprof.so
[30/91] Generating /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/compile_commands.json
[31/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/bin/llvm-omp-kernel-replay
[32/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/bin/llvm-offload-device-info
[33/91] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[34/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[35/91] Building LLVM bitcode Workshare.cpp-amdgpu.o
[36/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[37/91] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[38/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[39/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[40/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[41/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[43/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[44/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
[45/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[46/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[47/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[48/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[49/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[50/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[51/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[52/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/libomptarget-amdgpu.bc
clang++: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
[53/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
[54/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[55/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
[56/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[57/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[58/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
[59/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
[60/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
[61/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
[62/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o
[63/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/namelist.cpp.o
[64/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
[65/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
[66/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
[67/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
[68/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
[69/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o
Step 7 (build cmake config) failure: build cmake config (failure)
...
[28/91] Building LLVM bitcode State.cpp-amdgpu.o
[29/91] Linking CXX shared library /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.memprof.so
[30/91] Generating /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/compile_commands.json
[31/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/bin/llvm-omp-kernel-replay
[32/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/bin/llvm-offload-device-info
[33/91] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[34/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[35/91] Building LLVM bitcode Workshare.cpp-amdgpu.o
[36/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[37/91] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[38/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[39/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[40/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[41/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[43/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[44/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
[45/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[46/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[47/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[48/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[49/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[50/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[51/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[52/91] Linking CXX executable /home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib/libomptarget-amdgpu.bc
clang++: warning: joined argument expects additional value: '-mcpu=' [-Wunused-command-line-argument]
[53/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
[54/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[55/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
[56/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[57/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[58/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
[59/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
[60/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
[61/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
[62/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o
[63/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/namelist.cpp.o
[64/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
[65/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
[66/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
[67/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
[68/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
[69/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o

@mrkajetanp
Copy link
Contributor Author

kNoAsyncId changed to kNoAsyncObject 2-3 days ago hence the failures, I already merged a fix.

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building flang-rt at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
7.859 [77/34/865] Linking CXX shared library /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.tsan.so
8.009 [76/34/866] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/offload-tblgen.cpp.o
8.016 [75/34/867] Building CXX object offload/tools/kernelreplay/CMakeFiles/llvm-omp-kernel-replay.dir/llvm-omp-kernel-replay.cpp.o
8.034 [74/34/868] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/MiscGen.cpp.o
8.090 [73/34/869] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
8.266 [72/34/870] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/lib/Decimal/decimal-to-binary.cpp.o
8.296 [71/34/871] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/buffer.cpp.o
8.333 [70/34/872] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
8.426 [69/34/873] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/EntryPointGen.cpp.o
8.454 [68/34/874] 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/builds/openmp-offload-sles-build/llvm.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/builds/openmp-offload-sles-build/llvm.src/flang-rt/include -I/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang-rt/../flang/include -Iflang-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 -Wno-unnecessary-virtual-specifier -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/builds/openmp-offload-sles-build/llvm.src/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
8.472 [68/33/875] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/PrintGen.cpp.o
8.485 [68/32/876] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/lib/Decimal/binary-to-decimal.cpp.o
8.597 [68/31/877] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
8.672 [68/30/878] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
8.688 [68/29/879] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
8.765 [68/28/880] Building CXX object offload/tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o
8.777 [68/27/881] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
8.936 [68/26/882] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
9.079 [68/25/883] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
9.234 [68/24/884] Building CXX object offload/plugins-nextgen/host/CMakeFiles/omptarget.rtl.host.dir/src/rtl.cpp.o
9.363 [68/23/885] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/LegacyAPI.cpp.o
9.385 [68/22/886] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/GlobalHandler.cpp.o
9.416 [68/21/887] Building CXX object offload/plugins-nextgen/common/CMakeFiles/PluginCommon.dir/src/PluginInterface.cpp.o
9.547 [68/20/888] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
9.567 [68/19/889] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OffloadRTL.cpp.o
9.574 [68/18/890] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/InteropAPI.cpp.o
9.621 [68/17/891] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/device.cpp.o
9.875 [68/16/892] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/Mapping.cpp.o
9.943 [68/15/893] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic.x86_64.dir/asan_interceptors.cpp.o
9.988 [68/14/894] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/OpenMP/API.cpp.o
10.065 [68/13/895] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/interface.cpp.o
10.377 [68/12/896] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan.x86_64.dir/asan_interceptors.cpp.o
10.432 [68/11/897] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/PluginManager.cpp.o
10.498 [68/10/898] Building CXX object offload/libomptarget/CMakeFiles/omptarget.dir/omptarget.cpp.o
10.682 [68/9/899] Building CXX object offload/liboffload/CMakeFiles/LLVMOffload.dir/src/OffloadLib.cpp.o
10.863 [68/8/900] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
In file included from /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang-rt/lib/runtime/edit-output.cpp:10:
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang-rt/include/flang-rt/runtime/emit-encoded.h:49:40: warning: implicit conversion from 'const UnsignedChar' (aka 'const char16_t') to 'char32_t' may change the meaning of the represented code unit [-Wcharacter-conversion]
   49 |       auto len{EncodeUTF8(buffer + at, *uData++)};
      |                ~~~~~~~~~~              ^~~~~~~~
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang-rt/lib/runtime/edit-output.cpp:865:18: note: in instantiation of function template specialization 'Fortran::runtime::io::EmitEncoded<Fortran::runtime::io::IoStatementState, char16_t, true>' requested here
  865 |       ok = ok && EmitEncoded(io, &ch, 1);
      |                  ^

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 6 (build-unified-tree) failure: build (failure)
...
14.708 [36/58/1589] Linking CXX static library libc/utils/MPFRWrapper/liblibcMPFRWrapper.a
14.710 [35/58/1590] Linking CXX static library compiler-rt/lib/scudo/standalone/tests/libRTScudoCxxUnitTest.x86_64.a
14.734 [34/58/1591] Linking CXX shared library /build/buildbot/premerge-monolithic-linux/build/lib/clang/21/lib/x86_64-unknown-linux-gnu/libclang_rt.scudo_standalone.so
14.735 [33/58/1592] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/resolve.cpp.o
14.787 [32/58/1593] Building Fortran preprocessed flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/build/buildbot/premerge-monolithic-linux/llvm-project/flang/module/iso_fortran_env_impl.f90-pp.f90
14.837 [31/58/1594] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
14.872 [30/58/1595] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
14.907 [29/58/1596] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
15.024 [28/58/1597] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/utf.cpp.o
15.025 [27/58/1598] 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 
/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 -Wno-unnecessary-virtual-specifier -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 /build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/assign.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
15.026 [27/57/1599] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
15.026 [27/56/1600] Building C object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/complex-reduction.c.o
15.033 [27/55/1601] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/exceptions.cpp.o
15.038 [27/54/1602] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.x86_64.dir/run_program_wrapper.cpp.o
15.039 [27/53/1603] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
15.042 [27/52/1604] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
15.209 [27/51/1605] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
15.222 [27/50/1606] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
15.233 [27/49/1607] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/main.cpp.o
15.254 [27/48/1608] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-code.cpp.o
15.321 [27/47/1609] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
15.321 [27/46/1610] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
15.325 [27/45/1611] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
15.351 [27/44/1612] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
15.357 [27/43/1613] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
15.468 [27/42/1614] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
15.597 [27/41/1615] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o
15.622 [27/40/1616] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
15.770 [27/39/1617] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
15.796 [27/38/1618] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/complex-powi.cpp.o
15.808 [27/37/1619] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
15.809 [27/36/1620] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
15.924 [27/35/1621] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/build/buildbot/premerge-monolithic-linux/llvm-project/flang/lib/Decimal/binary-to-decimal.cpp.o
16.066 [27/34/1622] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/execute.cpp.o
16.072 [27/33/1623] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
16.073 [27/32/1624] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
16.094 [27/31/1625] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
16.159 [27/30/1626] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
16.249 [27/29/1627] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
16.299 [27/28/1628] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
16.516 [27/27/1629] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pseudo-unit.cpp.o
16.655 [27/26/1630] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
16.834 [27/25/1631] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
3.058 [4/61/59] Linking CXX static library openmp/tools/archer/libarcher_static.a
3.100 [4/60/60] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o
3.122 [4/59/61] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
3.228 [4/58/62] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
3.296 [4/57/63] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
3.300 [4/56/64] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
3.300 [4/55/65] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
3.304 [4/54/66] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o
3.329 [4/53/67] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_collapse.cpp.o
3.445 [4/52/68] 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 -Wno-unnecessary-virtual-specifier -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:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
3.456 [4/51/69] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
3.463 [4/50/70] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
3.488 [4/49/71] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
3.566 [4/48/72] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
3.612 [4/47/73] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
3.640 [4/46/74] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
3.735 [4/45/75] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
3.762 [4/44/76] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o
3.798 [4/43/77] Building CXX 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/lib/Decimal/binary-to-decimal.cpp.o
3.818 [4/42/78] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
3.898 [4/41/79] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
3.995 [4/40/80] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
4.160 [4/39/81] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o
4.215 [4/38/82] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
4.336 [4/37/83] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
4.391 [4/36/84] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pseudo-unit.cpp.o
4.466 [4/35/85] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
4.484 [4/34/86] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o
4.693 [4/33/87] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
4.707 [4/32/88] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.cpp.o
4.728 [4/31/89] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
4.736 [4/30/90] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_atomic.cpp.o
4.812 [4/29/91] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o
4.851 [4/28/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/unit-map.cpp.o
4.929 [4/27/93] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extensions.cpp.o
4.946 [4/26/94] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/random.cpp.o
4.952 [4/25/95] Building CXX 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/lib/Decimal/decimal-to-binary.cpp.o
5.053 [4/24/96] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o
5.275 [4/23/97] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
5.344 [4/22/98] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
5.593 [4/21/99] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
5.864 [4/20/100] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
5.923 [4/19/101] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
111.886 [122/1/51] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdAPITests.c.o
112.015 [121/1/52] Linking C shared module openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
112.027 [120/1/53] Generating python-module/ompd/__init__.py
118.672 [119/1/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/flang/lib/Decimal/binary-to-decimal.cpp.o
124.236 [118/1/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o
126.390 [117/1/56] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
127.221 [116/1/57] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocator-registry.cpp.o
130.196 [115/1/58] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
135.043 [114/1/59] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
139.533 [113/1/60] 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/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/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 -Wno-unnecessary-virtual-specifier -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/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/runtimes/runtimes-bins && /usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.

@clementval
Copy link
Contributor

kNoAsyncId changed to kNoAsyncObject 2-3 days ago hence the failures, I already merged a fix.

Always make sure that the pre commit ci pass before merging.

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-out-of-tree running on linaro-flang-aarch64-out-of-tree while building flang-rt at step 12 "build-flang-rt-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 12 (build-flang-rt-unified-tree) failure: build (failure)
...
2.839 [1/69/51] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o
2.892 [1/68/52] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
3.113 [1/67/53] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
3.206 [1/66/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/rrspacing.cpp.o
3.299 [1/65/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
3.385 [1/64/56] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
3.396 [1/63/57] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extensions.cpp.o
3.403 [1/62/58] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
3.416 [1/61/59] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/floor.cpp.o
3.469 [1/60/60] 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 
/usr/local/bin/c++ -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_flang-rt/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/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/runtime/assign.cpp
../llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^
1 error generated.
3.471 [1/59/61] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/ceil.cpp.o
3.484 [1/58/62] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/set-exponent.cpp.o
3.505 [1/57/63] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
3.540 [1/56/64] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/cosh.cpp.o
3.552 [1/55/65] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
3.553 [1/54/66] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/asinh.cpp.o
3.554 [1/53/67] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/mod-real.cpp.o
3.562 [1/52/68] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/trunc.cpp.o
3.599 [1/51/69] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/erfc.cpp.o
3.600 [1/50/70] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
3.702 [1/49/71] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/sinh.cpp.o
3.714 [1/48/72] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/round.cpp.o
3.720 [1/47/73] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/tgamma.cpp.o
3.727 [1/46/74] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/fma.cpp.o
3.752 [1/45/75] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/j0.cpp.o
3.757 [1/44/76] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
3.761 [1/43/77] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/log.cpp.o
3.770 [1/42/78] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/y1.cpp.o
3.775 [1/41/79] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/log10.cpp.o
3.910 [1/40/80] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
3.916 [1/39/81] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/random.cpp.o
3.917 [1/38/82] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
3.963 [1/37/83] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/norm2.cpp.o
4.007 [1/36/84] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/exp.cpp.o
4.015 [1/35/85] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
4.043 [1/34/86] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/erf.cpp.o
4.087 [1/33/87] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
4.109 [1/32/88] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
4.220 [1/31/89] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
4.286 [1/30/90] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/remainder.cpp.o
4.310 [1/29/91] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
4.468 [1/28/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/random.cpp.o
4.478 [1/27/93] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang-rt/lib/quadmath/j1.cpp.o

@mrkajetanp
Copy link
Contributor Author

Always make sure that the pre commit ci pass before merging.

It did, the issue was that I did not freshly rebase the PR before merging and the variable changed after the last rebase.

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
2.103 [43/108/23] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-code.cpp.o
2.135 [43/107/24] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
2.397 [43/106/25] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
2.809 [43/105/26] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o
2.848 [43/104/27] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o
2.906 [43/103/28] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
3.019 [43/102/29] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/atan2.cpp.o
3.036 [43/101/30] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
3.037 [43/100/31] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
3.111 [43/99/32] 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/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/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 -Wno-unnecessary-virtual-specifier -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/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
3.252 [43/98/33] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
3.253 [43/97/34] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
3.257 [43/96/35] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/acosh.cpp.o
3.262 [43/95/36] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/fma.cpp.o
3.280 [43/94/37] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/llround.cpp.o
3.311 [43/93/38] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
3.418 [43/92/39] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
3.422 [43/91/40] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
3.467 [43/90/41] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
3.495 [43/89/42] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
3.577 [43/88/43] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/acos.cpp.o
3.600 [43/87/44] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/y1.cpp.o
3.651 [43/86/45] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/complex-powi.cpp.o
3.664 [43/85/46] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
3.666 [43/84/47] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
3.709 [43/83/48] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
3.724 [43/82/49] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/lround.cpp.o
3.803 [43/81/50] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/temporary-stack.cpp.o
3.983 [43/80/51] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
4.111 [43/79/52] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
4.146 [43/78/53] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/remainder.cpp.o
4.151 [43/77/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
4.262 [43/76/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang/lib/Decimal/binary-to-decimal.cpp.o
4.385 [43/75/56] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pseudo-unit.cpp.o
4.389 [43/74/57] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
4.495 [43/73/58] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
4.606 [43/72/59] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/time-intrinsic.cpp.o
4.746 [43/71/60] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o
4.809 [43/70/61] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
4.854 [43/69/62] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
4.940 [43/68/63] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/asin.cpp.o
5.011 [43/67/64] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
5.071 [43/66/65] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/flang-rt/lib/quadmath/floor.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
55.135 [122/1/51] Building C object openmp/libompd/gdb-plugin/CMakeFiles/ompdModule.dir/ompdAPITests.c.o
55.247 [121/1/52] Linking C shared module openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
55.270 [120/1/53] Generating python-module/ompd/__init__.py
59.706 [119/1/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/flang/lib/Decimal/binary-to-decimal.cpp.o
63.536 [118/1/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o
65.983 [117/1/56] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
66.708 [116/1/57] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocator-registry.cpp.o
69.033 [115/1/58] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
72.590 [114/1/59] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
75.938 [113/1/60] 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/tcwg-buildbot/worker/flang-aarch64-release/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-release/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 -Wno-unnecessary-virtual-specifier -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 -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/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/flang-aarch64-release/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-release/build/runtimes/runtimes-stamps/runtimes-build 
cd /home/tcwg-buildbot/worker/flang-aarch64-release/build/runtimes/runtimes-bins && /usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-rel-assert running on linaro-flang-aarch64-rel-assert while building flang-rt at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
2.257 [114/41/19] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
2.371 [114/40/20] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o
2.660 [114/39/21] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
2.706 [114/38/22] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
2.777 [114/37/23] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
3.066 [114/36/24] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pseudo-unit.cpp.o
3.077 [114/35/25] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
3.381 [114/34/26] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
3.453 [114/33/27] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
3.534 [114/32/28] 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/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/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 -Wno-unnecessary-virtual-specifier -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/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
3.556 [114/31/29] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
3.589 [114/30/30] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o
3.607 [114/29/31] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
3.793 [114/28/32] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
3.837 [114/27/33] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
3.867 [114/26/34] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
4.038 [114/25/35] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
4.090 [114/24/36] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
4.117 [114/23/37] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
4.264 [114/22/38] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
5.247 [114/21/39] Building CXX object openmp/tools/archer/CMakeFiles/archer_static.dir/ompt-tsan.cpp.o
5.751 [114/20/40] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/product.cpp.o
5.891 [114/19/41] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-rel-assert/llvm-project/flang/lib/Decimal/binary-to-decimal.cpp.o
6.230 [114/18/42] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
6.236 [114/17/43] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-output.cpp.o
6.251 [114/16/44] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/format.cpp.o
6.597 [114/15/45] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
6.759 [114/14/46] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/transformational.cpp.o
7.268 [114/13/47] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
8.273 [114/12/48] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-stmt.cpp.o
9.689 [114/11/49] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api-minimal.cpp.o
11.098 [114/10/50] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/sum.cpp.o
12.699 [114/9/51] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-api.cpp.o
14.184 [114/8/52] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/tools.cpp.o
16.140 [114/7/53] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/namelist.cpp.o
26.393 [114/6/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/character.cpp.o
86.541 [114/5/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/dot-product.cpp.o
98.861 [114/4/56] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/extrema.cpp.o
145.071 [114/3/57] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul.cpp.o
201.172 [114/2/58] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/matmul-transpose.cpp.o
308.178 [114/1/59] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/findloc.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build /home/tcwg-buildbot/worker/flang-aarch64-rel-assert/build/runtimes/runtimes-stamps/runtimes-build 

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vla running on linaro-g3-01 while building flang-rt at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[647/797] Linking CXX static library /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.scudo_standalone.a
[648/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[649/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor.cpp.o
[650/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/non-tbp-dio.cpp.o
[651/797] Linking CXX shared library /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/clang/21/lib/aarch64-unknown-linux-gnu/libclang_rt.scudo_standalone.so
[652/797] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/dlfcn_wrapper.cpp.o
[653/797] Building Fortran preprocessed flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang/module/iso_fortran_env_impl.f90-pp.f90
[654/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[655/797] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/resolve.cpp.o
[656/797] 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/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/./bin/clang++ --target=aarch64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang-rt/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/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 -Wno-unnecessary-virtual-specifier -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/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
[657/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
[658/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/utf.cpp.o
[659/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[660/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
[661/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
[662/797] Building CXX object compiler-rt/lib/orc/CMakeFiles/RTOrc.aarch64.dir/run_program_wrapper.cpp.o
[663/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
[664/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/inquiry.cpp.o
[665/797] Building CXX object compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.aarch64.dir/FuzzerUtilLinux.cpp.o
[666/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
[667/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-code.cpp.o
[668/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
[669/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
[670/797] Building CXX object compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.aarch64.dir/FuzzerUtilPosix.cpp.o
[671/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
[672/797] Building CXX object compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.aarch64.dir/FuzzerUtil.cpp.o
[673/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
[674/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang/lib/Decimal/decimal-to-binary.cpp.o
[675/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
[676/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/numeric.cpp.o
[677/797] Building CXX object compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.aarch64.dir/FuzzerDataFlowTrace.cpp.o
[678/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/complex-powi.cpp.o
[679/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/descriptor-io.cpp.o
[680/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
[681/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
[682/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/external-unit.cpp.o
[683/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
[684/797] Building CXX object compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.aarch64.dir/FuzzerMutate.cpp.o
[685/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
[686/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/clang-aarch64-sve-vla/llvm/flang/lib/Decimal/binary-to-decimal.cpp.o
[687/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
[688/797] Building CXX object compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.aarch64.dir/FuzzerTracePC.cpp.o
[689/797] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stop.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 22, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
3.519 [89/67/18] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_debug.cpp.o
3.526 [89/66/19] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o
3.535 [89/65/20] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o
3.555 [89/64/21] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o
3.565 [89/63/22] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
3.567 [89/62/23] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompd-specific.cpp.o
3.580 [89/61/24] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_global.cpp.o
3.593 [89/60/25] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
3.621 [89/59/26] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_i18n.cpp.o
3.632 [89/58/27] 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/tcwg-buildbot/worker/flang-aarch64-dylib/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-dylib/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 -Wno-unnecessary-virtual-specifier -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/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
3.680 [89/57/28] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.cpp.o
3.686 [89/56/29] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
3.766 [89/55/30] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_io.cpp.o
3.823 [89/54/31] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.cpp.o
3.939 [89/53/32] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/flang/lib/Decimal/binary-to-decimal.cpp.o
4.004 [89/52/33] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o
4.009 [89/51/34] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o
4.025 [89/50/35] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o
4.080 [89/49/36] Linking C shared module openmp/libompd/gdb-plugin/python-module/ompd/ompdModule.so
4.378 [89/48/37] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o
4.679 [89/47/38] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
4.680 [89/46/39] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o
4.695 [89/45/40] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o
4.844 [89/44/41] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-icv.cpp.o
4.877 [89/43/42] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o
4.921 [89/42/43] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o
5.028 [89/41/44] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o
5.039 [89/40/45] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_itt.cpp.o
5.268 [89/39/46] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/omp-debug.cpp.o
5.274 [89/38/47] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o
5.351 [89/37/48] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o
5.387 [89/36/49] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.cpp.o
5.400 [89/35/50] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_collapse.cpp.o
5.502 [89/34/51] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.cpp.o
5.512 [89/33/52] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
5.515 [89/32/53] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
5.644 [89/31/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
5.791 [89/30/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
5.799 [89/29/56] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o
5.829 [89/28/57] Building CXX object openmp/libompd/src/CMakeFiles/ompd.dir/TargetValue.cpp.o
5.839 [89/27/58] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
5.910 [89/26/59] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o
6.160 [89/25/60] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 23, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-debug-reverse-iteration running on linaro-flang-aarch64-debug-reverse-iteration while building flang-rt at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
31.646 [46/96/32] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ragged.cpp.o
32.142 [46/95/33] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/remainder.cpp.o
32.212 [46/94/34] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
33.268 [46/93/35] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
33.296 [46/92/36] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/asin.cpp.o
33.376 [46/91/37] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/command.cpp.o
33.901 [46/90/38] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/pointer.cpp.o
34.232 [46/89/39] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
34.573 [46/88/40] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/environment.cpp.o
34.986 [46/87/41] 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/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/build/./bin/clang++ --target=aarch64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/../flang/include -I/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/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 -Wno-unnecessary-virtual-specifier -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -g -std=gnu++17 -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/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
35.013 [46/86/42] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/hypot.cpp.o
35.120 [46/85/43] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/io-error.cpp.o
35.404 [46/84/44] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/pow.cpp.o
35.482 [46/83/45] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/set-exponent.cpp.o
35.542 [46/82/46] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/rrspacing.cpp.o
35.599 [46/81/47] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
36.341 [46/80/48] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/nearest.cpp.o
36.614 [46/79/49] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/type-info.cpp.o
36.697 [46/78/50] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/round.cpp.o
37.001 [46/77/51] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/y1.cpp.o
37.712 [46/76/52] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/file.cpp.o
38.326 [46/75/53] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/sum.cpp.o
38.979 [46/74/54] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
39.221 [46/73/55] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/sqrt.cpp.o
39.665 [46/72/56] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/stat.cpp.o
39.666 [46/71/57] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/tan.cpp.o
41.282 [46/70/58] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/edit-input.cpp.o
41.303 [46/69/59] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/j0.cpp.o
41.602 [46/68/60] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/jn.cpp.o
41.619 [46/67/61] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/cos.cpp.o
41.728 [46/66/62] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/lgamma.cpp.o
42.582 [46/65/63] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/llround.cpp.o
42.803 [46/64/64] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/cosh.cpp.o
42.943 [46/63/65] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/lround.cpp.o
43.143 [46/62/66] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/asinh.cpp.o
43.350 [46/61/67] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/log10.cpp.o
43.639 [46/60/68] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/y0.cpp.o
43.908 [46/59/69] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/atan.cpp.o
44.005 [46/58/70] Building CXX object openmp/tools/archer/CMakeFiles/archer.dir/ompt-tsan.cpp.o
44.033 [46/57/71] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/tanh.cpp.o
44.216 [46/56/72] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/tgamma.cpp.o
44.564 [46/55/73] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/ceil.cpp.o
44.703 [46/54/74] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/tcwg-buildbot/worker/flang-aarch64-debug-reverse-iteration/llvm-project/flang-rt/lib/quadmath/acosh.cpp.o

@llvm-ci
Copy link
Collaborator

llvm-ci commented May 24, 2025

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

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
      |           ^~~~
1 warning generated.
4.554 [2/82/89] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/array-constructor.cpp.o
4.555 [2/81/90] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
4.556 [2/80/91] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
4.579 [2/79/92] Generating /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/compile_commands.json
4.611 [2/78/93] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
4.672 [2/77/94] 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/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/./bin/clang++ --target=powerpc64-ibm-aix -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_LARGE_FILE_API -D_XOPEN_SOURCE=700 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang-rt/include -I/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang-rt/../flang/include -I/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/runtimes/runtimes-bins/flang-rt -mcmodel=large -fPIC -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 -Wno-unnecessary-virtual-specifier -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/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang-rt/lib/runtime/assign.cpp:594:17: error: use of undeclared identifier 'kNoAsyncId'
  594 |   temp.Allocate(kNoAsyncId);
      |                 ^~~~~~~~~~
1 error generated.
4.722 [2/76/95] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/memory.cpp.o
4.723 [2/75/96] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
4.857 [2/74/97] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/support.cpp.o
4.937 [2/73/98] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
5.032 [2/72/99] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
5.248 [2/71/100] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
5.457 [2/70/101] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
5.488 [2/69/102] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
5.505 [2/68/103] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
5.519 [2/67/104] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
5.616 [2/66/105] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
In file included from /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/openmp/runtime/src/kmp_ftn_extra.cpp:14:
/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/openmp/runtime/src/kmp_affinity.h:447:11: warning: unused variable 'gtid' [-Wunused-variable]
  447 |       int gtid = __kmp_entry_gtid();
      |           ^~~~
1 warning generated.
5.646 [2/65/106] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
In file included from /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/openmp/runtime/src/kmp_ftn_cdecl.cpp:14:
/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/openmp/runtime/src/kmp_affinity.h:447:11: warning: unused variable 'gtid' [-Wunused-variable]
  447 |       int gtid = __kmp_entry_gtid();
      |           ^~~~
1 warning generated.
6.138 [2/64/107] Building CXX object openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o
clang++: warning: argument unused during compilation: '-fno-semantic-interposition' [-Wunused-command-line-argument]
6.346 [2/63/108] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/misc-intrinsic.cpp.o
6.348 [2/62/109] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/lib/Decimal/decimal-to-binary.cpp.o

@mgorny
Copy link
Member

mgorny commented May 24, 2025

This change seems to have broken building unittests for me:

FAILED: flang-rt/unittests/Evaluate/reshape.test 
: && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wno-unnecessary-virtual-specifier -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs     -Wl,--dependency-file=flang-rt/unittests/Evaluate/CMakeFiles/reshape.test.dir/link.d flang-rt/unittests/Evaluate/CMakeFiles/reshape.test.dir/reshape.cpp.o -o flang-rt/unittests/Evaluate/reshape.test  -Wl,-rpath,/var/tmp/portage/llvm-runtimes/flang-rt-21.0.0.9999/work/runtimes_build/flang-rt/lib/Testing:/usr/lib/llvm/21/lib64  flang-rt/lib/Testing/libNonGTestTesting.so  flang-rt/lib64/libflang_rt.runtime.a  -pthread  /usr/lib/llvm/21/lib64/libLLVM.so.21.0git8d374f1f && :
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: flang-rt/lib64/libflang_rt.runtime.a(derived.cpp.o): in function `Fortran::runtime::Finalize(Fortran::runtime::Descriptor const&, Fortran::runtime::typeInfo::DerivedType const&, Fortran::runtime::Terminator*) [clone .part.0]':
derived.cpp:(.text._ZN7Fortran7runtime8FinalizeERKNS0_10DescriptorERKNS0_8typeInfo11DerivedTypeEPNS0_10TerminatorE.part.0+0x3d0): undefined reference to `void Fortran::runtime::ShallowCopyDiscontiguousToContiguous<char, -1>(Fortran::runtime::Descriptor const&, Fortran::runtime::Descriptor const&)'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: derived.cpp:(.text._ZN7Fortran7runtime8FinalizeERKNS0_10DescriptorERKNS0_8typeInfo11DerivedTypeEPNS0_10TerminatorE.part.0+0xb88): undefined reference to `void Fortran::runtime::ShallowCopyContiguousToDiscontiguous<char, -1>(Fortran::runtime::Descriptor const&, Fortran::runtime::Descriptor const&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

This is Gentoo Linux amd64.

flang-rt is configured as:

cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_Fortran_COMPILER_WORKS=TRUE -DLLVM_ENABLE_RUNTIMES=flang-rt -DLLVM_BINARY_DIR=/usr/lib/llvm/21 -DFLANG_RT_INSTALL_RESOURCE_PATH=/usr/lib/clang/21 -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-pc-linux-gnu -DFLANG_RT_INCLUDE_TESTS=yes -DLLVM_EXTERNAL_LIT=/usr/bin/lit -DLLVM_LIT_ARGS=-vv;-j;1 -DCMAKE_BUILD_TYPE=RelWithDebInfo /path/to/llvm-project/runtimes

@mrkajetanp
Copy link
Contributor Author

This change seems to have broken building unittests for me

I can't seem to reproduce it, including on Gentoo amd64. Do you maybe have more details on how it breaks?

@mgorny
Copy link
Member

mgorny commented May 25, 2025

Not really — I've just tried building the latest versions (as of 8d374f1). The most recent snapshot (21.0.0_pre20250523) should also be affected, but it's a bit out of date due to other regressions. My first guess is that it happens only with GCC, but I haven't tried Clang yet.

@mrkajetanp
Copy link
Contributor Author

mrkajetanp commented May 27, 2025

Ah right I see, it happens for me only on a gcc standalone flang-rt build. Running check-flang-rt within a full llvm build works fine regardless of the compiler. Standalone clang works fine too. That's pretty odd, I'll try to figure out where the problem is.

@mrkajetanp
Copy link
Contributor Author

The problem is that clang is more forgiving in that it will generate the default template instantiation even if you don't explicitly ask for it, whereas gcc does not and it then errors out when you try to use it. This fixes it for me:
#141619

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants