[Pkg-phototools-devel] Bug#1012944: highway: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:09:29 BST 2022


Package: src:highway
Version: 0.16.0-1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/highway_0.16.0-1_unstable_gcc12.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
    inlined from ‘hwy::N_AVX3::Vec256<short unsigned int> hwy::N_AVX3::DemoteTo(Full256<short unsigned int>, Vec512<int>)’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:2997:55,
    inlined from ‘hwy::N_AVX3::Vec512<T> hwy::N_AVX3::Compress(Vec512<T>, Mask512<T>) [with T = short int; hwy::EnableIf<(sizeof (T) == 2)>* <anonymous> = 0]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:3415:41,
    inlined from ‘size_t hwy::N_AVX3::CompressBlendedStore(Vec512<T>, Mask512<T>, Full512<T>, T*) [with T = short int]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:3514:42,
    inlined from ‘size_t hwy::N_AVX3::detail::Partition(D, Traits, T*, size_t, size_t, hwy::N_AVX3::Vec<D>, T*) [with D = hwy::N_AVX3::Simd<short int, 32, 0>; Traits = SharedTraits<LaneTraits<OrderDescending> >; T = short int]’ at /<<PKGBUILDDIR>>/hwy/contrib/sort/vqsort-inl.h:384:29:
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:6994:10: error: ‘__Y’ is used uninitialized [-Werror=uninitialized]
 6994 |   return (__m512i) __builtin_ia32_permvardi512_mask ((__v8di) __Y,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 6995 |                                                      (__v8di) __X,
      |                                                      ~~~~~~~~~~~~~
 6996 |                                                      (__v8di)
      |                                                      ~~~~~~~~
 6997 |                                                      _mm512_undefined_epi32 (),
      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~
 6998 |                                                      (__mmask8) -1);
      |                                                      ~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h: In function ‘size_t hwy::N_AVX3::detail::Partition(D, Traits, T*, size_t, size_t, hwy::N_AVX3::Vec<D>, T*) [with D = hwy::N_AVX3::Simd<short int, 32, 0>; Traits = SharedTraits<LaneTraits<OrderDescending> >; T = short int]’:
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:206:11: note: ‘__Y’ was declared here
  206 |   __m512i __Y = __Y;
      |           ^~~
In function ‘__m256d _mm512_extractf64x4_pd(__m512d, int)’,
    inlined from ‘__m256i _mm512_castsi512_si256(__m512i)’ at /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:15850:41,
    inlined from ‘hwy::N_AVX3::Vec256<T> hwy::N_AVX3::LowerHalf(Full256<T>, Vec512<T>) [with T = short unsigned int]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:2083:42,
    inlined from ‘hwy::N_AVX3::Vec256<T> hwy::N_AVX3::LowerHalf(Vec512<T>) [with T = short unsigned int]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:2094:19,
    inlined from ‘hwy::N_AVX3::Vec256<short unsigned int> hwy::N_AVX3::DemoteTo(Full256<short unsigned int>, Vec512<int>)’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:2998:19,
    inlined from ‘hwy::N_AVX3::Vec512<T> hwy::N_AVX3::Compress(Vec512<T>, Mask512<T>) [with T = short int; hwy::EnableIf<(sizeof (T) == 2)>* <anonymous> = 0]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:3415:41,
    inlined from ‘size_t hwy::N_AVX3::CompressBlendedStore(Vec512<T>, Mask512<T>, Full512<T>, T*) [with T = short int]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:3514:42,
    inlined from ‘size_t hwy::N_AVX3::detail::Partition(D, Traits, T*, size_t, size_t, hwy::N_AVX3::Vec<D>, T*) [with D = hwy::N_AVX3::Simd<short int, 32, 0>; Traits = SharedTraits<LaneTraits<OrderDescending> >; T = short int]’ at /<<PKGBUILDDIR>>/hwy/contrib/sort/vqsort-inl.h:384:29:
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:5946:10: error: ‘__Y’ is used uninitialized [-Werror=uninitialized]
 5946 |   return (__m256d) __builtin_ia32_extractf64x4_mask ((__v8df) __A,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 5947 |                                                      __imm,
      |                                                      ~~~~~~
 5948 |                                                      (__v4df)
      |                                                      ~~~~~~~~
 5949 |                                                      _mm256_undefined_pd (),
      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~
 5950 |                                                      (__mmask8) -1);
      |                                                      ~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/12/include/avxintrin.h: In function ‘size_t hwy::N_AVX3::detail::Partition(D, Traits, T*, size_t, size_t, hwy::N_AVX3::Vec<D>, T*) [with D = hwy::N_AVX3::Simd<short int, 32, 0>; Traits = SharedTraits<LaneTraits<OrderDescending> >; T = short int]’:
/usr/lib/gcc/x86_64-linux-gnu/12/include/avxintrin.h:1210:11: note: ‘__Y’ was declared here
 1210 |   __m256d __Y = __Y;
      |           ^~~
In function ‘__m512i _mm512_inserti64x4(__m512i, __m256i, int)’,
    inlined from ‘__m512i _mm512_zextsi256_si512(__m256i)’ at /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:15934:29,
    inlined from ‘hwy::N_AVX3::Vec512<T> hwy::N_AVX3::ZeroExtendVector(Full512<T>, Vec256<T>) [with T = short unsigned int]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:2134:42,
    inlined from ‘hwy::N_AVX3::Vec512<T> hwy::N_AVX3::Compress(Vec512<T>, Mask512<T>) [with T = short int; hwy::EnableIf<(sizeof (T) == 2)>* <anonymous> = 0]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:3415:41,
    inlined from ‘size_t hwy::N_AVX3::CompressBlendedStore(Vec512<T>, Mask512<T>, Full512<T>, T*) [with T = short int]’ at /<<PKGBUILDDIR>>/hwy/ops/x86_512-inl.h:3514:42,
    inlined from ‘size_t hwy::N_AVX3::detail::Partition(D, Traits, T*, size_t, size_t, hwy::N_AVX3::Vec<D>, T*) [with D = hwy::N_AVX3::Simd<short int, 32, 0>; Traits = SharedTraits<LaneTraits<OrderDescending> >; T = short int]’ at /<<PKGBUILDDIR>>/hwy/contrib/sort/vqsort-inl.h:384:29:
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:6173:10: error: ‘__Y’ is used uninitialized [-Werror=uninitialized]
 6173 |   return (__m512i) __builtin_ia32_inserti64x4_mask ((__v8di) __A,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 6174 |                                                     (__v4di) __B,
      |                                                     ~~~~~~~~~~~~~
 6175 |                                                     __imm,
      |                                                     ~~~~~~
 6176 |                                                     (__v8di)
      |                                                     ~~~~~~~~
 6177 |                                                     _mm512_undefined_epi32 (),
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~
 6178 |                                                     (__mmask8) -1);
      |                                                     ~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h: In function ‘size_t hwy::N_AVX3::detail::Partition(D, Traits, T*, size_t, size_t, hwy::N_AVX3::Vec<D>, T*) [with D = hwy::N_AVX3::Simd<short int, 32, 0>; Traits = SharedTraits<LaneTraits<OrderDescending> >; T = short int]’:
/usr/lib/gcc/x86_64-linux-gnu/12/include/avx512fintrin.h:206:11: note: ‘__Y’ was declared here
  206 |   __m512i __Y = __Y;
      |           ^~~
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j8 -v returned exit code 1
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-phototools-devel mailing list