Bug#897884: vzquota: ftbfs with GCC-8
Package: src:vzquota
Version: 3.1-3
Severity: normal
Tags: sid buster
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-8
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-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.
The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/vzquota_3.1-3_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 8, either set CC=gcc-8 CXX=g++-8 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-8/porting_to.html
[...]
dpkg-buildpackage: info: source version 3.1-3
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Ola Lundqvist <opal@debian.org>
dpkg-source --before-build vzquota-3.1
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_auto_clean
make -j1 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
rm -f common.o quota_io.o syscall.o main.o stat.o quotaon.o quotacheck.o common.o quota_io.o syscall.o quotacheck.o vzdqcheck.o common.o quota_io.o syscall.o vzdqdump.o common.o quota_io.o syscall.o vzdqload.o vzquota vzdqcheck vzdqdump vzdqload .depend core *.log
find . -regex '.*[~#].*' | xargs rm -f
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: Entering directory '/<<PKGBUILDDIR>>/man'
rm -f vzdqdump.8 vzdqcheck.8 vzquota.8
make[2]: Leaving directory '/<<PKGBUILDDIR>>/man'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules build-arch
dh build-arch
dh_update_autotools_config -a
dh_auto_configure -a
dh_auto_build -a
make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
cc -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pipe -I../include -std=gnu99 -g -O2 -Wall -Werror -Wformat -D_FILE_OFFSET_BITS=64 -D_LINUX_QUOTA_VERSION=6 -D_LARGEFILE64_SOURCE -DVARDIR=\"/var/lib\" common.c -o common.o
cc -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pipe -I../include -std=gnu99 -g -O2 -Wall -Werror -Wformat -D_FILE_OFFSET_BITS=64 -D_LINUX_QUOTA_VERSION=6 -D_LARGEFILE64_SOURCE -DVARDIR=\"/var/lib\" quota_io.c -o quota_io.o
cc -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pipe -I../include -std=gnu99 -g -O2 -Wall -Werror -Wformat -D_FILE_OFFSET_BITS=64 -D_LINUX_QUOTA_VERSION=6 -D_LARGEFILE64_SOURCE -DVARDIR=\"/var/lib\" syscall.c -o syscall.o
cc -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pipe -I../include -std=gnu99 -g -O2 -Wall -Werror -Wformat -D_FILE_OFFSET_BITS=64 -D_LINUX_QUOTA_VERSION=6 -D_LARGEFILE64_SOURCE -DVARDIR=\"/var/lib\" main.c -o main.o
cc -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pipe -I../include -std=gnu99 -g -O2 -Wall -Werror -Wformat -D_FILE_OFFSET_BITS=64 -D_LINUX_QUOTA_VERSION=6 -D_LARGEFILE64_SOURCE -DVARDIR=\"/var/lib\" stat.c -o stat.o
stat.c: In function 'print_ugid_status':
stat.c:199:13: error: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Werror=restrict]
sprintf(status, "%s%sdirty", status, (strlen(status)) ? "," : "");
^~~~~~ ~~~~~~
stat.c:199:26: error: 'dirty' directive writing 5 bytes into a region of size between 0 and 256 [-Werror=format-overflow=]
sprintf(status, "%s%sdirty", status, (strlen(status)) ? "," : "");
^~~~~
stat.c:199:5: note: 'sprintf' output between 6 and 262 bytes into a destination of size 256
sprintf(status, "%s%sdirty", status, (strlen(status)) ? "," : "");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:52: stat.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:27: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
make: *** [debian/rules:4: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
Reply to: