Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941147 - kde-apps/kio-extras-24.08: 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-apps/kio-extras-24.08: fails to build with sys-devel/gcc-15.0.0_pre202410...
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:05 UTC by tdr
Modified: 2024-10-13 22:51 UTC (History)
2 users (show)

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


Attachments
origin .ii file (kio_sftp.cpp.ii.orig.gz,936.51 KB, application/x-gzip)
2024-10-08 06:09 UTC, tdr
Details
reduced kio_sftp.cpp.ii (kio_sftp.cpp.ii,777 bytes, text/plain)
2024-10-09 21:47 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:05:44 UTC
/var/tmp/portage/kde-apps/kio-extras-24.08.1/work/kio-extras-24.08.1/sftp/kio_sftp.cpp:2442:89: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.cc:3306
 2442 |             const auto length = qMin<int>(MAX_XFER_BUF_SIZE, response.filedata.size() - offset);
      |                                                                                         ^~~~~~
0x55abf2c188a8 internal_error(char const*, ...)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/diagnostic-global-context.cc:517
0x55abf06bca61 fancy_abort(char const*, int, char const*)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/diagnostic.cc:1617
0x55abf01227bc gimplify_var_or_parm_decl
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:3306
0x55abf0ef69f0 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
0x55abf0ef68e6 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:18923
0x55abf0f02257 gimplify_modify_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:6533
0x55abf0ef6abe 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
0x55abf0f0929a gimplify_target_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7574
0x55abf0ef7ed4 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:18526
0x55abf0f02257 gimplify_modify_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:6533
0x55abf0ef6abe 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
0x55abf0ef9daa gimplify_stmt(tree_node**, gimple**)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7655
0x55abf0ef8275 gimplify_cleanup_point_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7393
0x55abf0ef8275 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
0x55abf0ef9daa gimplify_stmt(tree_node**, gimple**)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7655
0x55abf0ef727c gimplify_statement_list
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:2247
0x55abf0ef727c 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:18574
0x55abf0ef9daa gimplify_stmt(tree_node**, gimple**)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:7655
0x55abf0efa18b gimplify_bind_expr
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20241006/gcc-15-20241006/gcc/gimplify.cc:1642
0x55abf0ef8453 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:18324
Comment 1 tdr 2024-10-08 06:08:19 UTC
I have the attachment kio_sftp.cpp.ii.txt reducing (not yet done)


Fails with:
    g++ -march=sapphirerapids -mrtm -mshstk -pipe -std=gnu++20 -fexceptions -c kio_sftp.cpp.ii

Dose not fail if either -mrtm or -mshstk are removed
Comment 2 tdr 2024-10-08 06:09:05 UTC
Created attachment 905095 [details]
origin .ii file
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-08 06:55:09 UTC
It's likely the same underlying issue as bug 941148 (-> https://gcc.gnu.org/PR116914).
Comment 4 tdr 2024-10-09 21:47:51 UTC
Created attachment 905144 [details]
reduced kio_sftp.cpp.ii
Comment 5 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 6 Larry the Git Cow gentoo-dev 2024-10-13 22:51:25 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(+)