[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#925803: ploop: ftbfs with GCC-9



Package: src:ploop
Version: 1.15-6
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. 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/gcc9-20190321/ploop_1.15-6_unstable_gcc9.log
The last lines of the build log are at the end of this report.

To build with GCC 9, either set CC=gcc-9 CXX=g++-9 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-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
	make -j4 "INSTALL=install --strip-program=true" V=1
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Entering directory '/<<PKGBUILDDIR>>/include'
../gensym.sh libploop.h new-dynload.h
sed -e '1,/^struct ploop_functions {$/d' \
	 -e '/\/\* struct ploop_functions \*\/$/,$d' dynload.h | \
	grep -vE '^[[:space:]]*/\*.**/$' | \
	grep -v '^	void \*padding\[' | \
	sort > cur-dynload.h
diff -u cur-dynload.h new-dynload.h || \
	( echo "*** API CHANGED, PLEASE UPDATE dynload.h"; exit 1 )
rm -f cur-dynload.h new-dynload.h
make[3]: Leaving directory '/<<PKGBUILDDIR>>/include'
make[3]: Entering directory '/<<PKGBUILDDIR>>/lib'
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -M uuid.c delta_read.c delta_sysfs.c balloon_util.c check.c ploop.c xml.c logger.c balloon.c lock.c fsutils.c gpt.c crc32.c merge.c util.c pcopy.c ploop-copy.c di.c cleanup.c deprecated.c snapshot.c > .depend
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c uuid.c -o uuid.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c delta_read.c -o delta_read.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c delta_sysfs.c -o delta_sysfs.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c balloon_util.c -o balloon_util.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c check.c -o check.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c ploop.c -o ploop.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c xml.c -o xml.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c logger.c -o logger.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c balloon.c -o balloon.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c lock.c -o lock.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c fsutils.c -o fsutils.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c gpt.c -o gpt.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c crc32.c -o crc32.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c merge.c -o merge.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c util.c -o util.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c pcopy.c -o pcopy.o
gcc -g -O0 -DDEBUG -g -O0 -DDEBUG -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I. -I../include -fno-strict-aliasing -Wall -Wstrict-prototypes -Werror -Wformat-security -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Wdate-time -D_FORTIFY_SOURCE=2  -I/usr/include/libxml2 -fPIC -fvisibility=hidden -c ploop-copy.c -o ploop-copy.o
In file included from merge.c:34:
merge.c: In function 'ploop_merge_snapshot_by_guid':
ploop.h:293:3: error: '%s' directive argument is null [-Werror=format-overflow=]
  293 |   __ploop_err(err, "Error in %s (%s:%d): " format, \
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  294 |     __func__, __FILE__, __LINE__,  \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  295 |     ##__VA_ARGS__)
      |     ~~~~~~~~~~~~~~
merge.c:974:4: note: in expansion of macro 'ploop_err'
  974 |    ploop_err(0, "Unable to find image by uuid %s",
      |    ^~~~~~~~~
In file included from /usr/include/string.h:494,
                 from ploop.c:25:
In function 'strncpy',
    inlined from 'add_deltas' at ploop.c:1811:3,
    inlined from 'ploop_mount' at ploop.c:2065:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 64 equals destination size [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [../Makefile.inc:49: merge.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In function 'strncpy',
    inlined from 'ploop_resize_image' at ploop.c:2650:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' output may be truncated copying 64 bytes from a string of length 4095 [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [../Makefile.inc:48: ploop.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[2]: *** [Makefile:9: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j4 "INSTALL=install --strip-program=true" V=1 returned exit code 2
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2


Reply to: