Summary: | sys-devel/gcc-13: ICE with dev-lang/python-3.12.0_alpha6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109304 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117 | ||
Attachments: | unicodeobject.i.xz |
Description
Sam James
2023-03-27 18:02:18 UTC
Created attachment 859131 [details]
unicodeobject.i.xz
$ x86_64-pc-linux-gnu-gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -O3 -fwrapv -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none Werror=implicit-function-declaration -fvisibility=hidden -fprofile-generate -I./Include/internal -I. -I./Include -I/usr/include/ncursesw -fPIC -DPy_BUILD_CORE -c ./Objects/unicodeobject.i during GIMPLE pass: unswitch Objects/unicodeobject.c: In function ‘_PyUnicode_XStrip’: Objects/unicodeobject.c:11613:1: internal compiler error: in get_vrange, at value-range-storage.cc:87 11613 | _PyUnicode_XStrip(PyObject *self, int striptype, PyObject *sepobj) | ^~~~~~~~~~~~~~~~~ 0x828a6f vrange_storage::get_vrange(void const*, vrange&, tree_node*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/value-range-storage.cc:87 0x828a6f vrange_storage::get_vrange(void const*, vrange&, tree_node*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/value-range-storage.cc:72 0x828a6f range_info_get_range(tree_node*, vrange&) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssanames.cc:121 0x828a6f duplicate_ssa_name_range_info(tree_node*, tree_node*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssanames.cc:750 0x15ca96a duplicate_ssa_name_fn(function*, tree_node*, gimple*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssanames.cc:771 0x15ca96a duplicate_ssa_name(tree_node*, gimple*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssanames.h:115 0x15ca96a create_new_def_for(tree_node*, gimple*, tree_node**) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-into-ssa.cc:3091 0x15c96cd gimple_duplicate_bb /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-cfg.cc:6555 0x15c8cd5 duplicate_block(basic_block_def*, edge_def*, basic_block_def*, copy_bb_data*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/cfghooks.cc:1117 0x15c84d2 copy_bbs(basic_block_def**, unsigned int, basic_block_def**, edge_def**, unsigned int, edge_def**, loop*, basic_block_def*, bool) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/cfghooks.cc:1382 0x15fe319 duplicate_loop_body_to_header_edge(loop*, edge_def*, unsigned int, simple_bitmap_def*, edge_def*, vec<edge_def*, va_heap, vl_ptr>*, int) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/cfgloopmanip.cc:1235 0x15fdc4b gimple_duplicate_loop_body_to_header_edge(loop*, edge_def*, unsigned int, simple_bitmap_def*, edge_def*, vec<edge_def*, va_heap, vl_ptr>*, int) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssa-loop-manip.cc:861 0x175c533 loop_version(loop*, void*, basic_block_def**, profile_probability, profile_probability, profile_probability, profile_probability, bool) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/cfgloopmanip.cc:1630 0xcf6c7b tree_unswitch_loop /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssa-loop-unswitch.cc:1117 0xcf6c7b tree_unswitch_single_loop /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssa-loop-unswitch.cc:1055 0xcf85ed tree_ssa_unswitch_loops(function*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/tree-ssa-loop-unswitch.cc:385 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. $ x86_64-pc-linux-gnu-gcc -c ./unicodeobject.i -fprofile-generate -O3 -fno-semantic-interposition -fPIC during GIMPLE pass: unswitch Objects/unicodeobject.c: In function ‘_PyUnicode_XStrip’: Objects/unicodeobject.c:11613:1: internal compiler error: in get_vrange, at value-range-storage.cc:87 [...] Does not seem to happen here with sys-devel/gcc-13.0.1_pre20230326-r1. (In reply to Adrien Dessemond from comment #4) > Does not seem to happen here with sys-devel/gcc-13.0.1_pre20230326-r1. Are you sure? Note that you need PGO on. It's not fixed yet (see upstream bug). The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5200bf6e1bf373bc4a04128746ad64ca29d2626 commit f5200bf6e1bf373bc4a04128746ad64ca29d2626 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-04-05 01:10:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-04-05 01:10:58 +0000 sys-devel/gcc: backport 13 fix for Python 3.12 ICE Closes: https://bugs.gentoo.org/903245 Signed-off-by: Sam James <sam@gentoo.org> ...3.0.1_pre20230402-PR109304-ICE-python3.12.patch | 72 ++++++++++++++++++++++ sys-devel/gcc/gcc-13.0.1_pre20230402-r1.ebuild | 57 +++++++++++++++++ 2 files changed, 129 insertions(+) |