Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948072 - =net-libs/webkit-gtk-2.46.5-r600 fail with gcc-15.0.0_pre20250112 with >=O2: JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160
Summary: =net-libs/webkit-gtk-2.46.5-r600 fail with gcc-15.0.0_pre20250112 with >=O2: ...
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:
: 948073 (view as bug list)
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-01-14 05:51 UTC by tdr
Modified: 2025-03-10 07:07 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2025-01-14 05:51:58 UTC
using =gcc-15.0.0_pre20250112 and optimizing at -O2 or -O3 produces ICE when building =webkit-gtk-2.46.5-r600

Reproducible: Always

Actual Results:  
/var/tmp/portage/net-libs/webkit-gtk-2.46.5-r600/work/webkitgtk-2.46.5/Source/JavaScriptCore/runtime/JSBigInt.cpp:1424:6: internal compiler error: in exact_div, at poly-int.h:2160
 1424 | bool JSBigInt::equals(JSBigInt* x, JSBigInt* y)
      |      ^~~~~~~~
0x55913bfd9f8b internal_error(char const*, ...)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/diagnostic-global-context.cc:517
0x5591397e849f fancy_abort(char const*, int, char const*)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/diagnostic.cc:1722
0x55913979c0cf poly_int<1u, poly_result<unsigned long, if_nonpoly<int, int, poly_int_traits<int>::is_poly>::type, poly_coeff_pair_traits<unsigned long, if_nonpoly<int, int, poly_int_traits<int>::is_poly>::type>::result_kind>::type> exact_div<1u, unsigned long, int>(poly_int<1u, unsigned long> const&, int)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/poly-int.h:2160
0x55913979c0cf vect_compute_data_ref_alignment
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-data-refs.cc:1365
0x55913beb4bee vect_analyze_data_refs_alignment(_loop_vec_info*)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-data-refs.cc:2946
0x55913a8710eb vect_analyze_loop_2
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-loop.cc:2959
0x55913a873562 vect_analyze_loop_1
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-loop.cc:3478
0x55913a873e6b vect_analyze_loop(loop*, gimple*, vec_info_shared*)
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vect-loop.cc:3638
0x55913a8dd2ba try_vectorize_loop_1
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vectorizer.cc:1093
0x55913a8dd2ba try_vectorize_loop
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vectorizer.cc:1210
0x55913a8ddcd0 execute
	/usr/src/debug/sys-devel/gcc-15.0.0_pre20250112/gcc-15-20250112/gcc/tree-vectorizer.cc:1326
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.


adding env over-ride allows to build successfully with both -O2 and O3:
    CXXFLAGS="${COMMON_FLAGS} -fno-tree-vectorize"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-14 06:00:26 UTC
*** Bug 948073 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2025-01-24 03:30:17 UTC
The bug has been closed via the following commit(s):

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

commit 00996af3f13285ec8d6834522177c350abdd31db
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-24 03:29:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-24 03:29:07 +0000

    net-libs/webkit-gtk: add -fno-tree-loop-vectorize for gcc trunk
    
    Temporary workaround.
    
    Bug: https://gcc.gnu.org/PR118464
    Closes: https://bugs.gentoo.org/948072
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/webkit-gtk/webkit-gtk-2.44.4-r410.ebuild | 5 +++++
 net-libs/webkit-gtk/webkit-gtk-2.44.4-r600.ebuild | 5 +++++
 net-libs/webkit-gtk/webkit-gtk-2.44.4.ebuild      | 5 +++++
 net-libs/webkit-gtk/webkit-gtk-2.46.5-r410.ebuild | 5 +++++
 net-libs/webkit-gtk/webkit-gtk-2.46.5-r600.ebuild | 5 +++++
 net-libs/webkit-gtk/webkit-gtk-2.46.5.ebuild      | 5 +++++
 6 files changed, 30 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2025-03-10 05:37:19 UTC
The bug has been referenced in the following commit(s):

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

commit 3d1eac5e55073775de081f601d17bdd08fff62fc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-10 05:32:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-10 05:32:46 +0000

    net-libs/webkit-gtk: drop GCC 15 workaround
    
    Fixed in latest snapshot.
    
    Bug: https://bugs.gentoo.org/948072
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/webkit-gtk/webkit-gtk-2.44.4-r410.ebuild | 5 -----
 net-libs/webkit-gtk/webkit-gtk-2.44.4-r600.ebuild | 5 -----
 net-libs/webkit-gtk/webkit-gtk-2.44.4.ebuild      | 5 -----
 net-libs/webkit-gtk/webkit-gtk-2.46.5-r410.ebuild | 5 -----
 net-libs/webkit-gtk/webkit-gtk-2.46.5-r600.ebuild | 5 -----
 net-libs/webkit-gtk/webkit-gtk-2.46.5.ebuild      | 5 -----
 6 files changed, 30 deletions(-)