Bug#957058: bumblebee: ftbfs with GCC-10
Matthias Klose
doko at debian.org
Fri Apr 17 11:57:29 BST 2020
Package: src:bumblebee
Version: 3.2.1-20
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10
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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.
The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/bumblebee_3.2.1-20_unstable_gcc10.log
The last lines of the build log are at the end of this report.
To build with GCC 10, either set CC=gcc-10 CXX=g++-10 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-10/porting_to.html
[...]
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 40 and 42 bytes into a destination of size 40
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.2.1\" -DPACKAGE_STRING=\"bumblebee\ 3.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_XORG_BINARY=\"/usr/lib/xorg/Xorg\" -DCONF_BRIDGE=\"auto\" -DCONF_PRIMUS_LD_PATH=\"/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.2.1\" -DWITH_PIDFILE=1 -I. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"' -DCONF_XORG_DIR='"/etc/bumblebee/xorg.conf.d"' -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/bbsecondary.o src/bbsecondary.c
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.2.1\" -DPACKAGE_STRING=\"bumblebee\ 3.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_XORG_BINARY=\"/usr/lib/xorg/Xorg\" -DCONF_BRIDGE=\"auto\" -DCONF_PRIMUS_LD_PATH=\"/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.2.1\" -DWITH_PIDFILE=1 -I. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"' -DCONF_XORG_DIR='"/etc/bumblebee/xorg.conf.d"' -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/switch/switching.o src/switch/switching.c
src/pci.c: In function ‘pci_config_save’:
src/pci.c:178:50: warning: ‘/config’ directive output may be truncated writing 7 bytes into a region of size between 6 and 8 [-Wformat-truncation=]
178 | "/sys/bus/pci/devices/0000:%02x:%02x.%o/config", bus_id->bus,
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from src/pci.c:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 41 and 43 bytes into a destination of size 41
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pci.c: In function ‘pci_config_restore’:
src/pci.c:178:50: warning: ‘/config’ directive output may be truncated writing 7 bytes into a region of size between 6 and 8 [-Wformat-truncation=]
178 | "/sys/bus/pci/devices/0000:%02x:%02x.%o/config", bus_id->bus,
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from src/pci.c:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 41 and 43 bytes into a destination of size 41
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pci.c:178:50: warning: ‘/config’ directive output may be truncated writing 7 bytes into a region of size between 6 and 8 [-Wformat-truncation=]
178 | "/sys/bus/pci/devices/0000:%02x:%02x.%o/config", bus_id->bus,
| ^~~~~~~
In file included from /usr/include/stdio.h:867,
from src/pci.c:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 41 and 43 bytes into a destination of size 41
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.2.1\" -DPACKAGE_STRING=\"bumblebee\ 3.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_XORG_BINARY=\"/usr/lib/xorg/Xorg\" -DCONF_BRIDGE=\"auto\" -DCONF_PRIMUS_LD_PATH=\"/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.2.1\" -DWITH_PIDFILE=1 -I. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"' -DCONF_XORG_DIR='"/etc/bumblebee/xorg.conf.d"' -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/switch/sw_bbswitch.o src/switch/sw_bbswitch.c
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.2.1\" -DPACKAGE_STRING=\"bumblebee\ 3.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_XORG_BINARY=\"/usr/lib/xorg/Xorg\" -DCONF_BRIDGE=\"auto\" -DCONF_PRIMUS_LD_PATH=\"/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.2.1\" -DWITH_PIDFILE=1 -I. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"' -DCONF_XORG_DIR='"/etc/bumblebee/xorg.conf.d"' -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/switch/sw_switcheroo.o src/switch/sw_switcheroo.c
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.2.1\" -DPACKAGE_STRING=\"bumblebee\ 3.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_XORG_BINARY=\"/usr/lib/xorg/Xorg\" -DCONF_BRIDGE=\"auto\" -DCONF_PRIMUS_LD_PATH=\"/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.2.1\" -DWITH_PIDFILE=1 -I. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"' -DCONF_XORG_DIR='"/etc/bumblebee/xorg.conf.d"' -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/driver.o src/driver.c
src/bbsecondary.c: In function ‘start_secondary’:
src/bbsecondary.c:141:41: warning: ‘%o’ directive output may be truncated writing between 1 and 3 bytes into a region of size between 0 and 2 [-Wformat-truncation=]
141 | snprintf(pci_id, 12, "PCI:%02d:%02d:%o", pci_bus_id_discrete->bus,
| ^~
src/bbsecondary.c:141:26: note: directive argument in the range [0, 255]
141 | snprintf(pci_id, 12, "PCI:%02d:%02d:%o", pci_bus_id_discrete->bus,
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from src/bbsecondary.c:25:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 12 and 16 bytes into a destination of size 12
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DPACKAGE_NAME=\"bumblebee\" -DPACKAGE_TARNAME=\"bumblebee\" -DPACKAGE_VERSION=\"3.2.1\" -DPACKAGE_STRING=\"bumblebee\ 3.2.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DCONF_XDISP=\":8\" -DCONF_SOCKPATH=\"/var/run/bumblebee.socket\" -DCONF_GID=\"bumblebee\" -DCONF_KEEPONEXIT=\"false\" -DCONF_FALLBACKSTART=\"false\" -DCONF_VGLCOMPRESS=\"proxy\" -DCONF_TURNOFFATEXIT=\"false\" -DCONF_XORG_BINARY=\"/usr/lib/xorg/Xorg\" -DCONF_BRIDGE=\"auto\" -DCONF_PRIMUS_LD_PATH=\"/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus\" -DCONF_PIDFILE=\"/var/run/bumblebeed.pid\" -DCONF_PM_METHOD=\"auto\" -DCONF_DRIVER=\"\" -DCONF_DRIVER_MODULE_NVIDIA=\"nvidia\" -DCONF_LDPATH_NVIDIA=\"/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia\" -DCONF_MODPATH_NVIDIA=\"/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules\" -DDAEMON_NAME=\"bumblebeed\" -DPACKAGE=\"bumblebee\" -DVERSION=\"3.2.1\" -DWITH_PIDFILE=1 -I. -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DCONFIG_FILE='"/etc/bumblebee/bumblebee.conf"' -DCONF_XORG='"/etc/bumblebee/xorg.conf.DRIVER"' -DCONF_XORG_DIR='"/etc/bumblebee/xorg.conf.d"' -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o src/bumblebeed.o src/bumblebeed.c
gcc -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -Wformat=2 -pipe -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wextra -funsigned-char -DGITVERSION='"3.2.1"' -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o bin/optirun src/module.o src/bbconfig.o src/bblogger.o src/bbrun.o src/bbsocket.o src/optirun.o src/bbsocketclient.o -lglib-2.0 -lkmod -lrt
/usr/bin/ld: src/bbconfig.o:./src/bbconfig.h:106: multiple definition of `bb_pm_method_string'; src/module.o:./src/bbconfig.h:106: first defined here
/usr/bin/ld: src/bblogger.o:./src/bbconfig.h:106: multiple definition of `bb_pm_method_string'; src/module.o:./src/bbconfig.h:106: first defined here
/usr/bin/ld: src/bbsocket.o:./src/bbconfig.h:106: multiple definition of `bb_pm_method_string'; src/module.o:./src/bbconfig.h:106: first defined here
/usr/bin/ld: src/optirun.o:./src/bbconfig.h:106: multiple definition of `bb_pm_method_string'; src/module.o:./src/bbconfig.h:106: first defined here
/usr/bin/ld: src/bbsocketclient.o:./src/bbconfig.h:106: multiple definition of `bb_pm_method_string'; src/module.o:./src/bbconfig.h:106: first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:607: bin/optirun] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:20: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-nvidia-devel
mailing list