Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937261 - dev-qt/qtshadertools-6.7.2: fails to build with gcc-15 (bundled glslang)
Summary: dev-qt/qtshadertools-6.7.2: fails to build with gcc-15 (bundled glslang)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-08-04 00:24 UTC by Sam James
Modified: 2024-08-04 17:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-04 00:24:58 UTC
```
/usr/bin/x86_64-pc-linux-gnu-g++ -DGLSLANG_OSINCLUDE_UNIX -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE>[...]
In file included from /var/tmp/portage/dev-qt/qtshadertools-6.7.2/work/qtshadertools-everywhere-src-6.7.2/src/3rdparty/glslang/SPIRV/SpvPostProcess.cpp:46:
/var/tmp/portage/dev-qt/qtshadertools-6.7.2/work/qtshadertools-everywhere-src-6.7.2/src/3rdparty/glslang/SPIRV/SpvBuilder.h:238:30: error: ‘uint32_t’ has not been declared
  238 |     Id makeDebugLexicalBlock(uint32_t line);
      |                              ^~~~~~~~
/var/tmp/portage/dev-qt/qtshadertools-6.7.2/work/qtshadertools-everywhere-src-6.7.2/src/3rdparty/glslang/SPIRV/SpvBuilder.h:428:21: error: ‘uint32_t’ has not been declared
  428 |     void enterScope(uint32_t line);
      |                     ^~~~~~~~
```

See https://github.com/KhronosGroup/glslang/pull/3684 and f17a695c19ac2e1c176f6f2a4af91305bc640787 in ::gentoo.
Comment 1 Ionen Wolkens gentoo-dev 2024-08-04 16:43:26 UTC
Hm, can't reproduce with gcc-15.0.0_pre20240728. Do I need 15.0.0.9999 seeing how recent the PR is? Or could be other factors that cause it to be side-included too.

Either way, the header is indeed missing so no harm in backporting.

Had a quick look for unbundling but that doesn't seem viable (not to mention system glslang often gives more headaches than it solves).
Comment 2 Larry the Git Cow gentoo-dev 2024-08-04 17:04:27 UTC
The bug has been closed via the following commit(s):

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

commit 9b07a9098003ac55adc8a611b9aa40a880a48854
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-08-04 16:54:25 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-08-04 17:03:08 +0000

    dev-qt/qtshadertools: fix build with gcc15
    
    Closes: https://bugs.gentoo.org/937261
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtshadertools/files/qtshadertools-6.7.2-gcc15.patch | 8 ++++++++
 dev-qt/qtshadertools/qtshadertools-6.7.2.ebuild            | 4 ++++
 dev-qt/qtshadertools/qtshadertools-6.7.9999.ebuild         | 4 ++++
 dev-qt/qtshadertools/qtshadertools-6.8.9999.ebuild         | 4 ++++
 dev-qt/qtshadertools/qtshadertools-6.9999.ebuild           | 4 ++++
 5 files changed, 24 insertions(+)