Bug#1019478: libflame: failing numpy tests (avx512) in testing transition tests

Drew Parsons dparsons at debian.org
Sat Sep 10 09:50:19 BST 2022


Source: libflame
Version: 5.2.0-3
Severity: normal

libflame 5.2.0-3 in testing is failing numpy tests on amd64 against
scipy 1.8.1-14 fom unstable, affecting the scipy 1.8 upgrade.

The pattern of the failure is strange.  Tests passed with scipy
1.8.1-13 only days before.  Tests in unstable are passing. The failure
is in libflame's numpy test not it's scipy test. But numpy hasn't been
updated. Why has it just now started failing? Maybe it's related to
gcc-12 (which also triggers test failure)?

The error seems to come from numpy's use of avx512 in
TestSharedMemory.test_hidden[CLONGDOUBLE]:

E                                  compile options: '-I/usr/include/python3.10 -c'
E                                  extra options: '-mavx512er -mavx512pf'
E                                  CCompilerOpt.feature_test[1466] : testing feature 'AVX512_KNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf)
E                                  C compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
E                                  
E                                  compile options: '-I/usr/include/python3.10 -c'
E                                  extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -Werror'
E                                  CCompilerOpt.dist_test[581] : CCompilerOpt._dist_test_spawn[716] : Command (x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.10 -c /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_avx512_knl.c -o /tmp/tmpukjc8skw/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_avx512_knl.o -MMD -MF /tmp/tmpukjc8skw/usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_avx512_knl.o.d -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -Werror) failed with exit status 1 output -> 
E                                  In file included from /usr/lib/gcc/x86_64-linux-gnu/12/include/immintrin.h:51,
E                                                   from /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_avx512_knl.c:14:
E                                  In function �_mm512_exp2a23_round_pd�,
E                                      inlined from �main� at /usr/lib/python3/dist-packages/numpy/distutils/checks/cpu_avx512_knl.c:21:17:
E                                  /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512erintrin.h:55:20: error: �__W� is used uninitialized [-Werror=uninitialized]
E                                     55 |   return (__m512d) __builtin_ia32_exp2pd_mask ((__v8df) __A,
E                                        |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E                                     56 |                                                (__v8df) __W,
E                                        |                                                ~~~~~~~~~~~~~
E                                     57 |                                                (__mmask8) -1, __R);
E                                        |                                                ~~~~~~~~~~~~~~~~~~~
E                                  /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512erintrin.h: In function �main�:
E                                  /usr/lib/gcc/x86_64-linux-gnu/12/include/avx512erintrin.h:54:11: note: �__W� was declared here
E                                     54 |   __m512d __W;
E                                        |           ^~~



Also there is the error:

E                                  compile options: '-I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/usr/include/python3.10 -c'
E                                  extra options: '-msse -msse2 -msse3'
E                                  x86_64-linux-gnu-gcc: wrapmodule.c
E                                  x86_64-linux-gnu-gcc: fortranobject.c
E                                  wrapmodule.c:12:10: fatal error: Python.h: No such file or directory
E                                     12 | #include "Python.h"
E                                        |          ^~~~~~~~~~
E                                  compilation terminated.


More information about the debian-science-maintainers mailing list