šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
6 messages
6 total messages Started by Aurelien Jarno Sat, 28 Nov 2026 14:30
Bug#1155662: amd-device-libs-21: Please consider switching to arch:all
#6570
Author: Aurelien Jarno
Date: Sat, 28 Nov 2026 14:30
14 lines
1858 bytes
Source: amd-device-libs-21
Version: 7.1.1+ds-1
Severity: wishlist

Hi,

amd-device-libs-21 contains LLVM IR bytecode, which does not depends on
the host architecture. Therefore the content of the package on all
architectures is the same for a given LLVM compiler version.

I therefore believe this package can be switched to arch:all.

Regards
Aurelien
Bug#1155662: amd-device-libs-21: Please consider switching to arch:all
#6585
Author: Cordell Bloor
Date: Sat, 28 Nov 2026 17:30
90 lines
6189 bytes
This is a multi-part message in MIME format.
--------------Bu4stmvQ0PkN6WjmvJfzYv4U
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

HiĀ Aurelien,

On 2026-11-28 08:22, Aurelien Jarno wrote:
> amd-device-libs-21 contains LLVM IR bytecode, which does not depends on
> the host architecture. Therefore the content of the package on all
> architectures is the same for a given LLVM compiler version.
>
> I therefore believe this package can be switched to arch:all.

An LLM review of amd-device-libs-23 noted the same [1], with the most 
convincing argument to me being:

    The comparable libclc-23, which also ships amdgcn bitcode, is
    Architecture: all with Multi-Arch: foreign (apt-cache).

There was a similar discussion a long time ago when the device-libs were 
first packaged. A cursory inspection of the binaries showed that the 
bitcode files had different hashes on different platforms. We never dug 
deeper to understand if the differences are meaningful.

I've opened an issue upstream to ask for clarification [2]. The LLVM 
developers I've spoke to privately have had cautious words about the 
suggestion, but did not deny that it could work. In the absence of a 
specific reason otherwise, I would be tempted to follow the lead of the 
Debian LLVM maintainers.

With that said, given that LLVM 21 and LLVM 22 have bugs filed for their 
removal, it's likely that amd-device-libs-21 will be short-lived. The 
actual switch to arch: all would probably happen for amd-device-libs-23.

Sincerely,
Cory Bloor

[1]: https://dfsg-new-queue.debian.org/reviews/amd-device-libs-23
[2]: https://github.com/ROCm/llvm-project/issues/5606

--------------Bu4stmvQ0PkN6WjmvJfzYv4U
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>HiĀ Aurelien,</p>
    <div class="moz-cite-prefix">On 2026-11-28 08:22, Aurelien Jarno
      wrote:</div>
    <blockquote type="cite"
cite="mid:179587574657.1026329.6431256606865295875.reportbug@ohm.local">
      <pre wrap="" class="moz-quote-pre">amd-device-libs-21 contains LLVM IR bytecode, which does not depends on
the host architecture. Therefore the content of the package on all
architectures is the same for a given LLVM compiler version.

I therefore believe this package can be switched to arch:all.</pre>
    </blockquote>
    <p>An LLM review of amd-device-libs-23 noted the same [1], with the
      most convincing argument to me being:</p>
    <blockquote>
      <p>The comparable libclc-23, which also ships amdgcn bitcode, is
        Architecture: all with Multi-Arch: foreign (apt-cache).</p>
    </blockquote>
    <p>There was a similar discussion a long time ago when the
      device-libs were first packaged. A cursory inspection of the
      binaries showed that the bitcode files had different hashes on
      different platforms. We never dug deeper to understand if the
      differences are meaningful.</p>
    <p>I've opened an issue upstream to ask for clarification [2]. The
      LLVM developers I've spoke to privately have had cautious words
      about the suggestion, but did not deny that it could work. In the
      absence of a specific reason otherwise, I would be tempted to
      follow the lead of the Debian LLVM maintainers.</p>
    <p>With that said, given that LLVM 21 and LLVM 22 have bugs filed
      for their removal, it's likely that amd-device-libs-21 will be
      short-lived. The actual switch to arch: all would probably happen
      for amd-device-libs-23.</p>
    <p>Sincerely,<br>
      Cory Bloor</p>
    <p>[1]: <a class="moz-txt-link-freetext" href="https://dfsg-new-queue.debian.org/reviews/amd-device-libs-23">https://dfsg-new-queue.debian.org/reviews/amd-device-libs-23</a><br>
      [2]: <a class="moz-txt-link-freetext" href="https://github.com/ROCm/llvm-project/issues/5606">https://github.com/ROCm/llvm-project/issues/5606</a></p>
  </body>
</html>

--------------Bu4stmvQ0PkN6WjmvJfzYv4U--
Bug#1155662: amd-device-libs-21: Please consider switching to arch:all
#6682
Author: Aurelien Jarno
Date: Sun, 29 Nov 2026 11:00
58 lines
4372 bytes
Hi Cordell,

On 2026-11-28 10:46, Cordell Bloor wrote:
> HiĀ Aurelien,
> 
> On 2026-11-28 08:22, Aurelien Jarno wrote:
> > amd-device-libs-21 contains LLVM IR bytecode, which does not depends on
> > the host architecture. Therefore the content of the package on all
> > architectures is the same for a given LLVM compiler version.
> > 
> > I therefore believe this package can be switched to arch:all.
> 
> An LLM review of amd-device-libs-23 noted the same [1], with the most
> convincing argument to me being:
> 
>    The comparable libclc-23, which also ships amdgcn bitcode, is
>    Architecture: all with Multi-Arch: foreign (apt-cache).
> 
> There was a similar discussion a long time ago when the device-libs were
> first packaged. A cursory inspection of the binaries showed that the bitcode
> files had different hashes on different platforms. We never dug deeper to
> understand if the differences are meaningful.

I have just done a check for amd-device-libs-23, the files are identical 
on all architectures where it got built, including hurd-amd64.

I have also check amd-device-libs-21, and the files are identical on all 
architectures except on riscv64, presumably because it got built with a 
different version of llvm-toolchain-21. I can try to rebuild it with the 
same version once the same llvm-toolchain-21 version is available.

> I've opened an issue upstream to ask for clarification [2]. The LLVM
> developers I've spoke to privately have had cautious words about the
> suggestion, but did not deny that it could work. In the absence of a
> specific reason otherwise, I would be tempted to follow the lead of the
> Debian LLVM maintainers.

Thanks!

> With that said, given that LLVM 21 and LLVM 22 have bugs filed for their
> removal, it's likely that amd-device-libs-21 will be short-lived. The actual
> switch to arch: all would probably happen for amd-device-libs-23.

Indeed, I have opened the bug against the first package I have found, 
and then I didn't feel it was useful for the discussion to open bugs for 
other similar packages.

Note however that I have heard that LLVM 21 will stay for forky in 
addition to the default version, but I don't remember when I read that.

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Bug#1155662: amd-device-libs-21: Please consider switching to arch:all
#6832
Author: Cordell Bloor
Date: Mon, 30 Nov 2026 06:00
69 lines
5244 bytes
This is a multi-part message in MIME format.
--------------ecC7vsWXgRCO0i7w1VEAEgn0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

HiĀ Aurelien,

On 2026-11-29 04:55, Aurelien Jarno wrote:
> I have just done a check for amd-device-libs-23, the files are identical
> on all architectures where it got built, including hurd-amd64.

That does not match my observations from the experimental version of the 
package. Did I do this wrong somehow?

    $ sha256sum
    amd64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc
    arm64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc
    afc6770ff2d0f27507ab814d9ad4f9da810334eba1ab5220a529deaf77cc6956
    amd64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc
    c6ce6b91f4fdacb0d55fc9a843d679a20585ab5762b20c79e6cbbec721a470ea
    arm64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc

