[Pkg-opencl-devel] Bug#1145340: Bug #1145340: spirv-llvm-translator-22: FTBFS: error: line 67: NonSemantic.Shader.DebugInfo.200 DebugTypeBasic: expected operand Flags must be a result id of 32-bit unsigned OpConstant

Diederik de Haas didi.debian at cknow.org
Thu Oct 22 12:37:56 BST 2026


Control: tag -1 upstream, fixed-upstream, patch

On Mon Aug 24, 2026 at 11:50 AM CEST, Santiago Vila wrote:
> Package: src:spirv-llvm-translator-22
> Version: 22.1.0-1
> Severity: serious
> Tags: ftbfs forky sid
>
> During a rebuild of all packages in unstable, this package failed to build.
>
> Below you will find the last part of the build log (probably the most
> relevant part, but not necessarily). If required, the full build log
> is available here:
>
> https://people.debian.org/~sanvila/build-logs/202608/
>
> ...
> ********************
> Testing: 0  2  4  6  8  10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 
> ********************
> Failed Tests (8):
>   LLVM_SPIRV :: DebugInfo/NonSemantic/Shader200/DebugLineOnlyOnce.ll
>   LLVM_SPIRV :: DebugInfo/NonSemantic/Shader200/DebugLinePriority.spt
>   LLVM_SPIRV :: llvm-intrinsics/constrained-arithmetic.ll
>   LLVM_SPIRV :: llvm-intrinsics/lifetime.ll
>   LLVM_SPIRV :: transcoding/OpenCL/convert_functions.ll
>   LLVM_SPIRV :: transcoding/constant-vars.ll
>   LLVM_SPIRV :: transcoding/global_block.cl
>   LLVM_SPIRV :: type-scavenger/globals.ll

I 'mucked about' with this package locally and imported upstream version
22.1.7. It's very likely I didn't do it as expected by this package, but
I made it work. That resulted in 1 less failing test:

LLVM_SPIRV :: llvm-intrinsics/constrained-arithmetic.ll

But I noticed that upstream had various backported commits in their
llvm_release_220 branch *after* the 22.1.7 tag, so I grabbed that and added
that to ``debian/patches``. One of them was a(n officially) backported patch
of upstream PR 3568, so I updated/replaced ``3568.patch`` with that one.

When I build that, the build succeeded \o/.
Lintian did report an error wrt symbols:
  E: libllvmspirvlib22.1: symbols-file-contains-current-version-with-debian-revision on symbol \
  _ZN4llvm16getSpecConstInfoERSiRKN5SPIRV14TranslatorOptsERSt6vectorINS_15SpecConstInfoTyESaIS6_EE at Base \
  and 13 others (libLLVMSPIRVLib.so.22.1) [symbols]

I'll attach all the patches I've used; I'm sure one of the maintainers
can build a proper package from that ;-)

Cheers,
  Diederik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Backport-to-22-NFC-Allow-llvm-Value-derived-types-on.patch
Type: text/x-patch
Size: 1574 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Backport-to-22-Implement-extension-SPV_KHR_float_con.patch
Type: text/x-patch
Size: 79604 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Backport-to-22-Allow-FPFastMathMode-decoration-on-Op.patch
Type: text/x-patch
Size: 2768 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Backport-to-22-Emit-FPFastMathMode-for-Call-3912.patch
Type: text/x-patch
Size: 5656 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Backport-to-22-DebugInfo-Fix-NonSemantic-DebugTypeBa.patch
Type: text/x-patch
Size: 2302 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Backport-to-22-DebugInfo-Fix-NonSemantic-DebugLine-S.patch
Type: text/x-patch
Size: 4944 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Backport-to-22-DebugInfo-Fix-DebugFunction-Parent-wh.patch
Type: text/x-patch
Size: 3747 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Backport-to-22-Make-DebugLinePriority-test-valid-SPI.patch
Type: text/x-patch
Size: 1782 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Backport-to-22-Avoid-creating-ConstantComposites-wit.patch
Type: text/x-patch
Size: 3549 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Backport-to-22-Disable-spirv-val-in-some-tests-3584.patch
Type: text/x-patch
Size: 1817 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Backport-to-22-Disable-spirv-val-in-global_block-tes.patch
Type: text/x-patch
Size: 1724 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Backport-to-22-Fix-DebugTypeFunction-void-return-typ.patch
Type: text/x-patch
Size: 8230 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Backport-to-22-fix-a-spir-val-error-in-the-cooperati.patch
Type: text/x-patch
Size: 2086 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-opencl-devel/attachments/20261022/17a226de/attachment-0001.sig>


More information about the Pkg-opencl-devel mailing list