From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 1576F3853578 for ; Sun, 10 Jul 2022 19:47:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1576F3853578 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id C79581E13B; Sun, 10 Jul 2022 15:47:30 -0400 (EDT) Message-ID: <64c4f8cb-993e-b32a-a918-af7ea05db912@simark.ca> Date: Sun, 10 Jul 2022 15:47:30 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: =?UTF-8?Q?Re=3a_=e3=80=90question=e3=80=91steps_to_regenerate_confi?= =?UTF-8?Q?gure_file?= Content-Language: en-US To: =?UTF-8?B?5aW9?= , gdb@sourceware.org References: <27d7ad72.adff.181dd6354bf.Coremail.swdtian@163.com> From: Simon Marchi In-Reply-To: <27d7ad72.adff.181dd6354bf.Coremail.swdtian@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2022 19:47:32 -0000 On 2022-07-08 06:38, 好 via Gdb wrote: > Hi , > > > I want to modify some code of gdb, so I have to regenerate the configure file, but I didn't find the relevant documentation, I'm not sure which version of autogen to use? > This is a bit confusing for newbies like me. > I am going to regenerate the configuration as follows: > ``` > > autogen Makefile.def > > autogen Makefile.tpl > > aclocal > > autoheader > > autoconf > > ./configure > > make > ``` > > > When I type the command ```autogen Makefile.def``` the following error will appear, is my step wrong? So, we're talking about top-level files here. I just tried with: $ autogen --version autogen (GNU AutoGen) 5.18.16 This: $ autogen Makefile.def re-generates Makefile.in exactly as the version checked in the repo. If you need to modify the configure files in gdbsupport, gdbserver and gdb, I suggest using autoreconf, that will call all the right tools. However, you must use the right version (2.69, at the moment) and use the upstream version of autoconf/automake, not those packaged in distros. Those often contain patches that modify the output, so you'll get different results that don't match what is checked in the repo. For example, in the gdb/ directory, I run: $ autoreconf -f Simon