Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934449 - kde-apps/spectacle-24.05.1 fails to build on GCC 12 with "error: ‘format’ is not a member of ‘std’"
Summary: kde-apps/spectacle-24.05.1 fails to build on GCC 12 with "error: ‘format’ is ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 06:43 UTC by David Zaslavsky
Modified: 2024-08-24 17:20 UTC (History)
1 user (show)

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


Attachments
build log (build.log,359.38 KB, text/x-log)
2024-06-17 06:43 UTC, David Zaslavsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Zaslavsky 2024-06-17 06:43:25 UTC
Created attachment 895944 [details]
build log

As in the title: kde-apps/spectacle-24.05.1 fails with "error: ‘format’ is not a member of ‘std’". After doing some research, I found that support for std::format() was added in GCC 13, but I was still using GCC 12 as my system compiler. It's no problem for me to upgrade, but since there are stable versions of GCC 11 and 12 in the tree and other people could be using them, I thought it'd a good idea to mark spectacle as incompatible with those.

FWIW the upstream commit that adds a call to std::format() is https://invent.kde.org/graphics/spectacle/-/commit/ee12b6eb0e6daabdf42d1cee761cb9041d3e6801. The first version to include that commit was 24.04.80. (Just in case this is useful for some reason)
Comment 1 James 2024-06-17 14:38:30 UTC
WOW!  Thank You!  
Definitely confirmed on my system! 
I'm still on GCC-12 because of Nvidia-cuda-toolkit...
Everything in the plasma 6 update would build except for this package...
emerge -ev kde-apps/spectacle didn't work...  Was thinking about an emerge -ev world...
Switched Compilers for 2 seconds and -finally- could finish that update!
Comment 2 Larry the Git Cow gentoo-dev 2024-06-17 16:04:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=c571d70393d3ecd052834a21ddd6bc3280cf4280

commit c571d70393d3ecd052834a21ddd6bc3280cf4280
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-06-17 16:02:57 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-06-17 16:02:57 +0000

    kde-apps/spectacle: Set KDE_GCC_MINIMAL=13
    
    Closes: https://bugs.gentoo.org/934449
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/spectacle/spectacle-24.05.49.9999.ebuild | 1 +
 kde-apps/spectacle/spectacle-9999.ebuild          | 1 +
 2 files changed, 2 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-06-17 17:13:06 UTC
The bug has been closed via the following commit(s):

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

commit 57a9bbaed1b7b80a771a5745c09f8a2b9972bb29
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-06-17 16:02:57 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-06-17 17:07:37 +0000

    kde-apps/spectacle: Set KDE_GCC_MINIMAL=13
    
    Closes: https://bugs.gentoo.org/934449
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/spectacle/spectacle-24.05.1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 4 Larry the Git Cow gentoo-dev 2024-07-05 12:52:35 UTC
The bug has been closed via the following commit(s):

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

commit 7dd98a4042d9da68f1d59a701d8ca9fc6a992e60
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2024-07-05 12:52:13 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2024-07-05 12:52:13 +0000

    kde-apps/spectacle: allow building with GCC 12
    
    Closes: https://bugs.gentoo.org/934449
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../spectacle/files/spectacle-24.05.2-gcc12.patch  | 30 ++++++++++++++++++++++
 kde-apps/spectacle/spectacle-24.05.2.ebuild        |  3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-08-24 17:19:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=f14e5d9eacd60d82cd402a67098a864df5e2229b

commit f14e5d9eacd60d82cd402a67098a864df5e2229b
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2024-07-05 12:52:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-24 17:19:27 +0000

    kde-apps/spectacle: allow building with GCC 12
    
    Closes: https://bugs.gentoo.org/934449
    Signed-off-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 kde-apps/spectacle/spectacle-24.08.49.9999.ebuild | 1 -
 kde-apps/spectacle/spectacle-9999.ebuild          | 1 -
 2 files changed, 2 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2024-08-24 17:20:50 UTC
The bug has been closed via the following commit(s):

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

commit fce4b67ffcb9fab9660653cafc55015b2b24bc10
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2024-07-05 12:52:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-24 17:20:37 +0000

    kde-apps/spectacle: allow building with GCC 12
    
    Closes: https://bugs.gentoo.org/934449
    Signed-off-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 kde-apps/spectacle/spectacle-24.08.0.ebuild | 1 -
 1 file changed, 1 deletion(-)