From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 813F93858C41; Mon, 26 Feb 2024 00:54:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 813F93858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708908862; bh=2p4hgRDTUrOfwFfsLXPxEWuTc5ib+XymlRp2sEw0lwQ=; h=From:To:Subject:Date:From; b=RCVSxM5vwtdUzbDl04nRprHr+AUeDqGpTE9qQdgsy0tArRa6NmE8pbTVedqVt5wSi 8ffy7No7o5lRUvrPhoV8TZjRvM+UPnTE+PI8rlsrrCfNeDV4mF9WbKuO1cX9ZqnhB0 UxES9/r9lHIh8L/KxztLSSgb96OoxcPuRuHihNAM= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/114108] New: [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression) Date: Mon, 26 Feb 2024 00:54:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114108 Bug ID: 114108 Summary: [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression) Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 57535 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57535&action=3Dedit arithm.dispatch.ii.xz ```/usr/bin/aarch64-unknown-linux-gnu-g++ -DCVAPI_EXPORTS -DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=3Dint -D_USE_MATH_DEFINES -D__OPENCV_BUILD=3D1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/cor= e/include -I/var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1_build-.arm6= 4-python3_10/modules/core -isystem /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1_build-.arm64-= python3_10 -isystem /usr/include/eigen3 -O2 -pipe -mcpu=3Dnative -fdiagnostics-color= =3Dalways -ggdb3 -fno-vect-cost-model -U_FORTIFY_SOURCE -fno-hardened -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=3D3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -fvisibility=3Dhidden -fvisibility-inlines-hidden -fopenmp -std=3Dc++14 -fPIC -fdiagnostics-color=3Dalways -MD -MT modules/core/CMakeFiles/opencv_core.dir/src/arithm.dispatch.cpp.o -MF modules/core/CMakeFiles/opencv_core.dir/src/arithm.dispatch.cpp.o.d -o modules/core/CMakeFiles/opencv_core.dir/src/arithm.dispatch.cpp.o -c /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/core/= src/arithm.dispatch.cpp In file included from /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/core/= src/arithm.dispatch.cpp:7: /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/core/= src/arithm.simd.hpp: In function =E2=80=98void cv::hal::cpu_baseline::bin_loop(const T1*, size_t= , const T1*, size_t, T1*, size_t, int, int) [with OP =3D op_absdiff; T1 =3D signed char;= Tvec =3D cv::hal_baseline::v_int8x16]=E2=80=99: /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/core/= src/arithm.simd.hpp:396:13: error: type mismatch in binary expression 396 | static void bin_loop(const T1* src1, size_t step1, const T1* src2, size_t step2, T1* dst, size_t step, int width, int height) | ^~~~~~~~ vector(16) unsigned char vector(16) signed char vector(16) signed char vect_patt_233.7322_610 =3D MIN_EXPR ; /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/core/= src/arithm.simd.hpp:396:13: error: type mismatch in binary expression vector(8) unsigned char vector(8) signed char vector(8) signed char vect_patt_379.7338_714 =3D MIN_EXPR ; during GIMPLE pass: vect /var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1/modules/core/= src/arithm.simd.hpp:396:13: internal compiler error: verify_gimple failed 0xaaaadc101497 verify_gimple_in_cfg(function*, bool, bool) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-cfg.cc:5663 0xaaaadbf1fdcb execute_function_todo /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:= 2088 0xaaaadbf204df execute_todo /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:= 2142 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ``` ``` Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/aarch64-unknown-linux-gnu/14/lto-wra= pper Target: aarch64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.9999/work/gcc-14.0.9999/configure --host=3Daarch64-unknown-linux-gnu --build=3Daarch64-unknown-linux-gnu --prefix=3D/usr --bindir=3D/usr/aarch64-unknown-linux-gnu/gcc-bin/14 --includedir=3D/usr/lib/gcc/aarch64-unknown-linux-gnu/14/include --datadir=3D/usr/share/gcc-data/aarch64-unknown-linux-gnu/14 --mandir=3D/usr/share/gcc-data/aarch64-unknown-linux-gnu/14/man --infodir=3D/usr/share/gcc-data/aarch64-unknown-linux-gnu/14/info --with-gxx-include-dir=3D/usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/= g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=3D/share/gcc-data/aarch64-unknown-linux-gnu/14/python --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Dyes,extra,rtl --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo Harden= ed 14.0.9999 p, commit e54a7fbca63053b5753fd9ba543c27ef392d3084' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dposix --enable-__cxa_atexit --enable-clocale=3Dgnu --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240225 (experimental) 5c45dc1b97890afe7a977cea8069214ccdc42384 (Gentoo Hardened 14.0.9999 p, comm= it e54a7fbca63053b5753fd9ba543c27ef392d3084) ```=