Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922435 - dev-util/spirv-llvm-translator-17.0.0 - /.../SPIRVNameMapEnum.h: error: CapabilityLongConstantCompositeINTEL was not declared in this scope
Summary: dev-util/spirv-llvm-translator-17.0.0 - /.../SPIRVNameMapEnum.h: error: Capab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL: https://github.com/KhronosGroup/SPIRV...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-01-18 18:15 UTC by Toralf Förster
Modified: 2024-01-21 13:38 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.54 KB, text/plain)
2024-01-18 18:15 UTC, Toralf Förster
Details
dev-util:spirv-llvm-translator-17.0.0:20240118-132947.log (dev-util:spirv-llvm-translator-17.0.0:20240118-132947.log,37.44 KB, text/plain)
2024-01-18 18:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,14.35 KB, text/plain)
2024-01-18 18:15 UTC, Toralf Förster
Details
environment (environment,102.96 KB, text/plain)
2024-01-18 18:15 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,964 bytes, application/x-xz)
2024-01-18 18:15 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,16.16 KB, application/x-xz)
2024-01-18 18:15 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,44.62 KB, text/plain)
2024-01-18 18:15 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.50 KB, application/x-xz)
2024-01-18 18:15 UTC, Toralf Förster
Details
backported patch (922435.patch,9.10 KB, patch)
2024-01-19 16:10 UTC, Kostadin Shishmanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-18 18:15:30 UTC
too long lines were shrinked:

/usr/bin/x86_64-pc-linux-gnu-g++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/17/include -I/var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/include -I/usr/include/spirv/include -I/var/tmp/portage/dev-util/spirv-llvm-tra
In file included from /var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/lib/SPIRV/SPIRVInternal.h:45,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/lib/SPIRV/OCLUtil.h:42,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/lib/SPIRV/OCLToSPIRV.h:43,
                 from /var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/lib/SPIRV/OCLToSPIRV.cpp:41:
/var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h: In member function void SPIRV::SPIRVMap<Ty1, Ty2, Identifier>::init() [with Ty1 = spv::Capability; Ty2 = std::__cxx11::basic_string<char>; Identifier = void]:
/var/tmp/portage/dev-util/spirv-llvm-translator-17.0.0/work/SPIRV-LLVM-Translator-17.0.0/lib/SPIRV/libSPIRV/SPIRVNameMapEnum.h:613:7: error: CapabilityLongConstantCompositeINTEL was not declared in this scope
  613 |   add(CapabilityLongConstantCompositeINTEL, "LongConstantCompositeINTEL");
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd_merged_usr-20240118-042011

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
php cli (if any):

  HEAD of ::gentoo
commit 66830eb803f1eca2bc1a951b523e3aa23fdc8302
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jan 18 03:48:22 2024 +0000

    2024-01-18 03:48:21 UTC

emerge -qpvO dev-util/spirv-llvm-translator
[ebuild  N    ] dev-util/spirv-llvm-translator-17.0.0  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2024-01-18 18:15:31 UTC
Created attachment 882549 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-18 18:15:32 UTC
Created attachment 882550 [details]
dev-util:spirv-llvm-translator-17.0.0:20240118-132947.log
Comment 3 Toralf Förster gentoo-dev 2024-01-18 18:15:33 UTC
Created attachment 882551 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-01-18 18:15:34 UTC
Created attachment 882552 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-18 18:15:35 UTC
Created attachment 882553 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-18 18:15:36 UTC
Created attachment 882554 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-18 18:15:37 UTC
Created attachment 882555 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-01-18 18:15:38 UTC
Created attachment 882556 [details]
temp.tar.xz
Comment 9 Chicago 2024-01-19 07:06:31 UTC
Hi Toralf,

    I ran into this one too and found this upstream PR with some hints about a commit for the dev-util/spirv-headers package.

    https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2258

    No chance for me to test this until after I rest.

Best Regards,
-Chicago
Comment 10 Kostadin Shishmanov 2024-01-19 16:10:50 UTC
Created attachment 882632 [details, diff]
backported patch
Comment 11 Chicago 2024-01-19 19:56:34 UTC
Thanks Kostadin!

 * Applying user patches from /etc/portage/patches ...
 * Applying LongCompositesINTEL-capability.patch ...                                                                                                                           [ ok ]
 * User patches applied.
 * 

>>> Completed (1 of 1) dev-util/spirv-llvm-translator-17.0.0::gentoo
Comment 12 Larry the Git Cow gentoo-dev 2024-01-20 21:13:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f14418d3a1e63ad1eca29cb8a2ad0cb165987a06

commit f14418d3a1e63ad1eca29cb8a2ad0cb165987a06
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2024-01-20 21:07:01 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2024-01-20 21:13:16 +0000

    dev-util/spirv-llvm-translator: support new spirv headers
    
    Closes: https://bugs.gentoo.org/922435
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 ...v-llvm-translator-17.0.0-intel-capability.patch | 181 +++++++++++++++++++++
 ...uild => spirv-llvm-translator-17.0.0-r1.ebuild} |   4 +-
 2 files changed, 184 insertions(+), 1 deletion(-)
Comment 13 Ingo Brunberg 2024-01-21 10:45:38 UTC
You forgot to depend on >=spirv-headers-1.3.275
With spirv-headers-1.3.268 the build fails.
Comment 14 Conrad Kostecki gentoo-dev 2024-01-21 13:38:37 UTC
(In reply to Ingo Brunberg from comment #13)
> You forgot to depend on >=spirv-headers-1.3.275
> With spirv-headers-1.3.268 the build fails.

Whoops, indeed. Thanks!