From: "H.J. Lu" <hjl.tools@gmail.com>
To: Tobias Burnus <tobias@codesourcery.com>
Cc: Binutils <binutils@sourceware.org>
Subject: [PATCH] bfd: Pass -Idoc to $(MAKEINFOHTML)
Date: Mon, 24 Jan 2022 07:42:34 -0800 [thread overview]
Message-ID: <CAMe9rOqaaKJqnbnB1c3YG+K4Zow82kF_EfawsFrhjXYRy5m9Ag@mail.gmail.com> (raw)
In-Reply-To: <2f05350d-1edf-f8ef-5fdf-4a250d53276b@codesourcery.com>
[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]
On Mon, Jan 24, 2022 at 7:01 AM Tobias Burnus <tobias@codesourcery.com> wrote:
>
> Hi H.J.,
>
> On 24.01.22 14:21, H.J. Lu wrote:
> > Works for me. Please do "git clone" again and do a clean build.
>
> Still fails. I wonder why it goes wrong. I think something like:
>
> --- a/bfd/Makefile.in
> +++ b/bfd/Makefile.in
> @@ -2526,7 +2526,7 @@ doc/bfdver.texi: $(srcdir)/Makefile.in
> html-local: doc/bfd/index.html
> doc/bfd/index.html: doc/bfd.texi $(bfd_TEXINFOS) doc/$(am__dirstamp)
> $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
> - --split=node -I$(srcdir) -o doc/bfd $(srcdir)/bfd.texi
> + --split=node -I$(srcdir) -o doc/bfd $(srcdir)/doc/bfd.texi
>
>
> is needed - but I did not check why that went wrong in this generated file.
> And why it now is wrong - but seemingly did work on Friday.
>
>
> I build here with:
>
> .../configure --prefix=... \
> --build=x86_64-linux-gnu --target=x86_64-none-linux-gnu --host=x86_64-linux-gnu \
> --with-static-standard-libraries --disable-gdb --disable-libdecnumber --disable-readline \
> --disable-sim --disable-gdbserver --disable-nls \
> --with-sysroot=... --enable-plugins
>
> make prefix=... libdir=... htmldir=... install-html
>
> which fails with:
> makeinfo --split-size=5000000 --html --no-split \
> --split=node ...
> could not open ...srdir.../bfd/bfd.texi: No such file or directory
> make: *** [Makefile:2528: doc/bfd/index.html] Error 1
>
>
Try this.
--
H.J.
[-- Attachment #2: 0001-bfd-Pass-Idoc-to-MAKEINFOHTML.patch --]
[-- Type: text/x-patch, Size: 1591 bytes --]
From f6d30cea2581e9a293400e63df84a6e40b3119b6 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Mon, 24 Jan 2022 07:39:44 -0800
Subject: [PATCH] bfd: Pass -Idoc to $(MAKEINFOHTML)
PR binutils/28807
* Makefile.in: Regenerate.
* doc/local.mk (doc/bfd/index.html): Pass -Idoc to $(MAKEINFOHTML).
---
bfd/Makefile.in | 2 +-
bfd/doc/local.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index e48a0b87bc9..7be3831551d 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -2526,7 +2526,7 @@ doc/bfdver.texi: $(srcdir)/Makefile.in
html-local: doc/bfd/index.html
doc/bfd/index.html: doc/bfd.texi $(bfd_TEXINFOS) doc/$(am__dirstamp)
$(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
- --split=node -I$(srcdir) -o doc/bfd $(srcdir)/bfd.texi
+ --split=node -I$(srcdir) -Idoc -o doc/bfd $(srcdir)/doc/bfd.texi
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk
index 18a2af1b01d..9c3b32f7076 100644
--- a/bfd/doc/local.mk
+++ b/bfd/doc/local.mk
@@ -147,6 +147,6 @@ MAINTAINERCLEANFILES += $(DOCFILES)
html-local: %D%/bfd/index.html
%D%/bfd/index.html: %D%/bfd.texi $(bfd_TEXINFOS) %D%/$(am__dirstamp)
$(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
- --split=node -I$(srcdir) -o %D%/bfd $(srcdir)/bfd.texi
+ --split=node -I$(srcdir) -Idoc -o %D%/bfd $(srcdir)/doc/bfd.texi
MAINTAINERCLEANFILES += %D%/bfd.info
--
2.34.1
next prev parent reply other threads:[~2022-01-24 15:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 9:05 [Regression] Build fail: 'doc/bfd/index.html' ($(build)/bfd/bfd.texi - no such file) – probably due to: "bfd: Properly install library and header files" Tobias Burnus
2022-01-24 13:21 ` H.J. Lu
2022-01-24 15:01 ` Tobias Burnus
2022-01-24 15:42 ` H.J. Lu [this message]
2022-01-24 16:52 ` [PATCH] bfd: Pass -Idoc to $(MAKEINFOHTML) Tobias Burnus
2022-01-24 17:48 ` [PATCH v2] bfd: Update doc/local.mk H.J. Lu
2022-01-24 18:38 ` Tobias Burnus
2022-01-24 18:53 ` [PATCH v3] " H.J. Lu
2022-01-24 20:35 ` Tobias Burnus
2022-01-24 20:56 ` H.J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMe9rOqaaKJqnbnB1c3YG+K4Zow82kF_EfawsFrhjXYRy5m9Ag@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=binutils@sourceware.org \
--cc=tobias@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).