[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libxcb build failure: /bin/sh: /home/miki/install-sh: No such file o
From: |
Alain Kalker |
Subject: |
Re: libxcb build failure: /bin/sh: /home/miki/install-sh: No such file or directory |
Date: |
Tue, 02 Jul 2013 17:57:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
On 07/02/2013 05:45 PM, Alain Kalker wrote:
Building libxcb 1.9.1 [1][2] on Arch linux (Autoconf 2.69, Automake
1.14) fails with the following error:
The exact commands used to build:
$ export PYTHON=/usr/bin/python2
$ ./autogen.sh --prefix=/usr \
--enable-xinput \
--enable-xkb \
--disable-static
$ make
Making install in doc
make[1]: Entering directory
`/home/miki/pkg/abs/extra/libxcb/src/libxcb-1.9.1/doc'
make[2]: Entering directory
`/home/miki/pkg/abs/extra/libxcb/src/libxcb-1.9.1/doc'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh /home/miki/install-sh -d
'/home/miki/pkg/abs/extra/libxcb/pkg/libxcb/usr/share/doc/libxcb'
/bin/sh: /home/miki/install-sh: No such file or directory
make[2]: *** [install-data-local] Error 127
make[2]: Leaving directory
`/home/miki/pkg/abs/extra/libxcb/src/libxcb-1.9.1/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory
`/home/miki/pkg/abs/extra/libxcb/src/libxcb-1.9.1/doc'
make: *** [install-recursive] Error 1
For the full build log, see [3].
From some research done in the bug report at [3], it appears to be
caused by ac_aux_dir not being properly initialized, causing
$am_aux_dir to be set to ${HOME} , and as a consequense $install_sh to
be set to ${HOME}/install-sh .
Interestingly, reordering lines in configure.ac such that
AM_INIT_AUTOMAKE([foreign dist-bzip2])
comes before
AC_CONFIG_SRCDIR([xcb.pc.in])
appears to resolve the build failure.
As an alternative, adding
AC_CONFIG_AUX_DIR
-or-
AC_CONFIG_AUX_DIR([.])
causes the build to complete successfully.
My additional questions:
- AFAWCT, nothing in the documentation seems to suggest that a
particular ordering of the macros in configure.ac is required. How can
it be that reordering the macros causes different behaviour?
Kind regards,
Alain Kalker
[1]: http://xcb.freedesktop.org/
[2]: http://xcb.freedesktop.org/dist/libxcb-1.9.1.tar.bz2
[3]: https://bugs.freedesktop.org/show_bug.cgi?id=66413