[Pkg-acpi-devel] Bug#701236: acpid: ftbfs with GCC-4.8

Matthias Klose doko at debian.org
Sat Feb 23 10:37:01 UTC 2013


Package: src:acpid
Version: 1:2.0.18-1
Severity: important
Tags: sid jessie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.8

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

libnetlink.c:45:23: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]

The full build log can be found at:
http://people.debian.org/~doko/logs-20130217/gcc48/acpid_2.0.18-1_unstable_gcc48.log
The last lines of the build log are at the end of this report.

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

apt-get -t experimental install g++-4.7 g++-4.8 libc6-dev

The test rebuild was done with eglibc-2.17 and GCC-4.8, so some issues
might be caused by the updated glibc.

[...]
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for working strnlen... no
checking for fchown... yes
checking for chmod... yes
checking for fstat... yes
checking for fstatat... yes
checking for openat... yes
checking for asprintf... yes
checking for alarm... yes
checking for dup2... yes
checking for memset... no
checking for regcomp... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... no
checking for strdup... no
checking for strerror... yes
checking for strrchr... no
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating kacpimon/Makefile
config.status: creating config.h
config.status: executing depfiles commands
   dh_auto_build -a
make[1]: Entering directory `/«PKGBUILDDIR»'
make  all-recursive
make[2]: Entering directory `/«PKGBUILDDIR»'
Making all in kacpimon
make[3]: Entering directory `/«PKGBUILDDIR»/kacpimon'
gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Wformat=2 -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -c -o acpi_ids.o acpi_ids.c
gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Wformat=2 -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -c -o kacpimon.o kacpimon.c
gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Wformat=2 -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -c -o connection_list.o connection_list.c
gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Wformat=2 -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -c -o input_layer.o input_layer.c
gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h -D_FORTIFY_SOURCE=2 -Wall -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Wformat=2 -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fno-strict-aliasing -c -o libnetlink.o libnetlink.c
libnetlink.c: In function 'rtnl_open_byproto':
libnetlink.c:45:23: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
  memset(rth, 0, sizeof(rth));
                       ^
cc1: all warnings being treated as errors
make[3]: *** [libnetlink.o] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/kacpimon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/«PKGBUILDDIR»'
make[1]: *** [all] Error 2
dh_auto_build: make -j1 returned exit code 2
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



More information about the Pkg-acpi-devel mailing list