From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 502AF3858D3C for ; Mon, 24 Jan 2022 16:52:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 502AF3858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: nUaDdwh8JhZPUuj9vWmSwnN8RVerm39FhtiNSylMMhzwmPpcTn8/SqZwlSMEar9/VuDFpOcwQ3 BOSIfm0bohHYCiUGmYsMsR141Oc4daD0kHcW/pUbk2cKBZAgH3z2y5xC6dL3Fe48USzlcJnA3Q DU+4PDx7tw69mkArVz53Ta7mHP8oNrg01NLt0tECXKL5YvSs7nFxd/wEzMIEU8qVqq9QjAWcR5 wl4Ho/f+Ul+OFte4j8L+nATTi9O4z1O6IrLg4A0GoAWUj51CeurM9chpXMFKfCC9GMwPt3ZCIk naLblnmUznadFXXKDUW1zIMq X-IronPort-AV: E=Sophos;i="5.88,311,1635235200"; d="scan'208,217";a="73680226" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 24 Jan 2022 08:52:12 -0800 IronPort-SDR: qrrgYH5G99zGMpj7BhyTfKwOJnZfpCBivDKGajwaukOuWIKlzdZKHRYz/vdXHrDGSTHhjYAJE0 LVjYqgYvuF/fpnOqo6iXieT71QG15RFEeDw4FowAduJP7x4KNH4vvfoR7zGiVP0tIzwFUjMpIH od0z+QVtCHr3q5iUgWBmu6aBExL8VvX7ZBEy78A03HPK8kmCXdu223wkK6RgSgXoatHKlk5gvw 5qqVvp+X4uMcpxRoU45RfJRyOQzxjCNTaJNuFE93vy9y8updRbueRAK6vDtyLp5VMyLgv1dDoH kes= Message-ID: Date: Mon, 24 Jan 2022 17:52:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] bfd: Pass -Idoc to $(MAKEINFOHTML) Content-Language: en-US To: "H.J. Lu" , Mike Frysinger CC: Binutils References: <2f05350d-1edf-f8ef-5fdf-4a250d53276b@codesourcery.com> From: Tobias Burnus In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2022 16:52:15 -0000 Hi H.J., hi Mike, On 24.01.22 16:42, H.J. Lu wrote: > Try this. That does not fail - but it creates an empty HTML file. I think it is the same reason as the one why creating the PDF file fails hard. Namely, for the 'doc/bfd.pdf' (or 'install-pdf') is does as first step: touch doc/bfd.texi which creates an empty file. The 'test -f doc/bfd.texi' then succeeds and uses that empty file - instead of $(src)/bfd/doc/bfd.texi :-( On the Makefile level, that's due to the following (Makefile{,.in} + bfd/do= c/local.mk): # Avoid the %.stamp generating a builddir/bfd.texi that overrides the sr= cdir/. doc/bfd.texi doc/bfd.stamp: doc/$(am__dirstamp) ; $(AM_V_at)touch $@ And the the 'touch' at the end *is* run for 'doc/bfd.texi' via (Makefile{,.= in}): (Actually, it does the opposite to what comment states: It does create that= file!) I think that target is invoked via: doc/bfd.pdf: doc/bfd.texi $(doc_bfd_TEXINFOS) doc/$(am__dirstamp) .... $(TEXI2PDF) ... due to the bfd.texi dependency. The "make doc/bfd.pdf" shows/fails with: touch doc/bfd.texi TEXINPUTS=3D"$(build)/bfd:$TEXINPUTS" \ MAKEINFO=3D'makeinfo --split-size=3D5000000 --split-size=3D5000000 --no-spl= it -I doc -I $(src)/bfd/doc' \ texi2dvi --pdf --batch --build-dir=3Ddoc/bfd.t2p -o doc/bfd.pdf \ `test -f 'doc/bfd.texi' || echo '$(src)/bfd/'`doc/bfd.texi This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (prel= oaded format=3Dpdfetex) restricted \write18 enabled. entering extended mode (../../../../.././doc/bfd.texi) ! Emergency stop. <*> ...opmode \input ../../../../.././doc/bfd.texi ! =3D=3D> Fatal error occurred, no output PDF file produced! Transcript written on bfd.log. /usr/bin/texi2dvi: pdfetex exited with bad status, quitting. make[3]: *** [Makefile:1807: doc/bfd.pdf] Error 1 The .log file is in '$(build)/bfd/doc/bfd.t2p/doc!bfd.t2d/pdf/build' and it= contains: **\nonstopmode \input ../../../../.././doc/bfd.texi (../../../../.././doc/bfd.texi) ! Emergency stop. <*> ...opmode \input ../../../../.././doc/bfd.texi which is the empty 'touched' $(build)/bfd/bfd.texi. Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955