[Android-tools-devel] Bug#956994: android-platform-external-libunwind: ftbfs with GCC-10

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


Package: src:android-platform-external-libunwind
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-external-libunwind_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-source: info: unpacking android-platform-external-libunwind_8.1.0+r23.orig.tar.gz
dpkg-source: info: unpacking android-platform-external-libunwind_8.1.0+r23-2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying user_pt_regs.patch
dpkg-source: info: applying legacy_built-in_sync_functions.patch
dpkg-source: info: applying 20150704-CVE-2015-3239_dwarf_i.h.patch

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=unstable
SCHROOT_CHROOT_NAME=sid-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-02cebb58-ba7b-4f6a-9ed2-b9fad54aac62
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package android-platform-external-libunwind
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 --without autoreconf
   dh_clean
 debian/rules build
dh build --without autoreconf
   dh_update_autotools_config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- -f debian/libunwind.mk
	make -j4 "INSTALL=install --strip-program=true" -f debian/libunwind.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents debian/out
ln -s /usr/lib/p7zip/7z.so debian/out/lib7z.so
cc src/mi/init.c src/mi/flush_cache.c src/mi/mempool.c src/mi/strerror.c src/mi/backtrace.c src/mi/dyn-cancel.c src/mi/dyn-info-list.c src/mi/dyn-register.c src/mi/map.c src/mi/Lmap.c src/mi/Ldyn-extract.c src/mi/Lfind_dynamic_proc_info.c src/mi/Lget_proc_info_by_ip.c src/mi/Lget_proc_name.c src/mi/Lput_dynamic_unwind_info.c src/mi/Ldestroy_addr_space.c src/mi/Lget_reg.c src/mi/Lset_reg.c src/mi/Lget_fpreg.c src/mi/Lset_fpreg.c src/mi/Lset_caching_policy.c src/mi/Gdyn-extract.c src/mi/Gdyn-remote.c src/mi/Gfind_dynamic_proc_info.c src/mi/Gget_accessors.c src/mi/Gget_proc_info_by_ip.c src/mi/Gget_proc_name.c src/mi/Gput_dynamic_unwind_info.c src/mi/Gdestroy_addr_space.c src/mi/Gget_reg.c src/mi/Gset_reg.c src/mi/Gget_fpreg.c src/mi/Gset_fpreg.c src/mi/Gset_caching_policy.c src/dwarf/Lexpr.c src/dwarf/Lfde.c src/dwarf/Lparser.c src/dwarf/Lpe.c src/dwarf/Lstep_dwarf.c src/dwarf/Lfind_proc_info-lsb.c src/dwarf/Lfind_unwind_table.c src/dwarf/Gexpr.c src/dwarf/Gfde.c src/dwarf/Gfind_proc_info-lsb.c src/dwarf/Gfind_unwind_table.c src/dwarf/Gparser.c src/dwarf/Gpe.c src/dwarf/Gstep_dwarf.c src/dwarf/global.c src/os-common.c src/os-linux.c src/Los-common.c src/ptrace/_UPT_accessors.c src/ptrace/_UPT_access_fpreg.c src/ptrace/_UPT_access_mem.c src/ptrace/_UPT_access_reg.c src/ptrace/_UPT_create.c src/ptrace/_UPT_destroy.c src/ptrace/_UPT_find_proc_info.c src/ptrace/_UPT_get_dyn_info_list_addr.c src/ptrace/_UPT_put_unwind_info.c src/ptrace/_UPT_get_proc_name.c src/ptrace/_UPT_reg_offset.c src/ptrace/_UPT_resume.c src/x86_64/is_fpreg.c src/x86_64/regname.c src/x86_64/Gcreate_addr_space.c src/x86_64/Gget_proc_info.c src/x86_64/Gget_save_loc.c src/x86_64/Gglobal.c src/x86_64/Ginit.c src/x86_64/Ginit_local.c src/x86_64/Ginit_remote.c src/x86_64/Gregs.c src/x86_64/Gresume.c src/x86_64/Gstep.c src/x86_64/Lcreate_addr_space.c src/x86_64/Lget_proc_info.c src/x86_64/Lget_save_loc.c src/x86_64/Lglobal.c src/x86_64/Linit.c src/x86_64/Linit_local.c src/x86_64/Linit_remote.c src/x86_64/Lregs.c src/x86_64/Lresume.c src/x86_64/Lstep.c src/x86_64/getcontext.S src/x86_64/Gstash_frame.c src/x86_64/Gtrace.c src/x86_64/Gos-linux.c src/x86_64/Lstash_frame.c src/x86_64/Ltrace.c src/x86_64/Los-linux.c src/x86_64/setcontext.S src/elf64.c -o debian/out/libunwind.so.0 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DHAVE_CONFIG_H -DNDEBUG -D_GNU_SOURCE -Werror -Wno-unused-parameter -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -Iinclude -Isrc -Iinclude/tdep-x86_64 -Idebian/include -Wl,-z,relro -fPIC -shared -Wl,-soname,libunwind.so.0 -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -lpthread -nostdlib -lc -lgcc -Ldebian/out -l7z
src/ptrace/_UPT_get_dyn_info_list_addr.c: In function ‘get_list_addr’:
src/ptrace/_UPT_get_dyn_info_list_addr.c:75:10: note: ‘#pragma message: Implement get_list_addr(), please.’
   75 | # pragma message("Implement get_list_addr(), please.")
      |          ^~~~~~~
/usr/bin/ld: /tmp/ccigebnt.o:(.bss+0x0): multiple definition of `_U_dyn_info_list'; /tmp/cc4wUFHq.o:(.bss+0x0): first defined here
/usr/bin/ld: /tmp/ccYqqLjt.o:(.bss+0x0): multiple definition of `_U_dyn_info_list'; /tmp/cc4wUFHq.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [debian/libunwind.mk:139: build] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" -f debian/libunwind.mk returned exit code 2
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



More information about the Android-tools-devel mailing list