Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941148 - kde-plasma/plasma-nm-6.1.5: fails to build with sys-devel/gcc-15.0.0_pre20241006 (internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3306)
Summary: kde-plasma/plasma-nm-6.1.5: fails to build with sys-devel/gcc-15.0.0_pre20241...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-10-08 06:21 UTC by tdr
Modified: 2024-10-13 22:51 UTC (History)
2 users (show)

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


Attachments
reduced .ii (reduced-handler.cpp.ii,1000 bytes, text/plain)
2024-10-08 06:22 UTC, tdr
Details
reduced-handler.cpp.ii (reduced-handler.cpp.ii,1000 bytes, text/plain)
2024-10-08 06:23 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-10-08 06:21:40 UTC
sys-devel/gcc-15.0.0_pre2024100 fails compiling kde-plasma/plasma-nm-6.1.5 
     internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3306


Reproducible: Always

Steps to Reproduce:
 g++ -pipe -std=gnu++20  -c handler.cpp.ii  
Actual Results:  
/var/tmp/portage/kde-plasma/plasma-nm-6.1.5/work/plasma-nm-6.1.5/libs/handler.cpp:481:1: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3306
  481 | }
      | ^
0x5597cd4318a8 internal_error(char const*, ...)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/diagnostic-global-context.cc:517
0x5597caed5a61 fancy_abort(char const*, int, char const*)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/diagnostic.cc:1617
0x5597ca93b7bc gimplify_var_or_parm_decl
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:3306
0x5597cb70f9f0 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:18590
0x5597cb71cad1 gimplify_addr_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:6980
0x5597cb70fd0b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:18170
0x5597cb7160cd gimplify_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:19204
0x5597cb7160cd gimplify_arg(tree_node**, gimple**, unsigned int, bool)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:3792
0x5597cb7167fb gimplify_call_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:4077
0x5597cb711399 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:18092
0x5597cb7160cd gimplify_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:19204
0x5597cb7160cd gimplify_arg(tree_node**, gimple**, unsigned int, bool)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:3792
0x5597cb0c6f01 cp_gimplify_expr(tree_node**, gimple**, gimple**)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/cp/cp-gimplify.cc:858
0x5597cb70ee69 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:18029
0x5597cb71b257 gimplify_modify_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:6533
0x5597cb70fabe gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:18123
0x5597cb712daa gimplify_stmt(tree_node**, gimple**)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7655
0x5597cb711275 gimplify_cleanup_point_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7393
0x5597cb711275 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:18522
0x5597cb712daa gimplify_stmt(tree_node**, gimple**)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7655


fails with g++ -pipe -std=gnu++20  -c handler.cpp.ii

handler.cpp.ii.orig.gz  attached
reduced-handler.cpp.ii  attached
Comment 1 tdr 2024-10-08 06:22:44 UTC
Created attachment 905096 [details]
reduced .ii
Comment 2 tdr 2024-10-08 06:23:32 UTC
Created attachment 905097 [details]
reduced-handler.cpp.ii
Comment 3 tdr 2024-10-08 06:25:22 UTC
gzipped handler.cpp.ii.orig.gz was too large to attach
Comment 4 Larry the Git Cow gentoo-dev 2024-10-13 22:48:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b4a852b00ffc7c9436d15867d602c28837c97758

commit b4a852b00ffc7c9436d15867d602c28837c97758
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-13 22:47:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-13 22:47:21 +0000

    15.0.0: add two coro patches
    
    Bug: https://gcc.gnu.org/PR116506
    Bug: https://gcc.gnu.org/PR116914
    Closes: https://bugs.gentoo.org/941147
    Closes: https://bugs.gentoo.org/941148
    Signed-off-by: Sam James <sam@gentoo.org>

 15.0.0/gentoo/70_all_PR116506-coro.patch | 295 +++++++++++++++++++++++++++++++
 15.0.0/gentoo/71_all_PR116914-coro.patch |  51 ++++++
 15.0.0/gentoo/README.history             |   5 +
 3 files changed, 351 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2024-10-13 22:51:26 UTC
The bug has been closed via the following commit(s):

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

commit c687ee2abc73dc2884f6753271e5124028f6097a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-10-13 22:50:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-10-13 22:50:58 +0000

    sys-devel/gcc: add 15.0.0_pre20241013-r1
    
    This adds some unmerged upstream coroutine patches from Iain.
    
    Bug: https://gcc.gnu.org/PR116506
    Bug: https://gcc.gnu.org/PR116914
    Closes: https://bugs.gentoo.org/941147
    Closes: https://bugs.gentoo.org/941148
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                         |  1 +
 sys-devel/gcc/gcc-15.0.0_pre20241013-r1.ebuild | 53 ++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)