From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arjuna.pair.com (arjuna.pair.com [209.68.5.131]) by sourceware.org (Postfix) with ESMTPS id CEC0B3858406; Fri, 15 Jul 2022 22:20:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CEC0B3858406 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bitrange.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bitrange.com Received: by arjuna.pair.com (Postfix, from userid 3006) id 873028A649; Fri, 15 Jul 2022 18:20:05 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by arjuna.pair.com (Postfix) with ESMTP id 8688A8A657; Fri, 15 Jul 2022 18:20:05 -0400 (EDT) Date: Fri, 15 Jul 2022 18:20:05 -0400 (EDT) From: Hans-Peter Nilsson X-X-Sender: hp@arjuna.pair.com To: Luis Machado cc: Hans-Peter Nilsson , binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: [PATCH] toplevel: Makefile.def: Make configure-sim depend on all-readline In-Reply-To: <89285421-e99a-ec59-b913-8d7b95b0ee87@arm.com> Message-ID: References: <20220308192128.A2D462041A@pchp3.se.axis.com> <89285421-e99a-ec59-b913-8d7b95b0ee87@arm.com> User-Agent: Alpine 2.20.16 (BSF 172 2016-09-29) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2022 22:20:07 -0000 On Tue, 12 Jul 2022, Luis Machado via Gdb-patches wrote: > Hi, > > On 3/8/22 19:21, Hans-Peter Nilsson via Binutils wrote: > > Calling on "global maintainers" as per toplevel/MAINTAINERS > > for "Makefile.*". > > > > Ok to commit? > > > > (If so, I'll also commit this change to the gcc repo, where > > this dependency is normally unused, i.e. when source trees > > are kept separate.) > > > > brgds, H-P > > ----- 8< ----- > > > > Without this, a "make all-sim" without the equivalent of > > libreadline-dev installed on the build system, won't > > properly pick up the in-tree readline build, and you'll see: > > > > mkdir -p -- ./sim > > Configuring in ./sim > > configure: creating cache ./config.cache > > checking build system type... x86_64-pc-linux-gnu > > checking host system type... x86_64-pc-linux-gnu > > checking target system type... cris-axis-elf > > checking for x86_64-pc-linux-gnu-gcc... gcc > > checking whether the C compiler works... yes > > ... > > checking for library containing tgetent... -ltermcap > > checking for readline in -lreadline... no > > configure: error: the required "readline" library is missing > > make[1]: *** [Makefile:11188: configure-sim] Error 1 > > make[1]: Leaving directory '/home/hp/sim/b' > > > > The sim dependency on readline is apparently (nominally) > > valid as there's a readline call in sim/erc32/sis.c. > > > > 2022-02-21 Hans-Peter Nilsson > > > > * Makefile.def (dependencies): Make configure-sim depend on > > all-readline. > > --- > > Makefile.def | 2 +- > > Makefile.in | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/Makefile.def b/Makefile.def > > index a504192e6d72..8181a7aa97b5 100644 > > --- a/Makefile.def > > +++ b/Makefile.def > > @@ -570,7 +570,7 @@ dependencies = { module=all-sim; on=all-intl; }; > > dependencies = { module=all-sim; on=all-libiberty; }; > > dependencies = { module=all-sim; on=all-bfd; }; > > dependencies = { module=all-sim; on=all-opcodes; }; > > -dependencies = { module=all-sim; on=all-readline; }; > > +dependencies = { module=configure-sim; on=all-readline; }; > > // Other host modules. > > dependencies = { module=all-fastjar; on=all-zlib; }; > > diff --git a/Makefile.in b/Makefile.in > > index 2b77a4706947..843e150dac63 100644 > > --- a/Makefile.in > > +++ b/Makefile.in > > @@ -63072,7 +63072,7 @@ install-strip-sid: maybe-install-strip-tcl > > install-sid: maybe-install-tk > > install-strip-sid: maybe-install-strip-tk > > configure-sim: maybe-all-gnulib > > -all-sim: maybe-all-readline > > +configure-sim: maybe-all-readline > > all-fastjar: maybe-all-build-texinfo > > all-libctf: all-libiberty > > all-stage1-libctf: all-stage1-libiberty > > I still see this, even with this patch applied. It seems sim requires > libreadline-dev regardless. > > Based on the commit message, I'd expect that to not be the case anymore, > right? That patch should have fixed occurrences of that particular error. You saying "libreadline-dev" rather than "libreadline" makes me think your error is different, kind of like half-way picking up libreadline-dev from your system rather than the sources. Either way, sorry, I have no clue ...unless you configure with "weird" options like --disable-readline (in which case the solution is "don't do that, then"). brgds, H-P