public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/114108] New: [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression)
@ 2024-02-26  0:54 sjames at gcc dot gnu.org
  2024-02-26  0:55 ` [Bug middle-end/114108] " sjames at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-02-26  0:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114108

            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=57535&action=edit
arithm.dispatch.ii.xz

```/usr/bin/aarch64-unknown-linux-gnu-g++ -DCVAPI_EXPORTS
-DOPENCV_ALLOCATOR_STATS_COUNTER_TYPE=int -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.8.1-r1/work/opencv-4.8.1/modules/core/include
-I/var/tmp/portage/media-libs/opencv-4.8.1-r1/work/opencv-4.8.1_build-.arm64-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=native -fdiagnostics-color=always
-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=3
-Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer
-ffunction-sections -fdata-sections  -fvisibility=hidden
-fvisibility-inlines-hidden -fopenmp -std=c++14 -fPIC
-fdiagnostics-color=always -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 ‘void cv::hal::cpu_baseline::bin_loop(const T1*, size_t, const T1*,
size_t, T1*, size_t, int, int) [with OP = op_absdiff; T1 = signed char; Tvec =
cv::hal_baseline::v_int8x16]’:
/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 = MIN_EXPR <vect_patt_231.7321_609, { 127, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127 }>;
/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 = MIN_EXPR <vect_patt_377.7337_713, { 127, 127, 127,
127, 127, 127, 127, 127 }>;
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)
       
/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 <https://bugs.gentoo.org/> for instructions.
```



```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/14/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-14.0.9999/work/gcc-14.0.9999/configure
--host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu
--prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/14
--includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/14/include
--datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/14
--mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/14/man
--infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/14/info
--with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/14/include/g++-v14
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/14/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened
14.0.9999 p, commit e54a7fbca63053b5753fd9ba543c27ef392d3084'
--with-gcc-major-version-only --enable-libstdcxx-time --enable-lto
--disable-libstdcxx-pch --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --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, commit
e54a7fbca63053b5753fd9ba543c27ef392d3084)
```

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-03-15  6:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26  0:54 [Bug middle-end/114108] New: [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression) sjames at gcc dot gnu.org
2024-02-26  0:55 ` [Bug middle-end/114108] " sjames at gcc dot gnu.org
2024-02-26  0:59 ` [Bug tree-optimization/114108] " pinskia at gcc dot gnu.org
2024-02-26  1:01 ` pinskia at gcc dot gnu.org
2024-02-26  5:34 ` pinskia at gcc dot gnu.org
2024-02-26  5:41 ` pinskia at gcc dot gnu.org
2024-02-28 13:00 ` [Bug tree-optimization/114108] [14 regression] ICE when building opencv-4.8.1 (error: type mismatch in binary expression) since r14-1833 jakub at gcc dot gnu.org
2024-02-28 18:27 ` pinskia at gcc dot gnu.org
2024-02-28 18:28 ` jakub at gcc dot gnu.org
2024-03-04 13:18 ` rguenth at gcc dot gnu.org
2024-03-05  8:58 ` belagod at gcc dot gnu.org
2024-03-06  8:25 ` belagod at gcc dot gnu.org
2024-03-15  6:18 ` cvs-commit at gcc dot gnu.org
2024-03-15  6:31 ` belagod at gcc dot gnu.org
2024-03-15  6:31 ` sjames at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).