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

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



Your message dated Mon, 03 Nov 2025 17:05:03 +0000
with message-id <E1vFxzL-00AKLT-2T@fasolo.debian.org>
and subject line Bug#1119960: fixed in rocprim 6.4.3-2
has caused the Debian Bug report #1119960,
regarding rocprim: FTBFS: /build/reproducible-path/rocprim-6.4.3/rocprim/include/rocprim/thread/thread_load.hpp:121:1: error: invalid operand for instruction
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1119960: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1119960
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: rocprim
Source-Version: 6.4.3-2
Done: Cordell Bloor <cgmb@debian.org>

We believe that the bug you reported is fixed in the latest version of
rocprim, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1119960@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cordell Bloor <cgmb@debian.org> (supplier of updated rocprim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 03 Nov 2025 01:38:06 -0700
Source: rocprim
Architecture: source
Version: 6.4.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian ROCm Team <debian-ai@lists.debian.org>
Changed-By: Cordell Bloor <cgmb@debian.org>
Closes: 1119960
Changes:
 rocprim (6.4.3-2) unstable; urgency=medium
 .
   * Add d/p/fix-asm-thread-load-store.patch to fix FTBFS when
     building rocprim test_thread_algos for gfx1100 (Closes: #1119960)
Checksums-Sha1:
 b8fd320823505cb621dc07e1f5656c79214a0735 2351 rocprim_6.4.3-2.dsc
 f6a5dfb4e344b2c17f125b0fccfa46d3d460a1d1 14420 rocprim_6.4.3-2.debian.tar.xz
 d9c9585ea56e99d1065cfbb257282c55b1e2dd4f 7959 rocprim_6.4.3-2_source.buildinfo
Checksums-Sha256:
 3902c0b713ccdcc665c235f33ce57b00f72690ad4ddcbd60226979229ce1a4b1 2351 rocprim_6.4.3-2.dsc
 478a73c6305cb1237a6176618a883a40c1ff03fe617faf8151d2ed6288821b15 14420 rocprim_6.4.3-2.debian.tar.xz
 97db819a317c690b55b3b7f982ea2a05a769254ac5fd7113e007890bd21d8a4b 7959 rocprim_6.4.3-2_source.buildinfo
Files:
 83f3effe60cfa09c3c73baefc0277ba8 2351 devel optional rocprim_6.4.3-2.dsc
 949a54ed771ab9c8ce97596d070a3c2b 14420 devel optional rocprim_6.4.3-2.debian.tar.xz
 6a00c8ba538ec8278062a6a3326ecb52 7959 devel optional rocprim_6.4.3-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEEDOBv45KqSPjSLkRx+e+O4MAhYw8FAmkI2ccQHGNnbWJAZGVi
aWFuLm9yZwAKCRD5747gwCFjDwO+D/477UU36PrXAxonoRqVQqZcO1TdOUK/XkRA
4vub1k6lXPqDJVJEZs0veKWlqlCq0QdcRQD1YAoz3NS+cQ7eKFzdo0Z4xoXPavm5
VzcfCZeTnvCIA36BmX97Bif2JJaegACYxPp9oHcjWvmj7rXKH7uRi4cW7F6ahlES
vZrygB8k8Y6PniY9Z1DrS0PrPnsRImJTH/Zqa9ZAfOLoLy0E+9W29y0WSl9Zeu+P
RMX9Rn/qDcXOVuVM3UQpfxceYVoMCONjPo05KlA6oPUilcfjfOwMdPv5l02Tf5e/
u1Yoe3WxxFRqtxkUoSx9boEs9ihKOXpNDjTUpyqD4XZ4m26OQm3A0/n16O+5jzd6
5Vr+KlpsloZFZXbQ16E9NVdLcsxHHcsZpXy3VBxcPnYPbppZ7f+wQDOEBd3b1/XA
UBrXgCM221Kabcrsgex8LHqS6v+0NVcYqL2KXCA2r0PIIRZLPDvpj35g0rhtmEi+
/G6/k2SdOzUhjH7a2/sdQ9MJsqGbGmeM4XaoMybAkN6SG5Bdh0E8RHD3/pxsC3jF
Rtym8MBF4s2BCXG2lvIhhwoYTwqEiXebvLkjpqAp636Oj4/doQ05OPcNnHpRIjDe
EIIXX1TX8Qd+IeSp1zLecIYnp6kT/MndSWoHg1rkzwzqoxzKAR69qyETi1P5++X2
bFWPpqMNjA==
=fWuU
-----END PGP SIGNATURE-----

Attachment: pgpWyALBITRbo.pgp
Description: PGP signature


--- End Message ---

Reply to: