Summary: | sys-devel/gcc-13.0.1_pre20230326 ICE while compiling media-libs/opencv-4.7.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Adrien Dessemond <admnd> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109274 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117 | ||
Attachments: |
build.log.xz
build-abi_x86_32.x86.log.xz build-abi_x86_64.amd64.log.xz eclass-debug.log.xz environment.xz emerge-info |
Description
Adrien Dessemond
2023-03-28 23:46:29 UTC
Don't stress over reducing this one yet, I've seen a bug wrt opencv on the gcc side so it may have already been reported. Created attachment 859211 [details]
build.log.xz
Created attachment 859213 [details]
build-abi_x86_32.x86.log.xz
Created attachment 859215 [details]
build-abi_x86_64.amd64.log.xz
Created attachment 859217 [details]
eclass-debug.log.xz
Created attachment 859219 [details]
environment.xz
Created attachment 859221 [details]
emerge-info
(In reply to Sam James from comment #1) > Don't stress over reducing this one yet, I've seen a bug wrt opencv on the > gcc side so it may have already been reported. Can't find it. Would you mind rebuilding gcc w/ -ggdb3 & splitdebug & installsources by the way? I have a feeling it leads to better output when ICEs. Reproduced, nice find! (Do try that debug info stuff.) --- FAILED: modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o /var/tmp/portage/media-libs/opencv-4.7.0/temp/clang-wrappers/x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/include -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0_build-abi_x86_32.x86/modules/stitching -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/core/include -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/flann/include -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/features2d/include -I/var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/calib3d/include -isystem /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0_build-abi_x86_32.x86 -isystem /usr/include/eigen3 -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mfma -mavx -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -std=c++11 -fPIC -fdiagnostics-color=always -MD -MT modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o -MF modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o.d -o modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o -c /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/src/warpers.cpp during GIMPLE pass: vrp In file included from /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/include/opencv2/stitching/detail/warpers.hpp:704, from /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/include/opencv2/stitching/warpers.hpp:46, from /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/include/opencv2/stitching.hpp:48, from /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/src/precomp.hpp:59, from /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/src/warpers.cpp:43: /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp: In member function ‘void cv::detail::RotationWarperBase<P>::detectResultRoiByBorder(cv::Size, cv::Point&, cv::Point&) [with P = cv::detail::SphericalProjector]’: /var/tmp/portage/media-libs/opencv-4.7.0/work/opencv-4.7.0/modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp:185:6: internal compiler error: Segmentation fault 185 | void RotationWarperBase<P>::detectResultRoiByBorder(Size src_size, Point &dst_tl, Point &dst_br) | ^~~~~~~~~~~~~~~~~~~~~ 0xd80b07 crash_signal /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/toplev.cc:314 0x1688195 range_def_chain::in_chain_p(tree_node*, tree_node*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:126 0x1683fb0 gori_compute::compute_operand_range(vrange&, gimple*, vrange const&, tree_node*, fur_source&, value_relation*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:667 0x1688ae9 gori_compute::compute_operand1_range(vrange&, gimple_range_op_handler&, vrange const&, tree_node*, fur_source&, value_relation*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:1174 0x1683599 gori_compute::compute_operand_range(vrange&, gimple*, vrange const&, tree_node*, fur_source&, value_relation*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:726 0x16bdcb8 gori_compute::compute_operand2_range(vrange&, gimple_range_op_handler&, vrange const&, tree_node*, fur_source&, value_relation*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:1254 0x18050a9 gori_compute::compute_operand1_and_operand2_range(vrange&, gimple_range_op_handler&, vrange const&, tree_node*, fur_source&, value_relation*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:1274 0x168409f gori_compute::compute_operand_range(vrange&, gimple*, vrange const&, tree_node*, fur_source&, value_relation*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:723 0x1682e5a gori_compute::outgoing_edge_range_p(vrange&, edge_def*, tree_node*, range_query&) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-gori.cc:1384 0x16820d1 ranger_cache::range_from_dom(vrange&, tree_node*, basic_block_def*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1529 0x16aa0cd ranger_cache::entry_range(vrange&, tree_node*, basic_block_def*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:928 0x16aa0cd ranger_cache::entry_range(vrange&, tree_node*, basic_block_def*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:916 0x16b66f4 ranger_cache::exit_range(vrange&, tree_node*, basic_block_def*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:950 0x16b66f4 ranger_cache::edge_range(vrange&, edge_def*, tree_node*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:959 0x16def89 ranger_cache::resolve_dom(vrange&, tree_node*, basic_block_def*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1412 0x16821db ranger_cache::range_from_dom(vrange&, tree_node*, basic_block_def*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1523 0x1680fd3 ranger_cache::range_from_dom(vrange&, tree_node*, basic_block_def*, ranger_cache::rfd_mode) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1426 0x1680fd3 ranger_cache::fill_block_cache(tree_node*, basic_block_def*, basic_block_def*) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1212 0x166e224 ranger_cache::block_range(vrange&, basic_block_def*, tree_node*, bool) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1039 0x166e224 ranger_cache::block_range(vrange&, basic_block_def*, tree_node*, bool) /usr/src/debug/sys-devel/gcc-13.0.1_pre20230326/gcc-13-20230326/gcc/gimple-range-cache.cc:1010 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. I've reported it at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 but it's probably a dupe of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109274. I'm trying https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=dd63bba0c8dc3a6ae06cfdc084bca7c68b8bbd39 now. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d48b81be598d22b4c80bea061776cb58518b3f58 commit d48b81be598d22b4c80bea061776cb58518b3f58 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-03-29 01:50:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-29 01:50:27 +0000 sys-devel/gcc: backport opencv ICE fix for 13 I've decided that for now I'll just put these temporary already-on-master patches in files/ given I'd have to re-cut the patchset repeatedly otherwise (have to add it, cut a patchset, then delete it from git immediately so 9999 doesn't break, but then I'm in trouble if I want to backport another patch before the next snapshot). Closes: https://bugs.gentoo.org/903505 Signed-off-by: Sam James <sam@gentoo.org> ...R109265_PR109274_PR109325_range_def_chain.patch | 219 +++++++++++++++++++++ sys-devel/gcc/gcc-13.0.1_pre20230326-r1.ebuild | 57 ++++++ 2 files changed, 276 insertions(+) |