Re: Issue compiling m4-1.4.20 during LFS cross-compilation (help2man error)
Collin Funk <[email protected]> Sun, 10 Aug 2025 12:18:35 -0700
| Newsgroups | gmane.comp.gnu.m4.bugs |
|---|---|
| Message-ID | <[email protected]> |
=E5=90=B4=E6=B5=A9=E6=9D=B0 <[email protected]> writes: > I am currently building Linux From Scratch and trying to cross-compile te= mporary tools. When compiling m4-1.4.20 with the following script: > > ./configure --prefix=3D/usr \ > --host=3D$LFS_TGT \ > --build=3D$(./build-aux/config.guess) \ > && make -j$(nproc) \ > && make DESTDIR=3D$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