GNU bug report logs -
#79213
Issue compiling diffutils-3.12 during LFS cross-compilation (help2man error)
Previous Next
Reported by: 吴浩杰 <haojiewu_24 <at> 163.com>
Date: Mon, 11 Aug 2025 04:09:01 UTC
Severity: normal
Tags: notabug
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 79213 in the body.
You can then email your comments to 79213 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-diffutils <at> gnu.org
:
bug#79213
; Package
diffutils
.
(Mon, 11 Aug 2025 04:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
吴浩杰 <haojiewu_24 <at> 163.com>
:
New bug report received and forwarded. Copy sent to
bug-diffutils <at> gnu.org
.
(Mon, 11 Aug 2025 04:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear diffutils developers,
I am currently building Linux From Scratch and cross-compiling temporary tools. When compiling diffutils-3.12 with the following script:
./configure --prefix=/usr \
--host=$LFS_TGT \
gl_cv_func_strcasecmp_works=y \
--build=$(./build-aux/config.guess) \
&& make -j$(nproc) \
&& make DESTDIR=$LFS install
I encounter these errors during make:
help2man: can't get `--help' info from sdiff
Try `--no-discard-stderr' if option outputs to stderr
help2man: can't get `--help' info from cmp
Try `--no-discard-stderr' if option outputs to stderr
help2man: can't get `--help' info from diff
Try `--no-discard-stderr' if option outputs to stderr
make[1]: *** [Makefile:2574: sdiff.1] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2574: cmp.1] Error 1
make[1]: *** [Makefile:2574: diff.1] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/diffutils-3.12/man'
make: *** [Makefile:2437: all-recursive] Error 1
My host system is Ubuntu 22.04 with gcc 11.4.0. According to the Linux From Scratch book, this problem should not occur, so I am unsure why it happens on my system.
I have tried several methods to bypass or fix this issue, including:
make HELP2MAN=: or make HELP2MAN=true
Running make with HELP2MAN="help2man --no-discard-stderr"
Exporting HELP2MAN=: or make HELP2MAN=true shell environment
None of these attempts resolved the problem.
Could you please advise:
Why this problem might be occurring in my environment?
What is the recommended way to bypass or fix the help2man step during the build?
Thank you very much for your time and assistance.
Best regards,
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-diffutils <at> gnu.org
:
bug#79213
; Package
diffutils
.
(Mon, 11 Aug 2025 05:30:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 79213 <at> debbugs.gnu.org (full text, mbox):
On 2025-08-10 03:14, 吴浩杰 wrote:
> help2man: can't get `--help' info from sdiff
What happens if you run the shell command 'src/sdiff --help'? And if
that command works, why doesn't help2man like its output?
Reply sent
to
Paul Eggert <eggert <at> cs.ucla.edu>
:
You have taken responsibility.
(Mon, 11 Aug 2025 16:22:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
吴浩杰 <haojiewu_24 <at> 163.com>
:
bug acknowledged by developer.
(Mon, 11 Aug 2025 16:22:03 GMT)
Full text and
rfc822 format available.
Message #13 received at 79213-done <at> debbugs.gnu.org (full text, mbox):
tags: notabug
On 2025-08-11 02:30, 吴浩杰 wrote:
> ./sdiff: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ./sdiff)
...
> Do you have any suggestions on how to resolve this? For example, the error message mentions using the --no-discard-stderr option with help2man. Could you please advise how to properly use this option to bypass or handle the error during the build process?
>
> Alternatively, is there a recommended way to skip generating the manual pages during build when running in this kind of cross-compilation environment?
This has nothing to do with help2man, and bypassing manual page
generation won't help, as you have built executables that don't run.
To fix the problem, build on a system compatible with your runtime
environment. It is typically OK to build on one version and then run on
a later version, as great efforts are made to support backward
compatibility. The reverse (which is what you are trying to do) often
does not work.
Added tag(s) notabug.
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Aug 2025 16:27:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Sep 2025 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.