Bug#984057: infinipath-psm: ftbfs with GCC-11
Package: src:infinipath-psm
Version: 3.3+20.604758e7-6.1
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/infinipath-psm_3.3+20.604758e7-6.1_unstable_gcc11.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.
[...]
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:51: ptl_rcvthread.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/ptl_ips'
make[3]: Entering directory '/<<PKGBUILDDIR>>/ptl_am'
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>> -c am_reqrep.c -o am_reqrep.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>> -c am_reqrep_shmem.c -o am_reqrep_shmem.o
In file included from /<<PKGBUILDDIR>>/include/ipath_intf.h:51,
from /<<PKGBUILDDIR>>/include/ipath_user.h:60,
from /<<PKGBUILDDIR>>/psm_user.h:45,
from am_reqrep_shmem.c:40:
am_reqrep_shmem.c: In function ‘amsh_ep_connreq_wrap’:
/<<PKGBUILDDIR>>/include/linux-x86_64/sysdep.h:109:5: error: array subscript ‘struct xchg_dummy[0]’ is partly outside array bounds of ‘psmi_spinlock_t[1]’ {aka ‘ips_atomic_t[1]’} [-Werror=array-bounds]
109 | asm volatile(LOCK_PREFIX "cmpxchgl %1,%2"
| ^~~
In file included from am_reqrep_shmem.c:40:
/<<PKGBUILDDIR>>/psm_user.h:103:20: note: while referencing ‘psmi_progress_lock’
103 | psmi_spinlock_t psmi_progress_lock;
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:41: am_reqrep_shmem.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/ptl_am'
make[3]: Entering directory '/<<PKGBUILDDIR>>/libuuid'
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -DNVALGRIND -DPSM_UUID=1 -Wno-unused-function -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>> -I/libuuid -c psm_uuid.c -o psm_uuid.o
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libuuid'
make[3]: Entering directory '/<<PKGBUILDDIR>>/ipath'
cc -Wall -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_debug.c -o ipath_debug.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_time.c -o ipath_time.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_proto.c -o ipath_proto.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_utils.c -o ipath_utils.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_service.c -o ipath_service.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_protomic.c -o ipath_protomic.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_dwordcpy-x86_64.c -o ipath_dwordcpy-x86_64.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_i2cflash.c -o ipath_i2cflash.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_sysfs.c -o ipath_sysfs.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_syslog.c -o ipath_syslog.o
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips -c ipath_write_pio-x86_64.c -o ipath_write_pio-x86_64.o
cc -g3 -fpic -c ipath_dwordcpy-x86_64-fast.S -o ipath_dwordcpy-x86_64-fast.o
date +'static __attribute__ ((unused)) char __psc_infinipath_revision[] ="$""Date: %F %R InfiniPath $";' > _revision.c
cc -c -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -D_GNU_SOURCE -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -I/<<PKGBUILDDIR>>/ptl_ips _revision.c -o _revision.o
cc -o libinfinipath.so.4.0 -Wl,-soname=libinfinipath.so.4 -shared \
-Wl,--unique='*fastpath*' \
ipath_debug.o ipath_time.o ipath_proto.o ipath_utils.o ipath_service.o ipath_protomic.o ipath_dwordcpy-x86_64.o ipath_i2cflash.o ipath_sysfs.o ipath_syslog.o ipath_write_pio-x86_64.o ipath_dwordcpy-x86_64-fast.o _revision.o -Wl,-z,relro
ln -fs libinfinipath.so.4.0 libinfinipath.so.4
ln -fs libinfinipath.so.4.0 libinfinipath.so
make[3]: Leaving directory '/<<PKGBUILDDIR>>/ipath'
/usr/bin/make libpsm_infinipath.so
make[3]: Entering directory '/<<PKGBUILDDIR>>'
cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fcommon -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DNVALGRIND -Wall -Werror -fpic -fPIC -D_GNU_SOURCE -funwind-tables -O3 -g3 -DPSM_USE_SYS_UUID -DNVALGRIND -I. -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/mpspawn -I/<<PKGBUILDDIR>>/include/linux-x86_64 -c ptl_am/am_reqrep_shmem.c -o ptl_am/am_reqrep_shmem.o
In file included from /<<PKGBUILDDIR>>/include/ipath_intf.h:51,
from /<<PKGBUILDDIR>>/include/ipath_user.h:60,
from ./psm_user.h:45,
from ptl_am/am_reqrep_shmem.c:40:
ptl_am/am_reqrep_shmem.c: In function ‘amsh_ep_connreq_wrap’:
/<<PKGBUILDDIR>>/include/linux-x86_64/sysdep.h:109:5: error: array subscript ‘struct xchg_dummy[0]’ is partly outside array bounds of ‘psmi_spinlock_t[1]’ {aka ‘ips_atomic_t[1]’} [-Werror=array-bounds]
109 | asm volatile(LOCK_PREFIX "cmpxchgl %1,%2"
| ^~~
In file included from ptl_am/am_reqrep_shmem.c:40:
./psm_user.h:103:20: note: while referencing ‘psmi_progress_lock’
103 | psmi_spinlock_t psmi_progress_lock;
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:282: ptl_am/am_reqrep_shmem.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:155: libs] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:45: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: