Hi, > On Sun, Dec 03, 2017 at 07:36:22PM +0100, Ralf Jung wrote: >> I don't have the environment to test those. Please let me know if this >> looks like it should be working. > > How do you build packages?
gbp buildpackage --git-builder=sbuild > Most people I know use either sbuild or > pbuilder. If you do, you do have the environment. For sbuild[1] it is > `--host=...' and for pbuilder it is `--host-arch=...'. No extra setup > beyond the one for native builds required. If you are aware of any other > builder that doesn't support cross building please tell. Oh, I don't need to set up special sbuild chroots for the each target architecture? Wow, I had no idea. (I was also briefly confused by terminology, but it seems "host" here is what I have seen called "target" elsewhere.) However, this fails: gbp buildpackage --git-builder=sbuild --dist unstable --host i386 --add-depends=libc-dev,libstdc++-dev I pasted the log below. Kind regards, Ralf > gbp:info: Exporting 'HEAD' to '/home/r/src/debian/osspd/build-area/osspd-tmp' > gbp:info: Moving '/home/r/src/debian/osspd/build-area/osspd-tmp' to > '/home/r/src/debian/osspd/build-area/osspd-1.3.2' > dh clean --parallel --with=systemd > dh_auto_clean -O--parallel > make -j5 clean > make[1]: Entering directory '/home/r/src/debian/osspd/build-area/osspd-1.3.2' > Package fuse was not found in the pkg-config search path. > Perhaps you should add the directory containing `fuse.pc' > to the PKG_CONFIG_PATH environment variable > No package 'fuse' found > Package fuse was not found in the pkg-config search path. > Perhaps you should add the directory containing `fuse.pc' > to the PKG_CONFIG_PATH environment variable > No package 'fuse' found > Package libpulse was not found in the pkg-config search path. > Perhaps you should add the directory containing `libpulse.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libpulse' found > Package libpulse was not found in the pkg-config search path. > Perhaps you should add the directory containing `libpulse.pc' > to the PKG_CONFIG_PATH environment variable > No package 'libpulse' found > Package alsa was not found in the pkg-config search path. > Perhaps you should add the directory containing `alsa.pc' > to the PKG_CONFIG_PATH environment variable > No package 'alsa' found > Package alsa was not found in the pkg-config search path. > Perhaps you should add the directory containing `alsa.pc' > to the PKG_CONFIG_PATH environment variable > No package 'alsa' found > rm -f *.o *.a osspd ossp-padsp ossp-alsap osstest > make[1]: Leaving directory '/home/r/src/debian/osspd/build-area/osspd-1.3.2' > dh_clean -O--parallel > dpkg-source: info: using source format '3.0 (quilt)' > dpkg-source: info: applying > 0001-Fix-compilation-with-Werror-format-security.patch > dpkg-source: info: applying 0002-honor-CPPFLAGS.patch > dpkg-source: info: applying > 0003-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch > dpkg-source: info: applying > 0004-Allow-to-set-slave-installation-path-during-compilat.patch > dpkg-source: info: applying 0005-Add-pthread-compiler-and-linker-flag.patch > dpkg-source: info: applying 0006-cross.patch > dpkg-source: info: building osspd using existing ./osspd_1.3.2.orig.tar.gz > dpkg-source: info: building osspd in osspd_1.3.2-9.debian.tar.xz > dpkg-source: info: building osspd in osspd_1.3.2-9.dsc > sbuild (Debian sbuild) 0.73.0 (23 Dec 2016) on r-thinktop > > +==============================================================================+ > | osspd 1.3.2-9 (i386) Sun, 03 Dec 2017 21:08:39 > +0000 | > +==============================================================================+ > > Package: osspd > Version: 1.3.2-9 > Source Version: 1.3.2-9 > Distribution: unstable > Machine Architecture: amd64 > Host Architecture: i386 > Build Architecture: amd64 > Build Type: full > > I: NOTICE: Log filtering will replace > 'var/run/schroot/mount/unstable-amd64-sbuild-96eb71fd-f170-4d78-b615-70adab12e7a3' > with '<<CHROOT>>' > > +------------------------------------------------------------------------------+ > | Update chroot > | > +------------------------------------------------------------------------------+ > > Hit:1 http://cdn-fastly.deb.debian.org/debian unstable InRelease > Get:2 http://cdn-fastly.deb.debian.org/debian unstable/main i386 Packages > [7799 kB] > Fetched 7799 kB in 12s (616 kB/s) > Reading package lists... > Reading package lists... > Building dependency tree... > Reading state information... > Calculating upgrade... > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > +------------------------------------------------------------------------------+ > | Fetch source files > | > +------------------------------------------------------------------------------+ > > > Local sources > ------------- > > /home/r/src/debian/osspd/build-area/osspd_1.3.2-9.dsc exists in > /home/r/src/debian/osspd/build-area; copying to chroot > I: NOTICE: Log filtering will replace 'build/osspd-Vc7Yoi/osspd-1.3.2' with > '<<PKGBUILDDIR>>' > I: NOTICE: Log filtering will replace 'build/osspd-Vc7Yoi' with '<<BUILDDIR>>' > > +------------------------------------------------------------------------------+ > | Install crossbuild-essential > | > +------------------------------------------------------------------------------+ > > > Setup apt archive > ----------------- > > Merged Build-Depends: build-essential:amd64, fakeroot:amd64, > crossbuild-essential-i386:amd64 > Filtered Build-Depends: build-essential:amd64, fakeroot:amd64, > crossbuild-essential-i386:amd64 > dpkg-deb: building package 'sbuild-build-depends-core-dummy' in > '/<<BUILDDIR>>/resolver-75ZcwC/apt_archive/sbuild-build-depends-core-dummy.deb'. > dpkg-scanpackages: warning: Packages in archive but missing from override > file: > dpkg-scanpackages: warning: sbuild-build-depends-core-dummy > dpkg-scanpackages: info: Wrote 1 entries to output Packages file. > Ign:1 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ InRelease > Get:2 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Release [957 B] > Ign:3 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Release.gpg > Get:4 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Sources [359 B] > Get:5 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Packages [452 B] > Fetched 1768 B in 0s (41.7 kB/s) > Reading package lists... > Reading package lists... > > Install core build dependencies (apt-based resolver) > ---------------------------------------------------- > > Installing build dependencies > Reading package lists... > Building dependency tree... > Reading state information... > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > > The following packages have unmet dependencies: > sbuild-build-depends-core-dummy:i386 : Depends: > crossbuild-essential-i386:amd64 but it is not installable > E: Unable to correct problems, you have held broken packages. > apt-get failed. > E: Package installation failed > Not removing build depends: cloned chroot in use > du: cannot access '/<<PKGBUILDDIR>>': No such file or directory > E: read_command failed to execute du > E: Cannot determine space needed for /<<PKGBUILDDIR>> (du failed) > > Setup apt archive > ----------------- > > Merged Build-Depends: dose-distcheck:amd64 > Filtered Build-Depends: dose-distcheck:amd64 > dpkg-deb: building package 'sbuild-build-depends-dose3-dummy' in > '/<<BUILDDIR>>/resolver-75ZcwC/apt_archive/sbuild-build-depends-dose3-dummy.deb'. > dpkg-scanpackages: warning: Packages in archive but missing from override > file: > dpkg-scanpackages: warning: sbuild-build-depends-core-dummy > sbuild-build-depends-dose3-dummy > dpkg-scanpackages: info: Wrote 2 entries to output Packages file. > Ign:1 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ InRelease > Get:2 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Release [963 B] > Ign:3 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Release.gpg > Get:4 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Sources [490 B] > Get:5 copy:/<<BUILDDIR>>/resolver-75ZcwC/apt_archive ./ Packages [578 B] > Fetched 2031 B in 0s (180 kB/s) > Reading package lists... > Reading package lists... > > Install dose3 build dependencies (apt-based resolver) > ----------------------------------------------------- > > Installing build dependencies > Reading package lists... > Building dependency tree... > Reading state information... > The following additional packages will be installed: > dose-distcheck libelf1 liblua5.2-0 libnspr4 libnss3 libpopt0 librpm8 > librpmio8 > Recommended packages: > rpm-common > The following NEW packages will be installed: > dose-distcheck libelf1 liblua5.2-0 libnspr4 libnss3 libpopt0 librpm8 > librpmio8 sbuild-build-depends-dose3-dummy:i386 > debconf: delaying package configuration, since apt-utils is not installed > 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. > Need to get 0 B/5307 kB of archives. > After this operation, 13.3 MB of additional disk space will be used. > Selecting previously unselected package libpopt0:amd64. > (Reading database ... 14349 files and directories currently installed.) > Preparing to unpack .../0-libpopt0_1.16-10+b2_amd64.deb ... > Unpacking libpopt0:amd64 (1.16-10+b2) ... > Selecting previously unselected package liblua5.2-0:amd64. > Preparing to unpack .../1-liblua5.2-0_5.2.4-1.1+b2_amd64.deb ... > Unpacking liblua5.2-0:amd64 (5.2.4-1.1+b2) ... > Selecting previously unselected package libelf1:amd64. > Preparing to unpack .../2-libelf1_0.170-0.1_amd64.deb ... > Unpacking libelf1:amd64 (0.170-0.1) ... > Selecting previously unselected package libnspr4:amd64. > Preparing to unpack .../3-libnspr4_2%3a4.16-1_amd64.deb ... > Unpacking libnspr4:amd64 (2:4.16-1) ... > Selecting previously unselected package libnss3:amd64. > Preparing to unpack .../4-libnss3_2%3a3.34-1_amd64.deb ... > Unpacking libnss3:amd64 (2:3.34-1) ... > Selecting previously unselected package librpmio8. > Preparing to unpack .../5-librpmio8_4.14.0+dfsg1-2_amd64.deb ... > Unpacking librpmio8 (4.14.0+dfsg1-2) ... > Selecting previously unselected package librpm8. > Preparing to unpack .../6-librpm8_4.14.0+dfsg1-2_amd64.deb ... > Unpacking librpm8 (4.14.0+dfsg1-2) ... > Selecting previously unselected package dose-distcheck. > Preparing to unpack .../7-dose-distcheck_5.0.1-9+b3_amd64.deb ... > Unpacking dose-distcheck (5.0.1-9+b3) ... > Selecting previously unselected package sbuild-build-depends-dose3-dummy:i386. > Preparing to unpack > .../8-sbuild-build-depends-dose3-dummy_0.invalid.0_i386.deb ... > Unpacking sbuild-build-depends-dose3-dummy:i386 (0.invalid.0) ... > Setting up libpopt0:amd64 (1.16-10+b2) ... > Setting up libelf1:amd64 (0.170-0.1) ... > Setting up libnspr4:amd64 (2:4.16-1) ... > Processing triggers for libc-bin (2.25-3) ... > Setting up liblua5.2-0:amd64 (5.2.4-1.1+b2) ... > Setting up libnss3:amd64 (2:3.34-1) ... > Setting up librpmio8 (4.14.0+dfsg1-2) ... > Setting up librpm8 (4.14.0+dfsg1-2) ... > Setting up dose-distcheck (5.0.1-9+b3) ... > Setting up sbuild-build-depends-dose3-dummy:i386 (0.invalid.0) ... > Processing triggers for libc-bin (2.25-3) ... > (I)StdLoaders: Parsing and normalizing... > (I)Packages: Parsing Packages file -... > (I)Format822: total packages 85208 > (I)Distcheck: Cudf Universe: 85208 packages > (I)Distcheck: --checkonly specified, consider all packages as background > packages > Fatal error in module applications/distcheck.ml: > Cannot find any package corresponding to the selector > sbuild-build-depends-osspd-dummy:i386 > E: Failed to explain bd-uninstallable > > +------------------------------------------------------------------------------+ > | Summary > | > +------------------------------------------------------------------------------+ > > Build Architecture: amd64 > Build Type: full > Build-Space: n/a > Build-Time: 0 > Distribution: unstable > Fail-Stage: explain-bd-uninstallable > Foreign Architectures: i386 > Host Architecture: i386 > Install-Time: 0 > Job: /home/r/src/debian/osspd/build-area/osspd_1.3.2-9.dsc > Machine Architecture: amd64 > Package: osspd > Package-Time: 0 > Source-Version: 1.3.2-9 > Space: n/a > Status: given-back > Version: 1.3.2-9 > -------------------------------------------------------------------------------- > Finished at 2017-12-03T21:08:39Z > Build needed 00:00:00, no disk space > E: Failed to explain bd-uninstallable > gbp:error: 'sbuild --dist unstable --host i386 > --add-depends=libc-dev,libstdc++-dev' failed: it exited with 1

