[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1119960: rocprim: FTBFS: /build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:121:1: error: invalid operand for instruction



Source: rocprim
Version: 6.4.3-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

rocprim FTBFS on the buildds:

/usr/include/gtest/internal/gtest-internal.h:719:9: note: in instantiation of member function 'testing::internal::TypeParameterizedTest<RocprimThreadOperationTests, testing::internal::TemplateSel<RocprimThreadOperationTests_Load_Test>, testing::internal::Types<params<unsigned short>, params<unsigned int>, params<unsigned long>, params<int>, params<__half>, params<hip_bfloat16>, params<float>, params<double>, params<test_utils::custom_test_type<unsigned long>>, params<test_utils::custom_test_type<double>>>>::Register' requested here
/build/reproducible-path/rocprim-6.4.3/test/rocprim/test_thread_algos.cpp:80:1: note: in instantiation of member function 'testing::internal::TypeParameterizedTest<RocprimThreadOperationTests, testing::internal::TemplateSel<RocprimThreadOperationTests_Load_Test>, testing::internal::Types<params<unsigned char>, params<unsigned short>, params<unsigned int>, params<unsigned long>, params<int>, params<__half>, params<hip_bfloat16>, params<float>, params<double>, params<test_utils::custom_test_type<unsigned long>>, params<test_utils::custom_test_type<double>>>>::Register' requested here
   80 | TYPED_TEST(RocprimThreadOperationTests, Load)
      | ^
/usr/include/gtest/gtest-typed-test.h:214:27: note: expanded from macro 'TYPED_TEST'
  214 |               CaseName)>::Register("",                                        \
      |                           ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:66:22: note: explicitly cast the pointer to silence this warning
   66 |     __builtin_memcpy(&retval, ptr, sizeof(T));
      |                      ^
      |                      (void*)
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:121:1: error: invalid operand for instruction
  121 | ROCPRIM_ASM_THREAD_LOAD_GROUP(load_cg, "glc slc", "s_waitcnt", "");
      | ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:98:5: note: expanded from macro 'ROCPRIM_ASM_THREAD_LOAD_GROUP'
   98 |     ROCPRIM_ASM_THREAD_LOAD(cache_modifier, llvm_cache_modifier, uint16_t, uint16_t, flat_load_ushort, v, wait_inst, wait_cmd);  \
      |     ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:86:26: note: expanded from macro 'ROCPRIM_ASM_THREAD_LOAD'
   86 |             asm volatile(#asm_operator " %0, %1 " llvm_cache_modifier "\n\t" wait_inst wait_cmd \
      |                          ^
<scratch space>:680:1: note: expanded from here
  680 | "flat_load_ushort"
      | ^
<inline asm>:1:19: note: instantiated into assembly here
    1 |         flat_load_ushort v0.l, v[0:1] glc slc
      |                          ^
In file included from /build/reproducible-path/rocprim-6.4.3/test/rocprim/test_thread_algos.cpp:30:
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:121:1: error: invalid operand for instruction
  121 | ROCPRIM_ASM_THREAD_LOAD_GROUP(load_cg, "glc slc", "s_waitcnt", "");
      | ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:97:5: note: expanded from macro 'ROCPRIM_ASM_THREAD_LOAD_GROUP'
   97 |     ROCPRIM_ASM_THREAD_LOAD(cache_modifier, llvm_cache_modifier, uint8_t, uint16_t, flat_load_ubyte, v, wait_inst, wait_cmd);    \
      |     ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:86:26: note: expanded from macro 'ROCPRIM_ASM_THREAD_LOAD'
   86 |             asm volatile(#asm_operator " %0, %1 " llvm_cache_modifier "\n\t" wait_inst wait_cmd \
      |                          ^
<scratch space>:678:1: note: expanded from here
  678 | "flat_load_ubyte"
      | ^
<inline asm>:1:18: note: instantiated into assembly here
    1 |         flat_load_ubyte v0.l, v[0:1] glc slc
      |                         ^
In file included from /build/reproducible-path/rocprim-6.4.3/test/rocprim/test_thread_algos.cpp:31:
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_store.hpp:122:1: error: invalid operand for instruction
  122 | ROCPRIM_ASM_THREAD_STORE_GROUP(store_wb, "glc", "s_waitcnt", "");
      | ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_store.hpp:100:5: note: expanded from macro 'ROCPRIM_ASM_THREAD_STORE_GROUP'
  100 |     ROCPRIM_ASM_THREAD_STORE(cache_modifier, llvm_cache_modifier, uint16_t, uint16_t, flat_store_short, v, wait_inst, wait_cmd);   \
      |     ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_store.hpp:88:26: note: expanded from macro 'ROCPRIM_ASM_THREAD_STORE'
   88 |             asm volatile(#asm_operator " %0, %1 " llvm_cache_modifier "\n\t" wait_inst wait_cmd \
      |                          ^
<scratch space>:74:1: note: expanded from here
   74 | "flat_store_short"
      | ^
<inline asm>:1:27: note: instantiated into assembly here
    1 |         flat_store_short v[1:2], v0.l glc
      |                                  ^
In file included from /build/reproducible-path/rocprim-6.4.3/test/rocprim/test_thread_algos.cpp:31:
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_store.hpp:122:1: error: invalid operand for instruction
  122 | ROCPRIM_ASM_THREAD_STORE_GROUP(store_wb, "glc", "s_waitcnt", "");
      | ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_store.hpp:99:5: note: expanded from macro 'ROCPRIM_ASM_THREAD_STORE_GROUP'
   99 |     ROCPRIM_ASM_THREAD_STORE(cache_modifier, llvm_cache_modifier, uint8_t, uint16_t, flat_store_byte, v, wait_inst, wait_cmd);     \
      |     ^
/build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_store.hpp:88:26: note: expanded from macro 'ROCPRIM_ASM_THREAD_STORE'
   88 |             asm volatile(#asm_operator " %0, %1 " llvm_cache_modifier "\n\t" wait_inst wait_cmd \
      |                          ^
<scratch space>:72:1: note: expanded from here
   72 | "flat_store_byte"
      | ^
<inline asm>:1:26: note: instantiated into assembly here
    1 |         flat_store_byte v[1:2], v0.l glc
      |                                 ^
17 warnings and 4 errors generated when compiling for gfx1100.
failed to execute:/usr/bin/clang++-21  --offload-arch=gfx803 --offload-arch=gfx900 --offload-arch=gfx906 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1010 --offload-arch=gfx1030 --offload-arch=gfx1100 --offload-arch=gfx1101 --offload-arch=gfx1102  -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/build/reproducible-path/rocprim-6.4.3/obj-x86_64-linux-gnu/rocprim/include -I/build/reproducible-path/rocprim-6.4.3/obj-x86_64-linux-gnu/rocprim/include/rocprim -I/build/reproducible-path/rocprim-6.4.3/rocprim/include -isystem /build/reproducible-path/rocprim-6.4.3/test -gz -DROCPRIM_NO_DEPRECATION_WARNINGS -g -O2 -ffile-prefix-map=/build/reproducible-path/rocprim-6.4.3=. -Xarch_host -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -Xarch_host -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=c++17 -DGTEST_HAS_PTHREAD=1 -x hip -MD -MT test/rocprim/CMakeFiles/test_thread_algos.dir/test_thread_algos.cpp.o -MF CMakeFiles/test_thread_algos.dir/test_thread_algos.cpp.o.d -o "CMakeFiles/test_thread_algos.dir/test_thread_algos.cpp.o" -c /build/reproducible-path/rocprim-6.4.3/test/rocprim/test_thread_algos.cpp
make[3]: *** [test/rocprim/CMakeFiles/test_thread_algos.dir/build.make:82: test/rocprim/CMakeFiles/test_thread_algos.dir/test_thread_algos.cpp.o] Error 1

See
https://buildd.debian.org/status/fetch.php?pkg=rocprim&arch=amd64&ver=6.4.3-1&stamp=1761954189&raw=0
for details.

Cheers
-- 
Sebastian Ramacher


Reply to: