Launchpad failed to dh_auto_configure : "failed to to execute: No such file or directory" with unusable error mess.

Asked by Pascal Mons

In my Launchpad PPA "Photo Video Applications"

https://launchpad.net/~anton+/+archive/ubuntu/photo-video-apps

After Building successfully on my own Trusty 14.04 system I tried to build in launchpad "smartdeblur".

However, Launchpad failed in the debian/rules at override_dh_auto_configure, in all supported Ubuntu systems.

%:
 dh $@ --buildsystem=cmake --parallel

override_dh_auto_configure:
 dh_auto_configure -- \
  -DCMAKE_BUILD_TYPE=Release \
  -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
  -DUSE_SYSTEM_FFTW=ON

The error message is itself unusable as it fails to list any name for the supposedly missing file or directory. Here is the error message:

[first from https://launchpadlibrarian.net/220195100/buildlog_ubuntu-precise-amd64.smartdeblur_1.27-1pmo1.1~precise_BUILDING.txt.gz]

make[1]: Entering directory `/«PKGBUILDDIR»'
dh_auto_configure -- \
  -DCMAKE_BUILD_TYPE=Release \
  -DUSE_SYSTEM_FFTW=ON \
# -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DUSE_SYSTEM_FFTW=ON failed to to execute: No such file or directory
make[1]: *** [override_dh_auto_configure] Error 2

[second from https://launchpadlibrarian.net/220193777/buildlog_ubuntu-trusty-amd64.smartdeblur_1.27-1pmo1~trusty_BUILDING.txt.gz]

make[1]: Entering directory `/«PKGBUILDDIR»'
dh_auto_configure -- \
  -DCMAKE_BUILD_TYPE=Release \
  -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
  -DUSE_SYSTEM_FFTW=ON
dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_BUILD_TYPE=Release -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 -DUSE_SYSTEM_FFTW=ON failed to to execute: No such file or directory
make[1]: *** [override_dh_auto_configure] Error 2

I don't see what "failed to to execute" ? (why a double 'to' ?). Then it fails as well to give a specific name for the supposedly missing file or directory.

/usr/bin/qmake-qt4 is part of the qt4-qmake package which is listed in the debian/control Depends: field. In my second attemps I commented out this cmake directive. However that did not change anything as to the failure.

I have even try to match the command line from Launchpad with this :

dh_auto_configure -- cmake .. \
  -DCMAKE_BUILD_TYPE=Release \
  -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
  -DUSE_SYSTEM_FFTW=ON

And it went through successfully again on my system.

On my system it is building flawlessly. It's the first time I see this kind of behaviour. Why ?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Colin Watson
Solved:
Last query:
Last reply:
Revision history for this message
Best Colin Watson (cjwatson) said :
#1

It's saying that it failed to execute cmake. This is because you're missing a build-dependency on cmake in debian/control, which you need in order to use debhelper's cmake buildsystem.

I suggest using sbuild (https://wiki.ubuntu.com/SimpleSbuild) to test that your packages build in a clean chroot - if you aren't building in a clean environment that way, then you won't be able to test that your build-dependencies are correct.

Revision history for this message
Pascal Mons (anton+) said :
#2

Thanks Colin Watson, that solved my question.