I checked this on amd-device-libs-23_10.1+ds-1~exp1_amd64.deb and 
amd-device-libs-23_10.1+ds-1~exp1_arm64.deb before uploading to 
unstable. I'd redo my check the unstable builds, but packages.debian.org 
is returning 500 errors at the moment.

Sincerely,
Cory Bloor

--------------ecC7vsWXgRCO0i7w1VEAEgn0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>HiĀ Aurelien,</p>
    <div class="moz-cite-prefix">On 2026-11-29 04:55, Aurelien Jarno
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:awwEvrJYr07p-me2@aurel32.net">
      <pre class="moz-quote-pre" wrap="">I have just done a check for amd-device-libs-23, the files are identical 
on all architectures where it got built, including hurd-amd64.</pre>
    </blockquote>
    <p>That does not match my observations from the experimental version
      of the package. Did I do this wrong somehow?</p>
    <blockquote>
      <p><font face="monospace">$ sha256sum
amd64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc
arm64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc<br>
afc6770ff2d0f27507ab814d9ad4f9da810334eba1ab5220a529deaf77cc6956Ā 
amd64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc<br>
c6ce6b91f4fdacb0d55fc9a843d679a20585ab5762b20c79e6cbbec721a470eaĀ 
arm64/usr/lib/llvm-23/lib/clang/23/lib/amdgcn/bitcode/oclc_unsafe_math_off.bc</font></p>
    </blockquote>
    <p>I checked this on amd-device-libs-23_10.1+ds-1~exp1_amd64.deb and
      amd-device-libs-23_10.1+ds-1~exp1_arm64.deb before uploading to
      unstable. I'd redo my check the unstable builds, but
      packages.debian.org is returning 500 errors at the moment.</p>
    <p>Sincerely,<br>
      Cory Bloor</p>
  </body>
</html>

--------------ecC7vsWXgRCO0i7w1VEAEgn0--
Bug#1155662: amd-device-libs-21: Please consider switching to arch:all
#6834
Author: Cordell Bloor
Date: Mon, 30 Nov 2026 06:10
19 lines
2942 bytes
On 2026-11-29 23:51, Cordell Bloor wrote:
> That does not match my observations from the experimental version of 
> the package. Did I do this wrong somehow?

The answer is, yes. The amd64 version of the package was built before 
the rest for submission to NEW, so it's not too surprising it's different.

 Ā I think for everything besides the initial amd64 vs arm64 comparison 
where I manually reviewed the sha256sums of the individual files, for 
everything else I just checked if the sha256sums of the file list with 
sha256sums, and each package was different due to the architecture in 
the control file.

So, point taken. Given that they're identical, it seems safe to me. I 
will make the change next upload.

Sincerely,
Cory Bloor
Bug#1155662: amd-device-libs-21: Please consider switching to arch:all
#6840
Author: Cordell Bloor
Date: Mon, 30 Nov 2026 07:20
24 lines
3340 bytes
------2F116OGPZT7ZGONNVCLVBZB4VTSUZU
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

For reference, this is the previous discussion from the ROCm 4=2E5=2E2 time=
frame [1][2]=2E

[1]: https://lists=2Edebian=2Eorg/debian-ai/2022/02/msg00009=2Ehtml
[2]: https://github=2Ecom/ROCm/ROCm-Device-Libs/issues/79


------2F116OGPZT7ZGONNVCLVBZB4VTSUZU
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><body><div dir=3D"auto">For reference, this is the pre=
vious discussion from the ROCm 4=2E5=2E2 timeframe [1][2]=2E<br><br>[1]: <a=
 href=3D"https://lists=2Edebian=2Eorg/debian-ai/2022/02/msg00009=2Ehtml">ht=
tps://lists=2Edebian=2Eorg/debian-ai/2022/02/msg00009=2Ehtml</a><br>[2]: <a=
 href=3D"https://github=2Ecom/ROCm/ROCm-Device-Libs/issues/79">https://gith=
ub=2Ecom/ROCm/ROCm-Device-Libs/issues/79</a><br><br></div></body></html>
------2F116OGPZT7ZGONNVCLVBZB4VTSUZU--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads