From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EbO6KgZaSWBzMQAAWB0awg (envelope-from ) for ; Wed, 10 Mar 2021 18:45:10 -0500 Received: by simark.ca (Postfix, from userid 112) id A0FD91EF78; Wed, 10 Mar 2021 18:45:10 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 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 D8C5C1E793 for ; Wed, 10 Mar 2021 18:45:06 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 461123858004; Wed, 10 Mar 2021 23:45:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 461123858004 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1615419906; bh=Tx1ZIK0nDAaaGNL0B0iW14B+3LVoYiJ9OkD5wQTitwE=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=suwLwsHdBH9pSKAW96gv/RSdJmYe0FTpwF1fmD8JmWl9XpB+WRhqdW+r5K3ZKTfXn PbxB922IKZ2yJ61uabB7X77etrONCKMhwTEnQI1X8e3U8M8cZ3jpQNzTOQG2J0nK9T ibTDAoPAj/zudRKTxL84dqjwmCNXeNkmejnMgcJo= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id E0A993858004 for ; Wed, 10 Mar 2021 23:45:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E0A993858004 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 12ANiunt012816 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Mar 2021 18:45:00 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 12ANiunt012816 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 F1EFC1E793; Wed, 10 Mar 2021 18:44:55 -0500 (EST) Subject: Re: issue running automake on GDB source files to generate Makefile.in and config.in To: Zied Guermazi , "gdb@sourceware.org" References: <6fa3c513-b65a-745e-234c-6b229de5d5db@trande.de> Message-ID: Date: Wed, 10 Mar 2021 18:44:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <6fa3c513-b65a-745e-234c-6b229de5d5db@trande.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 10 Mar 2021 23:44:56 +0000 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@sourceware.org Sender: "Gdb" On 2021-03-10 4:14 p.m., Zied Guermazi wrote: > hi, > > to generate Makefile.in and config.in for gdb I am calling aclocal and then automake > > when runnig automake in the binutils-gdb and gdb folders, on the head of the master branch, I am getting following error > > "configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. > configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, > configure.ac: that aclocal.m4 is present in the top-level directory, > configure.ac: and that aclocal.m4 was recently regenerated (using aclocal) > automake: error: no 'Makefile.am' found for any configure output" > > I am using automake (GNU automake) 1.16.1. the same was tried with automake (GNU automake) 1.15.1 > > please advise on how to generate Makefile.in and config.in files from configure.ac (and gdbsupport/common.m4) file What I do is: 1. build autoconf/automake with the right versions from source, install them in a prefix of their own (e.g. /opt/autostuff) and add it to my PATH when I want to use them. This is because versions distributed by distros are sometimes patched and produce a different output. 2. in either gdb/, gdbserver/ or gdbsupport/ (and not in the top-level), run `autoreconf -vf`. This takes care of calling the right autotools under the hood, which I don't know much about. It calls automake if there is a Makefile.am (like in gdbsupport) and doesn't if there isn't (like in gdb) - at least that's what I understand. > is there a well configured build server I can use to automatically generate those files? No, unfortunately. But it shouldn't be too difficult to get it working in your local environment following the steps above. This process is not too obvious, and should probably be documented in the wiki, if it isn't already. Simon