From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id PpkBLOwsy2KeNxAAWB0awg (envelope-from ) for ; Sun, 10 Jul 2022 15:47:56 -0400 Received: by simark.ca (Postfix, from userid 112) id 9F5071E5EA; Sun, 10 Jul 2022 15:47:56 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=E62uNQnP; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 27A9C1E13B for ; Sun, 10 Jul 2022 15:47:56 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 70BD3386DC4A for ; Sun, 10 Jul 2022 19:47:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70BD3386DC4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1657482475; bh=KWhW0evdw9RQosYfG1n+Rz/7lmT7WjRBcMxxFoHvz5s=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=E62uNQnPwLYUBvld6D+d9nguk06R97zRDPhJi1q1OA5TH03sfskVwnhxmJz8oG+bg ZQRo4S2wBYl4ZRIogOs9PYS1cnypyW3TD3CXWuvodZYujBzPfm1KLocIhdo+p0E5li bxJ8QNVI3UDSw+xqCE1cOehcOA8jGAhAUWQ+O3Kc= 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> In-Reply-To: <27d7ad72.adff.181dd6354bf.Coremail.swdtian@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , From: Simon Marchi via Gdb Reply-To: Simon Marchi Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" 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