[flang-commits] [flang] [llvm] [flang][cuda] Use a reference for asyncObject (PR #138010)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Wed Apr 30 14:26:04 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `flang-rt,flang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/7991
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[31/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-offload-device-info
[32/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-omp-kernel-replay
[33/92] Generating /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/compile_commands.json
[34/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
102 | int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
280 | auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
2 errors generated.
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:55:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
55 | terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:156:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
156 | terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:263:27: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
263 | copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
3 errors generated.
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
Step 7 (build cmake config) failure: build cmake config (failure)
...
[31/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-offload-device-info
[32/92] Linking CXX executable /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/bin/llvm-omp-kernel-replay
[33/92] Generating /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/compile_commands.json
[34/92] Building LLVM bitcode Workshare.cpp-amdgpu.o
[35/92] Building LLVM bitcode Parallelism.cpp-amdgpu.o
[36/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/allocatable.cpp.o
[37/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/ISO_Fortran_binding.cpp.o
[38/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/copy.cpp.o
[39/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/connection.cpp.o
[40/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/assign.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:102:50: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
102 | int result{ReturnError(terminator, to.Allocate(kNoAsyncObject))};
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/assign.cpp:280:58: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
280 | auto stat{ReturnError(terminator, newFrom.Allocate(kNoAsyncObject))};
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
2 errors generated.
[41/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/internal-unit.cpp.o
[42/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
FAILED: flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./bin/clang++ --target=x86_64-unknown-linux-gnu -D_DEBUG -D_GLIBCXX_ASSERTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/../flang/include -I/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/runtimes/runtimes-bins/flang-rt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=gnu++17 -UNDEBUG -fno-lto -fno-exceptions -fno-rtti -funwind-tables -fno-asynchronous-unwind-tables -U_GLIBCXX_ASSERTIONS -U_LIBCPP_ENABLE_ASSERTIONS -MD -MT flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -MF flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o.d -o flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived.cpp.o -c /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:55:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
55 | terminator, allocDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:156:46: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
156 | terminator, cloneDesc.Allocate(kNoAsyncObject), errMsg, hasStat);
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/lib/runtime/derived.cpp:263:27: error: cannot initialize a parameter of type 'std::int64_t *' (aka 'long *') with an lvalue of type 'void *const'
263 | copy.Allocate(kNoAsyncObject) == CFI_SUCCESS);
| ^~~~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/flang-rt/include/flang-rt/runtime/descriptor.h:375:43: note: passing argument to parameter 'asyncObject' here
375 | RT_API_ATTRS int Allocate(std::int64_t *asyncObject);
| ^
3 errors generated.
[43/92] Building CXX object flang-rt/lib/runtime/CMakeFiles/flang_rt.runtime.static.dir/derived-api.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/138010
More information about the flang-commits
mailing list