package failed to build on amd64, builds on i386
# Install lintian overrides
install -d /build/
install -m 644 /build/
/build/
# Compute the dependencies of the -dev package
# NOTE: It is important to do that before splitting the files into
# their respective packages, otherwise the symlinks are broken
d-devlibdeps \
--override s/libpathplan4-
--override s/libcgraph6-dev// \
--override s/libgraph5-dev// \
--override s/libxdot4-dev// \
--override s/libcdt5-dev// \
--override s/libgvpr2-dev// \
--override s/libgvc6-dev// \
--override s/libexpr4-dev// \
--override s/libgts-
/build/
/build/
--> libexpat1-dev package exists.
--> libltdl7-dev is provided by a package.
--> zlib1g-dev package exists.
# Move from debian/tmp to the appropriate packages, rename one binary
dh_install --sourcedir=
cp: cannot stat `debian/
dh_install: cp -a debian/
make: *** [install] Error 2
dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary-arch gave error exit status 2
*******
Build finished at 20120921-0936
FAILED [dpkg-buildpackage died]
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- William Grant
- Solved:
- 2012-10-09
- Last query:
- 2012-10-09
- Last reply:
- 2012-10-08
This question was reopened
- 2012-10-08 by Dwight Perry
| William Grant (wgrant) said : | #1 |
There's probably a bug in your architecture-
William,
Thanks for your reply to my question. I was able to build locally using
dpkg-buildpackage -B. The launchpad build seems to be failing on a tcl
problem. I notice the following lines from the failed build log:
using tcl headers from -I/usr/
-I/usr/
checking tcl.h usability... yes
checking tcl.h presence... yes
checking for tcl.h... yes
configure: WARNING: Unable to find tclConfig.sh. The Tcl packages will
not be built
configure: WARNING: No Tcl. The Tk packages will not be built either
The local build I did has the following equivalent lines:
using tcl headers from -I/usr/
-I/usr/
checking tcl.h usability... yes
checking tcl.h presence... yes
checking for tcl.h... yes
using /usr/lib/
Could there be a problem with the tcl installation on launchpad?
On Mon, 2012-09-24 at 11:01 +0000, William Grant wrote:
> Your question #209247 on Launchpad itself changed:
> https:/
>
> Status: Open => Answered
>
> William Grant proposed the following answer:
> There's probably a bug in your architecture-
> building with 'dpkg-buildpackage -B' locally to reproduce the conditions
> of the Launchpad amd64 build, where we don't build architecture-
> independent packages.
>
| William Grant (wgrant) said : | #3 |
Have you tried building locally in a clean environment with pbuilder or sbuild? See https:/
I used pbuilder but received an error message that a set of packages have unmet dependencies. I ran 'apt-get -f install' as suggested by pbuilder, but there was no change. The build still fails. Here is the output of pbuilder followed by the output of 'apt-get -f install' :
$ sudo pbuilder build *.dsc
I: using fakeroot in build.
I: Current time: Wed Sep 26 15:01:35 EDT 2012
I: pbuilder-
I: Building the build Environment
I: extracting base tarball [/var/cache/
I: creating local configuration
I: copying local configuration
I: mounting /proc filesystem
I: mounting /dev/pts filesystem
I: Mounting /var/cache/
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Setting up ccache
I: Installing the build-deps
-> Attempting to satisfy build-dependencies
-> Creating pbuilder-
Package: pbuilder-
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <email address hidden>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
This package was created automatically by pbuilder to satisfy the
build-dependencies of the package being currently built.
Depends: tk8.5-dev, tcl8.5-dev, debhelper (>= 8), libfreetype6-dev, zlib1g-dev, libjpeg-dev, libpng12-dev, libxaw7-dev, bison, flex, autotools-dev, pdksh, libexpat1-dev, libfontconfig1-dev, libltdl3-dev, swig, libperl-dev, libgd2-noxpm-dev (>= 2.0.35), quilt (>= 0.40), groff-base, ghostscript, liblualib50-dev, ruby, ruby1.8-dev, php5-dev, php5-cli, ocaml-nox, python-dev, python-minimal, libcairo2-dev, libpango1.0-dev, guile-1.8-dev, d-shlibs, python-support, librsvg2-dev, libdevil-dev, libgts-dev, liblasi-dev, libtiff4-dev
dpkg-deb: building package `pbuilder-
Selecting previously unselected package pbuilder-
(Reading database ... 13941 files and directories currently installed.)
Unpacking pbuilder-
dpkg: pbuilder-
pbuilder-
Package tk8.5-dev is not installed.
pbuilder-
Package tcl8.5-dev is not installed.
pbuilder-
Package debhelper is not installed.
pbuilder-
Package libfreetype6-dev is not installed.
pbuilder-
Package zlib1g-dev is not installed.
pbuilder-
Package libjpeg-dev is not installed.
pbuilder-
Package libpng12-dev is not installed.
pbuilder-
Package libxaw7-dev is not installed.
pbuilder-
Package bison is not installed.
pbuilder-
Package flex is not installed.
pbuilder-
Package autotools-dev is not installed.
pbuilder-
Package pdksh is not installed.
pbuilder-
Package libexpat1-dev is not installed.
pbuilder-
Package libfontconfig1-dev is not installed.
pbuilder-
Package libltdl3-dev is not installed.
pbuilder-
Package swig is not installed.
pbuilder-
Package libperl-dev is not installed.
pbuilder-
Package libgd2-noxpm-dev is not installed.
pbuilder-
Package quilt is not installed.
pbuilder-
Package groff-base is not installed.
pbuilder-
Package ghostscript is not installed.
pbuilder-
Package liblualib50-dev is not installed.
pbuilder-
Package ruby is not installed.
pbuilder-
Package ruby1.8-dev is not installed.
pbuilder-
Package php5-dev is not installed.
pbuilder-
Package php5-cli is not installed.
pbuilder-
Package ocaml-nox is not installed.
pbuilder-
Package python-dev is not installed.
pbuilder-
Package libcairo2-dev is not installed.
pbuilder-
Package libpango1.0-dev is not installed.
pbuilder-
Package guile-1.8-dev is not installed.
pbuilder-
Package d-shlibs is not installed.
pbuilder-
Package python-support is not installed.
pbuilder-
Package librsvg2-dev is not installed.
pbuilder-
Package libdevil-dev is not installed.
pbuilder-
Package libgts-dev is not installed.
pbuilder-
Package liblasi-dev is not installed.
pbuilder-
Package libtiff4-dev is not installed.
Setting up pbuilder-
The following NEW packages will be installed:
autotools-dev{a} bison{a} bsdmainutils{a} debhelper{a} dh-apparmor{a} diffstat{a} file{a} flex{a}
fontconfig-
html2text{a} intltool-debian{a} libavahi-client3{a} libavahi-
libbison-dev{a} libcroco3{a} libcups2{a} libcupsimage2{a} libexpat1{a} libexpat1-dev{a} libfl-dev{a}
libfontconfig1{a} libfontconfig1-
libgd2-
libgssapi-
libjpeg-dev{a} libjpeg-turbo8{a} libjpeg-
libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} liblcms2-2{a} libltdl-dev{a} libltdl7{a} libmagic1{a}
libp11-kit0{a} libpaper1{a} libperl-dev{a} libperl5.14{a} libpipeline1{a} libpng12-dev{a} libpopt0{a}
libpthread-
libunistring0{a} libx11-6{a} libx11-data{a} libx11-dev{a} libxau-dev{a} libxau6{a} libxaw7{a} libxaw7-dev{a}
libxcb1{a} libxcb1-dev{a} libxdmcp-dev{a} libxdmcp6{a} libxext-dev{a} libxext6{a} libxft-dev{a} libxft2{a}
libxml2{a} libxmu-dev{a} libxmu-headers{a} libxmu6{a} libxpm-dev{a} libxpm4{a} libxrender-dev{a}
libxrender1{a} libxss-dev{a} libxss1{a} libxt-dev{a} libxt6{a} m4{a} man-db{a} pdksh{a} pkg-config{a}
po-debconf{a} quilt{a} swig{a} swig2.0{a} tcl8.5{a} tcl8.5-dev{a} tk8.5{a} tk8.5-dev{a} ttf-dejavu-core{a}
ucf{a} x11-common{a} x11proto-
x11proto-
The following packages are RECOMMENDED but will NOT be installed:
cmap-adobe-cns1 cmap-adobe-gb1 cmap-adobe-japan1 cmap-adobe-japan2 cmap-adobe-korea1 curl gnome-terminal
konsole krb5-locales libmail-
wget:i386 xml-core xterm
0 packages upgraded, 124 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.8 MB/39.4 MB of archives. After unpacking 121 MB will be used.
The following packages have unmet dependencies:
pbuilder-
Unable to resolve dependencies! Giving up...
The following NEW packages will be installed:
autotools-dev{a} bison{a} bsdmainutils{a} debhelper{a} dh-apparmor{a} diffstat{a} file{a} flex{a}
fontconfig-
html2text{a} intltool-debian{a} libavahi-client3{a} libavahi-
libbison-dev{a} libcroco3{a} libcups2{a} libcupsimage2{a} libexpat1{a} libexpat1-dev{a} libfl-dev{a}
libfontconfig1{a} libfontconfig1-
libgd2-
libgssapi-
libjpeg-dev{a} libjpeg-turbo8{a} libjpeg-
libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} liblcms2-2{a} libltdl-dev{a} libltdl7{a} libmagic1{a}
libp11-kit0{a} libpaper1{a} libperl-dev{a} libperl5.14{a} libpipeline1{a} libpng12-dev{a} libpopt0{a}
libpthread-
libunistring0{a} libx11-6{a} libx11-data{a} libx11-dev{a} libxau-dev{a} libxau6{a} libxaw7{a} libxaw7-dev{a}
libxcb1{a} libxcb1-dev{a} libxdmcp-dev{a} libxdmcp6{a} libxext-dev{a} libxext6{a} libxft-dev{a} libxft2{a}
libxml2{a} libxmu-dev{a} libxmu-headers{a} libxmu6{a} libxpm-dev{a} libxpm4{a} libxrender-dev{a}
libxrender1{a} libxss-dev{a} libxss1{a} libxt-dev{a} libxt6{a} m4{a} man-db{a} pdksh{a} pkg-config{a}
po-debconf{a} quilt{a} swig{a} swig2.0{a} tcl8.5{a} tcl8.5-dev{a} tk8.5{a} tk8.5-dev{a} ttf-dejavu-core{a}
ucf{a} x11-common{a} x11proto-
x11proto-
The following packages are RECOMMENDED but will NOT be installed:
cmap-adobe-cns1 cmap-adobe-gb1 cmap-adobe-japan1 cmap-adobe-japan2 cmap-adobe-korea1 curl gnome-terminal
konsole krb5-locales libmail-
wget:i386 xml-core xterm
0 packages upgraded, 124 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.8 MB/39.4 MB of archives. After unpacking 121 MB will be used.
Abort.
-> Finished parsing the build-deps
Reading package lists...
Building dependency tree...
Reading state information...
fakeroot is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
pbuilder-
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I: Copying back the cached apt archive contents
I: unmounting /var/cache/
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/
$ apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
| William Grant (wgrant) said : | #5 |
You'll need to debug the problem with your package locally. http://
Will look at information provided at the links recommended.
I can reproduce the build failure when I use pbuilder. The tclConfig.sh file is located in /usr/lib/tcl8.5 but the pbuilder generated build fails to find it. When I use 'dpkg-buildpackage -B' there is no problem. Does launchpad use pbuilder or dpkg-buildpackage? I have tried including a lines in the rules file similar to
with-tcl= path to tclConfig.sh
with-tclconf= path to tclConfig.sh
to no avail.
I have successfully built my package using pbuilder. I had to link /usr/lib/
|
|
#9 |
Like pbuilder, Launchpad buildds have very few packages installed initially; tcl isn't installed until apt sees that your package Build-Depends on it. So no, we can't create random symlinks like that. In this case I suspect you want to add tcl-dev to your Build-Depends line, as that's the package that provides /usr/lib/
The problem was that I used tcl8.5-dev in the control file. Replacing that with tcl-dev solved my problem.
Thanks for your help.
