#1116519 spirv-llvm-translator-21: disappearing symbols with lto

#1116519#5
Date:
2025-09-28 08:22:15 UTC
From:
To:
Source: spirv-llvm-translator-21
Version: 21.1.0-2
tags: patch

Hello, looks like two symbols are disappearing on Ubuntu, on amd64/arm64/ppc64el/s390x, while they are ok on armhf and riscv64.
My wild guess is that they disappear with lto enabled.

Patch attached

diff -Nru spirv-llvm-translator-21-21.1.0/debian/changelog spirv-llvm-translator-21-21.1.0/debian/changelog
--- spirv-llvm-translator-21-21.1.0/debian/changelog    2025-09-25 08:04:36.000000000 +0200
+++ spirv-llvm-translator-21-21.1.0/debian/changelog    2025-09-28 10:16:57.000000000 +0200
@@ -1,3 +1,9 @@
+spirv-llvm-translator-21 (21.1.0-2.1) unstable; urgency=medium
+
+  * Fixup two missing symbols (Closes: -1)
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org>  Sun, 28 Sep 2025 10:16:57 +0200
+
 spirv-llvm-translator-21 (21.1.0-2) unstable; urgency=medium
 
   * Upload to unstable.
diff -Nru spirv-llvm-translator-21-21.1.0/debian/libllvmspirvlib21.1.symbols spirv-llvm-translator-21-21.1.0/debian/libllvmspirvlib21.1.symbols
--- spirv-llvm-translator-21-21.1.0/debian/libllvmspirvlib21.1.symbols    2025-09-25 08:04:03.000000000 +0200
+++ spirv-llvm-translator-21-21.1.0/debian/libllvmspirvlib21.1.symbols    2025-09-28 10:11:42.000000000 +0200
@@ -62,8 +62,8 @@
  (optional=templinst|subst|arch=any-i386 ppc64 ppc64el)_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_{size_t}PKS8_PcE{size_t}SB_z@Base 18.1.1
  (optional=templinst|subst|arch=loong64 mips64el riscv64 sparc64)_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_{size_t}PKS8_PvE{size_t}SB_z@Base 18.1.1
  (optional=templinst|subst|arch=arm64 armel armhf)_ZN9__gnu_cxx12__to_xstringINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEcEET_PFiPT0_{size_t}PKS8_St9__va_listE{size_t}SB_z@Base 18.1.1
- _ZNK4llvm4Type20getStructElementTypeEj@Base 21
- _ZNK4llvm4Type22getPointerAddressSpaceEv@Base 21
+ (optional)_ZNK4llvm4Type20getStructElementTypeEj@Base 21
+ (optional)_ZNK4llvm4Type22getPointerAddressSpaceEv@Base 21
  _ZNK5SPIRV14TranslatorOpts17validateFnVarOptsEv@Base 21
  _ZNK5SPIRV14TranslatorOpts25isUnknownIntrinsicAllowedEPN4llvm13IntrinsicInstE@Base 13
  _ZNK5SPIRV14TranslatorOpts29getAllowedSPIRVExtensionNamesB5cxx11ERSt8functionIFbNS_11ExtensionIDEEE@Base 20


thanks for marking them as optional

Gianfranco

#1116519#10
Date:
2025-09-29 09:52:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
spirv-llvm-translator-21, 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 1116519@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated spirv-llvm-translator-21 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)
Format: 1.8
Date: Mon, 29 Sep 2025 11:13:05 +0200
Source: spirv-llvm-translator-21
Architecture: source
Version: 21.1.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenCL team <pkg-opencl-devel@lists.alioth.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 1116519
Changes:
 spirv-llvm-translator-21 (21.1.0-3) unstable; urgency=medium
 .
   * Merge changes from spirv-llvm-translator-20 20.1.6-1.
   * Update .symbols control file for gcc-15 builds.
   * Mark symbols disappearing with LTO.  (Closes: #1116519)
Checksums-Sha1:
 1ccc201bce7d4e1aaaaa09a29184fda32251a40b 2604 spirv-llvm-translator-21_21.1.0-3.dsc
 1f3b2d3015230c42a7b9cb6a0e590f706813477c 13712 spirv-llvm-translator-21_21.1.0-3.debian.tar.xz
 62b28f7cd455d666a0944e3fece0e02db965ef14 7823 spirv-llvm-translator-21_21.1.0-3_source.buildinfo
Checksums-Sha256:
 c52f52a1642229b85a327aef4ad251372dab2841a4b3212f35fb6723d2f95fbe 2604 spirv-llvm-translator-21_21.1.0-3.dsc
 8f831b748c8b6bbe866164e0d8b7249063e23bc5f25452d04e14a820bafed2dc 13712 spirv-llvm-translator-21_21.1.0-3.debian.tar.xz
 504a58d90e5141b94177d232a69ee830e473fd2dea91d33bc023e04f9a217bb2 7823 spirv-llvm-translator-21_21.1.0-3_source.buildinfo
Files:
 b69bd98281076904350b9acb93b18052 2604 libdevel optional spirv-llvm-translator-21_21.1.0-3.dsc
 08799e4249808bebe515533c1436c690 13712 libdevel optional spirv-llvm-translator-21_21.1.0-3.debian.tar.xz
 8a711d476398a578020087ed04f3d5c2 7823 libdevel optional spirv-llvm-translator-21_21.1.0-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCgAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmjaUZ0QHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCPMhD/93oofn7VBkFhO5ondy8zRlbgC2aNZ7TEJ3
RLhF0Bnbfi41tjtiuL9w+lwBH27k+MhQecN3Oaegiww+hRzpPVGCzE9esaWq2rfj
S8OHQNhF05NELuxFXrn/R4rcBbqn86AzZvO1Nz37O2+HUEqpYEGFYMFq+em2B6Sy
vzsQLu9Cug5XnCar1+2yxy0i4bQ0S1uuhGFW/hHFfSsZJDa2joDI+ZKYjb5J8Rg/
XlkM59VwQr4rIWpRjCyD0jdwtiyyIMkSFhHlYX6Hlbpta/qXor1IYxsLOIU/GXR3
hVTZO0fMpu4mpqrRjUGxMoBTqB7wyT9LAeBtNOLWbBNYROfgNeCNaPorgsRuFaao
8X1DFlgp99ATHcY8ag39jFAVVlY+pdYqcqq1WOOmy3mZyJmK48QHQWecoejV1XVg
3apFOUCUDgajeRO/OYmtsAUTHsKTWwQcI3Ipt2aVo5lxPiz7O/ssxn7d2q31LzDH
n8Ov7qzjLrXB9NuUkzcd6j41UO3V15ij+r2Zr/tUqphiCuNEPR7agE3XFlE7guv3
XfO0cz9RRrQQcGg3Wa8ROE8DWl18r/mOxgYWlX5NcztookpKhK+wtjUaP+4vvqFd
WO3SfGkneKS+10cgnf7n9h+hQNlzBTuh2lXzw7QbhI+XWyCXzvs3YGZJXDtesbow
fDWmIbK4BA==
=3oOz
-----END PGP SIGNATURE-----