[Pkg-electronics-devel] Bug#1049802: gcc-xtensa-lx106: Fails to build binary packages again after successful build

Lucas Nussbaum lucas at debian.org
Wed Aug 16 09:26:37 BST 2023


Source: gcc-xtensa-lx106
Version: 13
Severity: minor
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-binary-20230816 ftbfs-binary-after-build
User: debian-qa at lists.debian.org
Usertags: qa-doublebuild

Hi,

This package fails to do build a binary-only build (not source) after a
successful build (dpkg-buildpackage ; dpkg-buildpackage -b).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/DoubleBuild

Relevant part of the build log:
> cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -b
> ------------------------------------------------------------------------------------------------------------------------------------
> 
> dpkg-buildpackage: info: source package gcc-xtensa-lx106
> dpkg-buildpackage: info: source version 13
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Jonathan McDowell <noodles at earth.li>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> dh clean -Dsrc -Bbuild
> 	rm -f debian/gcc-xtensa-lx106.debhelper.log
>    debian/rules override_dh_auto_clean
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> rm -rf gcc-* build debian/tmp debian/copyright-gcc debian/stamp
> dh_autoreconf_clean
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_clean -O-Dsrc -O-Bbuild
> 	rm -f debian/debhelper-build-stamp
> 	rm -rf debian/.debhelper/
> 	rm -f debian/gcc-xtensa-lx106.debhelper.log
> 	rm -f -- debian/gcc-xtensa-lx106.substvars debian/files
> 	rm -fr -- debian/gcc-xtensa-lx106/ debian/tmp/
> 	find .  \( \( \
> 		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
> 	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
> 		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
> 		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
> 		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
> 		\) -exec rm -f {} + \) -o \
> 		\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
>  debian/rules binary
> dh binary -Dsrc -Bbuild
>    dh_update_autotools_config -O-Dsrc -O-Bbuild
>    debian/rules override_dh_autoreconf
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> tar xf /usr/src/gcc-12/gcc-12.3.0-dfsg.tar.xz
> ln -s gcc-12* src
> tar xf /usr/src/gcc-12/gm2-20220428.tar.xz
> (cd gm2 && tar cf - gcc libgm2) | (cd src && tar xf -)
> rm -rf gm2
> cp debian/overlay/include/xtensa-config.h src/include/
> mkdir -p debian/stamp
> cp /usr/share/doc/gcc-12-source/copyright debian/copyright-gcc
> cp -a /usr/src/gcc-12/debian/patches .
> touch debian/stamp/tar
> set -ex; \
> 	GFDL_INVARIANT_FREE=yes \
> 	patchdir=/<<PKGBUILDDIR>>/patches \
> 	stampdir=/<<PKGBUILDDIR>>/debian/stamp \
> 	make -f /usr/src/gcc-12/debian/rules.patch series; \
> 	QUILT_PATCHES=/<<PKGBUILDDIR>>/patches QUILT_PATCH_OPTS='-E' \
> 	quilt --quiltrc /dev/null push -a; \
> touch src/gcc/distro-defaults.h; \
> set -ex; \
> 	cd gcc-*; \
> 	for patch in ../debian/local-patches/[0-9]*.patch; do \
> 		echo Applying patch "$patch"; \
> 		patch -p1 < "$patch"; \
> 	done
> + GFDL_INVARIANT_FREE=yes patchdir=/<<PKGBUILDDIR>>/patches stampdir=/<<PKGBUILDDIR>>/debian/stamp make -f /usr/src/gcc-12/debian/rules.patch series
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> echo git-updates.diff gcc-gfdl-build.diff gcc-textdomain.diff gcc-distro-specs.diff gcc-driver-extra-langs.diff gcc-hash-style-gnu.diff libstdc++-pic.diff libstdc++-doclink.diff libstdc++-man-3cxx.diff libstdc++-test-installed.diff alpha-no-ev4-directive.diff note-gnu-stack.diff libgomp-omp_h-multilib.diff libgo-testsuite.diff libgo-cleanfiles.diff gcc-target-include-asm.diff libgo-revert-timeout-exp.diff libgo-setcontext-config.diff gcc-auto-build.diff libitm-no-fortify-source.diff sparc64-biarch-long-double-128.diff pr66368.diff pr67590.diff libffi-race-condition.diff cuda-float128.diff t-libunwind-elf-Wl-z-defs.diff gcc-force-cross-layout.diff gcc-search-prefixed-as-ld.diff kfreebsd-decimal-float.diff pr87808.diff pr94253.diff gcc-arm-disable-guality-tests.diff musl-ssp.diff pr79724-revert.diff 
> pr104290-followup.diff arc-stddef.diff libstdc++-hurd.diff pr107475.diff pr93371.diff gm2.diff gm2-info-no-headers.diff gm2-texinfo.diff gdc-texinfo.diff alpha-ieee.diff sys-auxv-header.diff gdc-dynamic-link-phobos.diff ia64-disable-selective-scheduling.diff libstdc++-pythondir.diff gcc-verbose-lto-link.diff gcc-ice-dump.diff gcc-ice-apport.diff skip-bootstrap-multilib.diff libffi-ro-eh_frame_sect.diff gcc-multiarch.diff config-ml.diff gcc-multilib-multiarch.diff gcc-as-needed.diff gcc-as-needed-gold.diff libgomp-kfreebsd-testsuite.diff go-testsuite.diff \
>   | sed -r 's/  +/ /g' | tr " " "\n" > /<<PKGBUILDDIR>>/patches/series
> sed -r 's/(.)$/\1 -p1/' -i /<<PKGBUILDDIR>>/patches/series
> touch /<<PKGBUILDDIR>>/debian/stamp/02-series-stamp
> make[2]: Leaving directory '/<<PKGBUILDDIR>>'
> + QUILT_PATCHES=/<<PKGBUILDDIR>>/patches QUILT_PATCH_OPTS=-E quilt --quiltrc /dev/null push -a
> File series fully applied, ends at patch go-testsuite.diff
> make[1]: *** [debian/rules:95: debian/stamp/unpack] Error 2
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:92: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
> 
> E: Command 'cd /<<PKGBUILDDIR>> && runuser -u user42 -- dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -b' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/16/gcc-xtensa-lx106_13_unstable.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-electronics-devel mailing list