[From nobody Tue May 26 11:07:13 2026
Received: (at submit) by bugs.debian.org; 8 Oct 2022 17:12:02 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.1 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,HAS_PACKAGE,
 SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 149; neutral, 40; spammy,
 1. spammytokens:0.946-+--H*r:bugs.debian.org
 hammytokens:0.000-+--sk:llvm-to, 0.000-+--sk:llvmto,
 0.000-+--sk:salsa.d, 0.000-+--sk:salsad, 0.000-+--UD:salsa.debian.org
Return-path: &lt;savoury@savos.tech&gt;
Received: from mail-4321.protonmail.ch ([185.70.43.21]:49337)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;savoury@savos.tech&gt;)
 id 1ohDMo-002BYP-Kr
 for submit@bugs.debian.org; Sat, 08 Oct 2022 17:12:02 +0000
Date: Sat, 08 Oct 2022 17:03:03 +0000
Authentication-Results: mail-4321.protonmail.ch;
 dkim=pass (1024-bit key) header.d=savos.tech header.i=@savos.tech
 header.b=&quot;a8g05FS8&quot;
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savos.tech;
 s=protonmail; t=1665248588; x=1665507788;
 bh=316X1t3i+C6KK/F2NfN6nXUKCefGqkMm+drNyEQ+SZM=;
 h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID;
 b=a8g05FS8V2oHRB6cDiUXNNh1QXPgEAgF4qNlsZ8GbDVLpwJ1YHkcPSFFQkhaF5RcP
 i+jIxxhBQGzGAhAKGIj7B0BGfFdXd+f57Gqg/7tYnwnipHtBGdV8WTZcW3u8VWpLWF
 FBAGkycamzRep0EPsXp71cvwGjFEXQsDvcGkdZcE=
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
From: Rob Savoury &lt;savoury@savos.tech&gt;
Subject: llvm-toolchain-14: Missing SPIR-V outputs in libclc-14
Message-ID: &lt;61ee42e6-29b2-cf41-4d53-089a2535c262@savos.tech&gt;
Feedback-ID: 19970360:user:proton
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Greylist: delayed 522 seconds by postgrey-1.36 at buxtehude;
 Sat, 08 Oct 2022 17:12:01 UTC
Delivered-To: submit@bugs.debian.org

Package: src:llvm-toolchain-14
Version: 1:14.0.6-3
Severity: normal

Dear Maintainer,

The SPIR-V outputs have been missing from libclc-14 binary package for
a while, due renaming of the llvm-spirv binary by more recent versions
of src:spirv-llvm-translator{,-14} packages. The LLVM major version in
the build is now appended to the llvm-spirv binary name so this means
with src:spirv-llvm-translator &gt;=3D 13.0.0-4 llvm-spirv -&gt; llvm-spirv-13
whereas with src:spirv-llvm-translator-14 llvm-spirv -&gt; llvm-spirv-14.

This renaming causes debian/rules in src:llvm-toolchain-14 to not set
LLVM_SPIRV_INSTALLED=3Dyes as is clearly intended when the llvm-spirv
binary package (or llvm-spirv-14 package for newer LLVM 14 version) is
available as a build dep. Thus resulting in missing SPIR-V outputs.

In src:llvm-toolchain-15 this is already handled by two recent commits
[1] [2] but perhaps it would be good to also include a similar update
to debian/rules in src:llvm-toolchain-14? So that LLVM_SPIRV_INSTALLED
is set correctly resulting in SPIR-V outputs being built and included.

Note that the bug also affects recent src:llvm-toolchain-13 1:13.0.1-7
as found in testing/unstable due those building with recent versions
of spirv-llvm-translator. Though it does not affect the current stable
release (Bullseye) due to src:llvm-toolchain-13 being built against
older binaries from src:spirv-llvm-translator 11.0.0-1 prior to the
llvm-spirv renaming (which happened from src:spirv-llvm-translator-12
12.0.0-3 and src:spirv-llvm-translator 13.0.0-4 onwards).

[1] https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/b766a30
[2] https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/6cddfd8
]