吴浩杰 <[email protected]> writes:

> I am currently building Linux From Scratch and trying to cross-compile 
> temporary tools. When compiling m4-1.4.20 with the following script:
>
> ./configure --prefix=/usr \
>             --host=$LFS_TGT \
>             --build=$(./build-aux/config.guess) \
> && make -j$(nproc) \
> && make DESTDIR=$LFS install
>
> I encounter this error during the make step:
>
> make[2]: Entering directory '/mnt/lfs/sources/m4-1.4.20/doc'
> Updating man page m4.1
> help2man: can't get `--help' info from ../src/m4
> Try `--no-discard-stderr' if option outputs to stderr
> make[2]: *** [Makefile:2960: m4.1] Error 2

It looks like you are building from git, am I correct?

The tarball distributes doc/m4.1, so help2man will not be invoked. You
should see something like:

    Making all in doc
    make[2]: Entering directory '/home/collin/Downloads/m4-1.4.20/doc'
    make[2]: Nothing to be done for 'all'.
    make[2]: Leaving directory '/home/collin/Downloads/m4-1.4.20/doc'

Collin

Reply via email to