Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 938486

Summary: dev-qt/qt-creator-14.0.1 - [gcc-15] /.../sol.hpp: error: class sol::optional<T&> has no member named construct [-Wtemplate-body]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: blackteahamburger, ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTCREATORBUG-31517
See Also: https://bugs.gentoo.org/show_bug.cgi?id=936924
https://bugs.gentoo.org/show_bug.cgi?id=937600
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 932474    
Attachments: emerge-info.txt
dev-qt:qt-creator-14.0.1:20240824-193412.log.xz
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-08-25 08:32:03 UTC
too long lines were shrinked:

[1858/3319] /usr/bin/x86_64-pc-linux-gnu-g++ -DEXTENSIONSYSTEM_WITH_TESTOPTION -DLUA_AVAILABLE -DLUA_LIBRARY -DLUA_USE_LINUX -DLua_EXPORTS -DNANOTRACE_ENABLED -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQ
FAILED: src/plugins/lua/CMakeFiles/Lua.dir/bindings/async.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DEXTENSIONSYSTEM_WITH_TESTOPTION -DLUA_AVAILABLE -DLUA_LIBRARY -DLUA_USE_LINUX -DLua_EXPORTS -DNANOTRACE_ENABLED -DQT_CONCURRENT_LIB -DQT_CORE5COMPAT_LIB -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO
In file included from /var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/plugins/lua/bindings/../luaengine.h:15,
                 from /var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/plugins/lua/bindings/async.cpp:4:
/var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/libs/3rdparty/sol2/include/sol/sol.hpp: In member function T& sol::optional<T&>::emplace(Args&& ...):
/var/tmp/portage/dev-qt/qt-creator-14.0.1/work/qt-creator-opensource-src-14.0.1/src/libs/3rdparty/sol2/include/sol/sol.hpp:6821:31: error: class sol::optional<T&> has no member named construct [-Wtemplate-body]
 6821 |                         this->construct(std::forward<Args>(args)...);
      |                               ^~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened-20240821-124009

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.5
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.80.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.12_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.422_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
  (none found)
go version go1.23.0 linux/amd64

  HEAD of ::gentoo
commit 9e8b1d9817e4e8ab80685a4ec4056a22f0a0bfa7
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Aug 24 17:33:58 2024 +0000

    2024-08-24 17:33:57 UTC

emerge -qpvO =dev-qt/qt-creator-14.0.1
[ebuild  N    ] dev-qt/qt-creator-14.0.1  USE="clang help svg tracing -designer -doc -keyring -plugin-dev -qmldesigner -serialterminal -test -webengine" LLVM_SLOT="18 -15 -16 -17"
Comment 1 Toralf Förster gentoo-dev 2024-08-25 08:32:04 UTC
Created attachment 901192 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-08-25 08:32:05 UTC
Created attachment 901193 [details]
dev-qt:qt-creator-14.0.1:20240824-193412.log.xz
Comment 3 Toralf Förster gentoo-dev 2024-08-25 08:32:06 UTC
Created attachment 901194 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-08-25 08:32:07 UTC
Created attachment 901195 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-08-25 08:32:08 UTC
Created attachment 901196 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-08-25 08:32:09 UTC
Created attachment 901197 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-08-25 08:32:10 UTC
Created attachment 901198 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-08-25 08:32:11 UTC
Created attachment 901199 [details]
temp.tar.xz
Comment 9 Ionen Wolkens gentoo-dev 2024-09-04 08:01:54 UTC
Just noticed the patch in bug #937600 already has the fix for this bit.
Comment 10 Larry the Git Cow gentoo-dev 2024-09-04 10:21:13 UTC
The bug has been closed via the following commit(s):

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

commit 4864940397a0b5808598d468d63605eb2e0217b1
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-09-04 07:57:56 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-09-04 10:20:54 +0000

    dev-qt/qt-creator: partially fix build with clang19 and gcc15
    
    other.resetter bit with USE=qmldesigner wrt bug #937600 comment #4
    still need attention, but adding what we have so far esp. given
    qmldesigner is off by default and has limited impact.
    
    Bug: https://bugs.gentoo.org/937600
    Closes: https://bugs.gentoo.org/938486
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../files/qt-creator-14.0.1-clang19.patch          | 24 ++++++++++++++++++++++
 .../qt-creator-14.0.1-sol2-clang19-gcc15.patch     | 18 ++++++++++++++++
 dev-qt/qt-creator/qt-creator-14.0.1.ebuild         |  2 ++
 3 files changed, 44 insertions(+)
Comment 11 Blacktea Hamburger 2024-09-16 11:24:42 UTC
This has been fixed by upstream: https://codereview.qt-project.org/c/qt-creator/qt-creator/+/587620
Comment 12 Ionen Wolkens gentoo-dev 2024-09-16 12:11:25 UTC
(In reply to Blacktea Hamburger from comment #11)
> This has been fixed by upstream:
> https://codereview.qt-project.org/c/qt-creator/qt-creator/+/587620
Yes, the patch we use is a backport and has this link already in it.