[linux-lvm] Problems at cross-compiling LVM2-2.02.52

Alasdair G Kergon agk at redhat.com
Tue Sep 22 12:47:14 UTC 2009


On Tue, Sep 22, 2009 at 02:16:16PM +0200, John Taylor wrote:
> I have some problems at cross-compiling LVM2-2.02.52 (latest release).
> The configure argument list is: --prefix=/usr
> --build=i486-unknown-linux-gnu --host=x86_64-unknown-linux-gnu
> --target=x86_64-unknown-linux-gnu --disable-nls. First of all, I
> noticed I can't build LVM2 from a directory different than that where
> I extracted the source tarball, because I get the following error when
> running make:
> make -C doc device-mapper
> make[1]: Entering directory `/mnt/clfs/sources/lvm2-build/doc'
> Makefile:21: ../../LVM2-2.02.52/make.tmpl: No such file or directory
> make[1]: *** No rule to make target `../../LVM2-2.02.52/make.tmpl'.  Stop.
> make[1]: Leaving directory `/mnt/clfs/sources/lvm2-build/doc'
> make: *** [doc.device-mapper] Error 2
 
Paths are stored by 'configure' - that could be where the problem is, if
the code is moved after running configure, or a path with symlinks is
supplied (so .. goes to the wrong place).
The top of my Makefile is:
  srcdir = .
  top_srcdir = .

'make' is designed only to be run from the top directory of the tree,
not subdirectories.

But your example makes no sense: there is nothing to do for
'device-mapper' in 'doc', and it works for me anyway, both with -C and
using the alternative internal 'dot' target directly.

$ make -C doc device-mapper
make: Entering directory `/d/LVM2/doc'
make: Nothing to be done for `device-mapper'.
make: Leaving directory `/d/LVM2/doc'

$ make doc.device-mapper
make -C doc device-mapper
make[1]: Entering directory `/d/LVM2/doc'
make[1]: Nothing to be done for `device-mapper'.
make[1]: Leaving directory `/d/LVM2/doc'


Alasdair




More information about the linux-lvm mailing list