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

            Bug ID: 120830
           Summary: [16 regression] ICE when building opencv-4.11.0 (as_a,
                    at machmode.h:391)
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 61717
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61717&action=edit
dls.cpp.ii.xz

```
$ g++ -c ./modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/dls.cpp.ii
-march=znver4 -mshstk -O2during RTL pass: rrvl
In file included from /usr/include/eigen3/Eigen/Core:330,
                 from
/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0/modules/core/include/opencv2/core/private.hpp:70,
                 from
/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0/modules/calib3d/src/precomp.hpp:47,
                 from
/var/tmp/portage/media-libs/opencv-4.11.0/work/opencv-4.11.0/modules/calib3d/src/dls.cpp:1:
/usr/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h: In
function ‘void Eigen::internal::lhs_process_one_packet<nr, LhsProgress,
RhsProgress, LhsScalar, RhsScalar, ResScalar, AccPacket, LhsPacket, RhsPacket,
ResPacket, GEBPTraits, LinearMapper, DataMapper>::operator()(const DataMapper&,
const LhsScalar*, const RhsScalar*, ResScalar, Eigen::Index, Eigen::Index,
Eigen::Index, Eigen::Index, Eigen::Index, Eigen::Index, int, Eigen::Index,
Eigen::Index, Eigen::Index, Eigen::Index, Eigen::Index) [with int nr = 4; long
int LhsProgress = 4; long int RhsProgress = 1; LhsScalar =
std::complex<double>; RhsScalar = std::complex<double>; ResScalar =
std::complex<double>; AccPacket = Eigen::internal::DoublePacket<__vector(8)
double>; LhsPacket = __vector(8) double; RhsPacket =
Eigen::internal::DoublePacket<__vector(8) double>; ResPacket =
Eigen::internal::Packet4cd; GEBPTraits =
Eigen::internal::gebp_traits<std::complex<double>, std::complex<double>, true,
false, 1, 0>; LinearMapper =
Eigen::internal::BlasLinearMapper<std::complex<double>, long int, 0, 1>;
DataMapper = Eigen::internal::blas_data_mapper<std::complex<double>, long int,
0, 0, 1>]’:
/usr/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1381:3:
internal compiler error: in as_a, at machmode.h:391
 1381 |   }
      |   ^
0x7f774e403c0a __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f774e403cb9 __libc_start_main_impl
        ../csu/libc-start.c:360
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/x86_64-pc-linux-gnu/16/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python
--enable-libphobos --enable-languages=c,c++,d,fortran,ada --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 16.0.9999 p, commit
127aabd4d9cabfe7f6af572bade472d481a5bb67' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-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
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-linker-build-id
--with-build-config='bootstrap-O3 bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20250624 (experimental)
ed7fc2b29ead88be30b40ec2c3c51495200b08c4 (Gentoo Hardened 16.0.9999 p, commit
127aabd4d9cabfe7f6af572bade472d481a5bb67)
```

Reply via email to