[Android-tools-devel] Bug#956999: android-platform-system-extras: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:56:22 BST 2020


Package: src:android-platform-system-extras
Version: 8.1.0+r23-2
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/android-platform-system-extras_8.1.0+r23-2_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

[...]
dpkg-buildpackage: info: source package android-platform-system-extras
dpkg-buildpackage: info: source version 8.1.0+r23-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Kai-Chung Yan <seamlikok at gmail.com>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_clean
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- -f debian/libext4_utils.mk
	make -j4 "INSTALL=install --strip-program=true" -f debian/libext4_utils.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents debian/out
cc ext4_utils/make_ext4fs.c ext4_utils/ext4fixup.c ext4_utils/ext4_utils.c ext4_utils/allocate.c ext4_utils/contents.c ext4_utils/extent.c ext4_utils/indirect.c ext4_utils/sha1.c ext4_utils/wipe.c ext4_utils/crc16.c ext4_utils/ext4_sb.c -o debian/out/libext4_utils.so.0 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/android -DNDEBUG -Iext4_utils/include -Wl,-z,relro -fPIC -shared -Wl,-soname,libext4_utils.so.0 -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -L/usr/lib/x86_64-linux-gnu/android -lsparse -lselinux
ext4_utils/make_ext4fs.c: In function ‘extract_base_fs_allocations’:
ext4_utils/make_ext4fs.c:601:2: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  601 |  fscanf(base_alloc_file_in, blk_file_header_fmt, &major_version, &minor_version);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext4_utils/make_ext4fs.c: In function ‘build_directory_structure’:
ext4_utils/make_ext4fs.c:202:3: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  202 |   asprintf(&dentries[i].path, "%s%s", dir_path, namelist[i]->d_name);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext4_utils/make_ext4fs.c:203:3: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  203 |   asprintf(&dentries[i].full_path, "%s%s", full_path, namelist[i]->d_name);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext4_utils/make_ext4fs.c:265:4: warning: ignoring return value of ‘readlink’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  265 |    readlink(dentries[i].full_path, dentries[i].link, info.block_size - 1);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext4_utils/make_ext4fs.c:282:3: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  282 |   asprintf(&dentries[0].path, "%slost+found", dir_path);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ext4_utils/make_ext4fs.c: In function ‘build_default_directory_structure’:
ext4_utils/make_ext4fs.c:129:3: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  129 |   asprintf(&path, "%slost+found", dir_path);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ln -s libext4_utils.so.0 debian/out/libext4_utils.so
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- -f debian/ext4fixup.mk
	make -j4 "INSTALL=install --strip-program=true" -f debian/ext4fixup.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents debian/out
cc ext4_utils/ext4fixup_main.c -o debian/out/ext4fixup -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/android -DNDEBUG -Iext4_utils/include -Wl,-z,relro -fPIC -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -Wl,-rpath-link=. -Ldebian/out -lext4_utils
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- -f debian/make_ext4fs.mk
	make -j4 "INSTALL=install --strip-program=true" -f debian/make_ext4fs.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents debian/out
cc ext4_utils/make_ext4fs_main.c -o debian/out/make_ext4fs -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/android -DNDEBUG -Iext4_utils/include -DHOST -DANDROID -Wl,-z,relro -fPIC -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -Wl,-rpath-link=. -Ldebian/out -lext4_utils -L/usr/lib/x86_64-linux-gnu/android -lselinux -lcutils
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- -f debian/libf2fs_utils.mk
	make -j4 "INSTALL=install --strip-program=true" -f debian/libf2fs_utils.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents debian/out
cc f2fs_utils/f2fs_utils.c f2fs_utils/f2fs_ioutils.c f2fs_utils/f2fs_dlutils.c f2fs_utils/make_f2fs_main.c -o debian/out/libf2fs_utils.so.0 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/android -DNDEBUG -I/usr/include/f2fs-tools -DHAVE_LINUX_TYPES_H  -Wl,-z,relro -fPIC -shared -Wl,-soname,libf2fs_utils.so.0 -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -L/usr/lib/x86_64-linux-gnu/android -lsparse -ldl
/usr/bin/ld: /tmp/cc4E8f7X.o:(.bss+0x20): multiple definition of `c'; /tmp/ccvgNTjx.o:(.bss+0x20): first defined here
/usr/bin/ld: /tmp/cc4E8f7X.o:./f2fs_utils/f2fs_ioutils.c:87: multiple definition of `f2fs_sparse_file'; /tmp/ccvgNTjx.o:./f2fs_utils/f2fs_utils.c:46: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [debian/libf2fs_utils.mk:13: build] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" -f debian/libf2fs_utils.mk returned exit code 2
make[1]: *** [debian/rules:11: libf2fs_utils.so] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:20: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Android-tools-devel mailing list